]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Remove duplicate make invocations
authorzvecr <git@zvecr.com>
Sat, 26 Jan 2019 18:03:58 +0000 (18:03 +0000)
committerJack Humbert <jack.humb@gmail.com>
Thu, 31 Jan 2019 02:42:23 +0000 (21:42 -0500)
Makefile

index 45e47c003710b7d568bf504d8a7653db1c7efe1f..dd33357112d792a721e24b22f53cc6e72f46262a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -548,9 +548,10 @@ endif
        # it has to be there to allow parallel execution of the submake
        # This always tries to compile everything, even if error occurs in the middle
        # But we return the error code at the end, to trigger travis failures
-       $(foreach COMMAND,$(COMMANDS),$(RUN_COMMAND))
+       # The sort at this point is to remove duplicates
+       $(foreach COMMAND,$(sort $(COMMANDS)),$(RUN_COMMAND))
        if [ -f $(ERROR_FILE) ]; then printf "$(MSG_ERRORS)" & exit 1; fi;
-       $(foreach TEST,$(TESTS),$(RUN_TEST))
+       $(foreach TEST,$(sort $(TESTS)),$(RUN_TEST))
        if [ -f $(ERROR_FILE) ]; then printf "$(MSG_ERRORS)" & exit 1; fi;
 
 # These no longer work because of the colon system