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 fdidron committed Jun 12, 2020
1 parent 4c72911 commit d424a71
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 d424a71

Please sign in to comment.