From 392c2ad36c7694f01131e262ad9d36d2bcd23a4c Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 30 Dec 2008 15:57:20 +0100 Subject: [PATCH] Added notification when updating .omk.inc files --- snippets/prepare | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/prepare b/snippets/prepare index d81e9e8..e4905e2 100644 --- a/snippets/prepare +++ b/snippets/prepare @@ -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 ### -- 2.39.2