]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Merge pull request #869 from dylanjgscott/master
authorJack Humbert <jack.humb@gmail.com>
Fri, 27 Jan 2017 16:23:02 +0000 (11:23 -0500)
committerGitHub <noreply@github.com>
Fri, 27 Jan 2017 16:23:02 +0000 (11:23 -0500)
Use `type cmp` to test for cmp in Makefile

1  2 
Makefile

diff --cc Makefile
index 9cc77c55ccaecb2d610e4d21cda6dc84c351393f,636eae3e5b4e3177fdcf7c70a0af949588705bd1..550be819566d4317df1ef8cb89c16e5d55de2cee
+++ b/Makefile
@@@ -485,11 -485,10 +485,11 @@@ $(SUBPROJECTS): %: %-allk
  
  # Let's match everything, we handle all the rule parsing ourselves
  .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
 +ifndef SKIP_GIT
        git submodule status --recursive 2>/dev/null | \
        while IFS= read -r x; do \
                case "$$x" in \