Split cleanup-style into even smaller commands

This commit is contained in:
Volker Grabsch 2015-01-11 18:08:19 -05:00
parent dacd2ba109
commit 0c6cc9c91c
1 changed files with 4 additions and 4 deletions

View File

@ -309,11 +309,11 @@ define CLEANUP_STYLE
$(if $(filter %Makefile,$(1)),,\
s/\t/ /g; \
) \
' < $(1) > $(TOP_DIR)/tmp-cleanup-style; \
diff -u $(1) $(TOP_DIR)/tmp-cleanup-style >/dev/null \
' < $(1) > $(TOP_DIR)/tmp-cleanup-style
@diff -u $(1) $(TOP_DIR)/tmp-cleanup-style >/dev/null \
|| { echo '[cleanup] $(1)'; \
cp $(TOP_DIR)/tmp-cleanup-style $(1); }; \
rm -f $(TOP_DIR)/tmp-cleanup-style
cp $(TOP_DIR)/tmp-cleanup-style $(1); }
@rm -f $(TOP_DIR)/tmp-cleanup-style
endef
cleanup-style: