mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 02:30:07 +00:00
parent
023b85db96
commit
ed56fc7da1
1 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,7 @@ define SEARCH_LAYOUTS_REPO
|
||||||
LAYOUT_KEYMAP_C := $$(LAYOUT_KEYMAP_PATH)/keymap.c
|
LAYOUT_KEYMAP_C := $$(LAYOUT_KEYMAP_PATH)/keymap.c
|
||||||
ifneq ("$$(wildcard $$(LAYOUT_KEYMAP_JSON))","")
|
ifneq ("$$(wildcard $$(LAYOUT_KEYMAP_JSON))","")
|
||||||
-include $$(LAYOUT_KEYMAP_PATH)/rules.mk
|
-include $$(LAYOUT_KEYMAP_PATH)/rules.mk
|
||||||
KEYMAP_C := $(KEYBOARD_OUTPUT)/src/keymap.c
|
KEYMAP_C := $(KEYMAP_OUTPUT)/keymap.c
|
||||||
KEYMAP_JSON := $$(LAYOUT_KEYMAP_JSON)
|
KEYMAP_JSON := $$(LAYOUT_KEYMAP_JSON)
|
||||||
KEYMAP_PATH := $$(LAYOUT_KEYMAP_PATH)
|
KEYMAP_PATH := $$(LAYOUT_KEYMAP_PATH)
|
||||||
else ifneq ("$$(wildcard $$(LAYOUT_KEYMAP_C))","")
|
else ifneq ("$$(wildcard $$(LAYOUT_KEYMAP_C))","")
|
||||||
|
@ -33,4 +33,5 @@ endif
|
||||||
$(foreach LAYOUT,$(LAYOUTS),$(eval $(call SEARCH_LAYOUTS)))
|
$(foreach LAYOUT,$(LAYOUTS),$(eval $(call SEARCH_LAYOUTS)))
|
||||||
|
|
||||||
# Use rule from build_json.mk, but update prerequisite in case KEYMAP_JSON was updated
|
# Use rule from build_json.mk, but update prerequisite in case KEYMAP_JSON was updated
|
||||||
$(KEYBOARD_OUTPUT)/src/keymap.c: $(KEYMAP_JSON)
|
$(KEYMAP_C): $(KEYMAP_JSON)
|
||||||
|
$(QMK_BIN) json2c --quiet --output $(KEYMAP_C) $(KEYMAP_JSON)
|
||||||
|
|
Loading…
Reference in a new issue