Skip to content

Commit

Permalink
Load keymap-level rules.mk when compiling keymap.json (qmk#8841)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erovia authored and violet-fish committed May 3, 2020
1 parent afc5770 commit a5f3dfc
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 a5f3dfc

Please sign in to comment.