Skip to content

Commit

Permalink
Load keymap-level rules.mk when compiling keymap.json (#8841)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erovia authored Apr 18, 2020
1 parent 3b59980 commit 46a84ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_json.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_1)/keymap.json)","")
KEYMAP_PATH := $(MAIN_KEYMAP_PATH_1)
endif

# Load the keymap-level rules.mk if exists
ifneq ("$(wildcard $(KEYMAP_PATH))", "")
-include $(KEYMAP_PATH)/rules.mk
endif

# Generate the keymap.c
$(KEYBOARD_OUTPUT)/src/keymap.c: $(KEYMAP_JSON)
bin/qmk json2c --quiet --output $(KEYMAP_C) $(KEYMAP_JSON)

0 comments on commit 46a84ec

Please sign in to comment.