aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2019-11-20 22:32:16 +0000
committerGitHub <noreply@github.com>2019-11-20 22:32:16 +0000
commitd2115f7d1c3a314e997ec6800b6741d83115d6be (patch)
treec0dbafaf4332ab2ceb79e7d8ebbd56cd80558d57
parente6b9980bd45c186f7360df68c24b6e05a80c10dc (diff)
downloadqmk_firmware-d2115f7d1c3a314e997ec6800b6741d83115d6be.tar.gz
qmk_firmware-d2115f7d1c3a314e997ec6800b6741d83115d6be.zip
Allow 'make all:<user>' to not build EVERYTHING (#7402)
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1aa8b2305..8f02eea04 100644
--- a/Makefile
+++ b/Makefile
@@ -272,12 +272,14 @@ define PARSE_RULE
272 # If the rule starts with all, then continue the parsing from 272 # If the rule starts with all, then continue the parsing from
273 # PARSE_ALL_KEYBOARDS 273 # PARSE_ALL_KEYBOARDS
274 ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true) 274 ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true)
275 KEYBOARD_RULE=all
275 $$(eval $$(call PARSE_ALL_KEYBOARDS)) 276 $$(eval $$(call PARSE_ALL_KEYBOARDS))
276 else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,test),true) 277 else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,test),true)
277 $$(eval $$(call PARSE_TEST)) 278 $$(eval $$(call PARSE_TEST))
278 # If the rule starts with the name of a known keyboard, then continue 279 # If the rule starts with the name of a known keyboard, then continue
279 # the parsing from PARSE_KEYBOARD 280 # the parsing from PARSE_KEYBOARD
280 else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYBOARDS)),true) 281 else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYBOARDS)),true)
282 KEYBOARD_RULE=$$(MATCHED_ITEM)
281 $$(eval $$(call PARSE_KEYBOARD,$$(MATCHED_ITEM))) 283 $$(eval $$(call PARSE_KEYBOARD,$$(MATCHED_ITEM)))
282 # Otherwise use the KEYBOARD variable, which is determined either by 284 # Otherwise use the KEYBOARD variable, which is determined either by
283 # the current directory you run make from, or passed in as an argument 285 # the current directory you run make from, or passed in as an argument
@@ -380,6 +382,9 @@ define PARSE_KEYBOARD
380 # Otherwise try to match the keymap from the current folder, or arguments to the make command 382 # Otherwise try to match the keymap from the current folder, or arguments to the make command
381 else ifneq ($$(KEYMAP),) 383 else ifneq ($$(KEYMAP),)
382 $$(eval $$(call PARSE_KEYMAP,$$(KEYMAP))) 384 $$(eval $$(call PARSE_KEYMAP,$$(KEYMAP)))
385 # Otherwise if we are running make all:<user> just skip
386 else ifeq ($$(KEYBOARD_RULE),all)
387 # $$(info Skipping: No user keymap for $$(CURRENT_KB))
383 # Otherwise, make all keymaps, again this is consistent with how it works without 388 # Otherwise, make all keymaps, again this is consistent with how it works without
384 # any arguments 389 # any arguments
385 else 390 else