]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Added notification when updating .omk.inc files
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Dec 2008 14:57:20 +0000 (15:57 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Dec 2008 14:57:20 +0000 (15:57 +0100)
snippets/prepare

index d81e9e88555a81f64b870243a185d04c5a6b1a36..e4905e24c7b692c3b7283bdeb03eb656ca7dc981 100644 (file)
@@ -32,14 +32,14 @@ prepare-pass-local: $(omk_inc_file)
 
 .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
 
 ###