summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErovia <Erovia@users.noreply.github.com>2020-04-18 15:29:48 +0200
committerGitHub <noreply@github.com>2020-04-18 14:29:48 +0100
commit46a84ec84a09b33f2df88efb2fc303e77b2d842f (patch)
tree110357a2a22bd422cb1e0f435bf73bfdc610776c
parent3b5998085c62253a36b3a5c109207646570aa7f4 (diff)
Load keymap-level rules.mk when compiling keymap.json (#8841)
-rw-r--r--build_json.mk5
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)