]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Compare Makefile with itself instead of using `--help`
authorDylan Scott <dylan@dylanscott.com.au>
Tue, 8 Nov 2016 20:45:20 +0000 (07:45 +1100)
committerDylan Scott <scott.dylan@abc.net.au>
Tue, 24 Jan 2017 02:53:46 +0000 (13:53 +1100)
Makefile

index 66c0ff30f492e2e216b8fc624298a2774dc35b01..636eae3e5b4e3177fdcf7c70a0af949588705bd1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -487,7 +487,7 @@ $(SUBPROJECTS): %: %-allkm
 .PHONY: %
 %: 
        # Check if we have the CMP tool installed
-       cmp --version >/dev/null 2>&1; if [ $$? -gt 0 ]; then printf "$(MSG_NO_CMP)"; exit 1; fi;
+       cmp $(ROOT_DIR)/Makefile $(ROOT_DIR)/Makefile >/dev/null 2>&1; if [ $$? -gt 0 ]; then printf "$(MSG_NO_CMP)"; exit 1; fi;
        # Check if the submodules are dirty, and display a warning if they are
        git submodule status --recursive 2>/dev/null | \
        while IFS= read -r x; do \
@@ -531,4 +531,4 @@ BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S")
 $(shell echo '#define QMK_VERSION "$(GIT_VERSION)"' > $(ROOT_DIR)/quantum/version.h)
 $(shell echo '#define QMK_BUILDDATE "$(BUILD_DATE)"' >> $(ROOT_DIR)/quantum/version.h)
 
-include $(ROOT_DIR)/testlist.mk
\ No newline at end of file
+include $(ROOT_DIR)/testlist.mk