From 46a84ec84a09b33f2df88efb2fc303e77b2d842f Mon Sep 17 00:00:00 2001 From: Erovia Date: Sat, 18 Apr 2020 15:29:48 +0200 Subject: [PATCH] Load keymap-level rules.mk when compiling keymap.json (#8841) --- build_json.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build_json.mk b/build_json.mk index 087944cc418..6e2f9c4c8f2 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)