diff options
author | Erovia <Erovia@users.noreply.github.com> | 2020-04-18 15:29:48 +0200 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-06-12 17:00:27 +0900 |
commit | d424a716a061bb79335940ea9594c19b4edfa3a1 (patch) | |
tree | af0675d9a0efe87df4e1deb51b9da752f7893885 | |
parent | 4c72911ad9fd98d6f1d6a2abe73016b1c407b1ac (diff) |
Load keymap-level rules.mk when compiling keymap.json (#8841)
-rw-r--r-- | build_json.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build_json.mk b/build_json.mk index 087944cc41..6e2f9c4c8f 100644 --- a/build_json.mk +++ b/build_json.mk @@ -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) |