diff options
author | Volker Grabsch <v@njh.eu> | 2015-01-11 23:08:19 (GMT) |
---|---|---|
committer | Volker Grabsch <v@njh.eu> | 2015-01-11 23:20:46 (GMT) |
commit | 0c6cc9c91cf94e445ec471a5beebb7199483cb9d (patch) | |
tree | 2c3db179eb61126d7dafa9b31916f3ad04de6547 /Makefile | |
parent | dacd2ba109bb588d44eb5432d685077c37a043dc (diff) | |
download | mxe-0c6cc9c91cf94e445ec471a5beebb7199483cb9d.zip mxe-0c6cc9c91cf94e445ec471a5beebb7199483cb9d.tar.gz mxe-0c6cc9c91cf94e445ec471a5beebb7199483cb9d.tar.bz2 |
Split cleanup-style into even smaller commands
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: |