mirror of https://git.wownero.com/dsc/mxe.git
Split cleanup-style into even smaller commands
This commit is contained in:
parent
dacd2ba109
commit
0c6cc9c91c
8
Makefile
8
Makefile
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue