forked from mirrors/qmk_firmware
Allow 'make all:<user>' to not build EVERYTHING (#7402)
This commit is contained in:
parent
e6b9980bd4
commit
d2115f7d1c
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -272,12 +272,14 @@ define PARSE_RULE
|
||||||
# If the rule starts with all, then continue the parsing from
|
# If the rule starts with all, then continue the parsing from
|
||||||
# PARSE_ALL_KEYBOARDS
|
# PARSE_ALL_KEYBOARDS
|
||||||
ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true)
|
ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true)
|
||||||
|
KEYBOARD_RULE=all
|
||||||
$$(eval $$(call PARSE_ALL_KEYBOARDS))
|
$$(eval $$(call PARSE_ALL_KEYBOARDS))
|
||||||
else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,test),true)
|
else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,test),true)
|
||||||
$$(eval $$(call PARSE_TEST))
|
$$(eval $$(call PARSE_TEST))
|
||||||
# If the rule starts with the name of a known keyboard, then continue
|
# If the rule starts with the name of a known keyboard, then continue
|
||||||
# the parsing from PARSE_KEYBOARD
|
# the parsing from PARSE_KEYBOARD
|
||||||
else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYBOARDS)),true)
|
else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYBOARDS)),true)
|
||||||
|
KEYBOARD_RULE=$$(MATCHED_ITEM)
|
||||||
$$(eval $$(call PARSE_KEYBOARD,$$(MATCHED_ITEM)))
|
$$(eval $$(call PARSE_KEYBOARD,$$(MATCHED_ITEM)))
|
||||||
# Otherwise use the KEYBOARD variable, which is determined either by
|
# Otherwise use the KEYBOARD variable, which is determined either by
|
||||||
# the current directory you run make from, or passed in as an argument
|
# the current directory you run make from, or passed in as an argument
|
||||||
|
@ -380,6 +382,9 @@ define PARSE_KEYBOARD
|
||||||
# Otherwise try to match the keymap from the current folder, or arguments to the make command
|
# Otherwise try to match the keymap from the current folder, or arguments to the make command
|
||||||
else ifneq ($$(KEYMAP),)
|
else ifneq ($$(KEYMAP),)
|
||||||
$$(eval $$(call PARSE_KEYMAP,$$(KEYMAP)))
|
$$(eval $$(call PARSE_KEYMAP,$$(KEYMAP)))
|
||||||
|
# Otherwise if we are running make all:<user> just skip
|
||||||
|
else ifeq ($$(KEYBOARD_RULE),all)
|
||||||
|
# $$(info Skipping: No user keymap for $$(CURRENT_KB))
|
||||||
# Otherwise, make all keymaps, again this is consistent with how it works without
|
# Otherwise, make all keymaps, again this is consistent with how it works without
|
||||||
# any arguments
|
# any arguments
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue