aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ebad723be..59c2fa7b4 100644
--- a/Makefile
+++ b/Makefile
@@ -314,11 +314,21 @@ define PARSE_SUBPROJECT
314 ifneq ($$(CURRENT_SP),allsp) 314 ifneq ($$(CURRENT_SP),allsp)
315 # get a list of all keymaps 315 # get a list of all keymaps
316 KEYMAPS := $$(notdir $$(patsubst %/.,%,$$(wildcard $(ROOT_DIR)/keyboards/$$(CURRENT_KB)/keymaps/*/.))) 316 KEYMAPS := $$(notdir $$(patsubst %/.,%,$$(wildcard $(ROOT_DIR)/keyboards/$$(CURRENT_KB)/keymaps/*/.)))
317 LAYOUTS :=
318 $$(eval -include $(ROOT_DIR)/keyboards/$$(CURRENT_KB)/rules.mk)
319 KEYBOARD_LAYOUTS := $$(LAYOUTS)
317 ifneq ($$(CURRENT_SP),) 320 ifneq ($$(CURRENT_SP),)
318 # if the subproject is defined, then also look for keymaps inside the subproject folder 321 # if the subproject is defined, then also look for keymaps inside the subproject folder
319 SP_KEYMAPS := $$(notdir $$(patsubst %/.,%,$$(wildcard $(ROOT_DIR)/keyboards/$$(CURRENT_KB)/$$(CURRENT_SP)/keymaps/*/.))) 322 SP_KEYMAPS := $$(notdir $$(patsubst %/.,%,$$(wildcard $(ROOT_DIR)/keyboards/$$(CURRENT_KB)/$$(CURRENT_SP)/keymaps/*/.)))
320 KEYMAPS := $$(sort $$(KEYMAPS) $$(SP_KEYMAPS)) 323 KEYMAPS := $$(sort $$(KEYMAPS) $$(SP_KEYMAPS))
324 # $$(eval -include $(ROOT_DIR)/keyboards/$$(CURRENT_KB)/$$(CURRENT_SP)/rules.mk)
325 # KEYBOARD_LAYOUTS := $$(sort $$(KEYBOARD_LAYOUTS) $$(LAYOUTS))
321 endif 326 endif
327
328 LAYOUT_KEYMAPS :=
329 $$(foreach LAYOUT,$$(KEYBOARD_LAYOUTS),$$(eval LAYOUT_KEYMAPS += $$(notdir $$(patsubst %/.,%,$$(wildcard $(ROOT_DIR)/layouts/*/$$(LAYOUT)/*/.)))))
330
331 KEYMAPS := $$(sort $$(KEYMAPS) $$(LAYOUT_KEYMAPS))
322 # if the rule after removing the start of it is empty (we haven't specified a kemap or target) 332 # if the rule after removing the start of it is empty (we haven't specified a kemap or target)
323 # compile all the keymaps 333 # compile all the keymaps
324 ifeq ($$(RULE),) 334 ifeq ($$(RULE),)