.PHONY: $(omk_inc_file)
$(omk_inc_file):
-#TODO remove the next line
- @echo " PREP "$$(call strip_out,$$@); \
+#TODO remove echos from the next commands
+ @set -e;\
echo 'prepared_rules += $(omk_inc_rule)' > $$@.tmp; \
echo '$(omk_inc_rule)_targets = $$(call strip_out,$(1))' >> $$@.tmp; \
echo '$(omk_inc_rule)_deps += $$(call strip_out,$(2))' >> $$@.tmp; \
echo '$(omk_inc_rule)_msg = $(3)' >> $$@.tmp; \
echo '$(omk_inc_rule)_cmd = $(call subst-cmd,$(4))' >> $$@.tmp; \
- if cmp -s $$@.tmp $$@; then rm $$@.tmp; else mv $$@.tmp $$@; fi
+ if cmp -s $$@.tmp $$@; then rm $$@.tmp; echo " CHK "$$(call strip_out,$$@); else mv $$@.tmp $$@; echo " UPD "$$(call strip_out,$$@); fi
endef
###