summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Scott <dylan@dylanscott.com.au>2016-11-09 07:45:20 +1100
committerDylan Scott <scott.dylan@abc.net.au>2017-01-24 13:53:46 +1100
commit245f77b863b1dbea9d87381b5f5cff2516553d1d (patch)
treecdc1b4b47955982df0307c09b0c948ef13cdbb0d
parentd5270af1118a86cc8aaf795005941ad980a0d128 (diff)
Compare Makefile with itself instead of using `--help`
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 66c0ff30f4..636eae3e5b 100644
--- 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