From e04e31cde7ccb15337ded5bac8c96ffe461b84a8 Mon Sep 17 00:00:00 2001 From: zvecr Date: Mon, 23 May 2022 01:25:32 +0100 Subject: [PATCH] Extend make rules to include user/keyboard xap.json files --- builddefs/xap.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/builddefs/xap.mk b/builddefs/xap.mk index 4f23c28467..8fbda7c448 100644 --- a/builddefs/xap.mk +++ b/builddefs/xap.mk @@ -8,6 +8,24 @@ $(KEYMAP_OUTPUT)/src/info_json_gz.h: $(INFO_JSON_FILES) @$(BUILD_CMD) XAP_FILES := $(shell ls -1 data/xap/* | sort | xargs echo) +ifneq ("$(wildcard $(KEYBOARD_PATH_1)/xap.json)","") + XAP_FILES += $(KEYBOARD_PATH_1)/xap.json +endif +ifneq ("$(wildcard $(KEYBOARD_PATH_2)/xap.json)","") + XAP_FILES += $(KEYBOARD_PATH_2)/xap.json +endif +ifneq ("$(wildcard $(KEYBOARD_PATH_3)/xap.json)","") + XAP_FILES += $(KEYBOARD_PATH_3)/xap.json +endif +ifneq ("$(wildcard $(KEYBOARD_PATH_4)/xap.json)","") + XAP_FILES += $(KEYBOARD_PATH_4)/xap.json +endif +ifneq ("$(wildcard $(KEYBOARD_PATH_5)/xap.json)","") + XAP_FILES += $(KEYBOARD_PATH_5)/xap.json +endif +ifneq ("$(wildcard $(KEYMAP_PATH)/xap.json)","") + XAP_FILES += $(KEYMAP_PATH)/xap.json +endif $(KEYMAP_OUTPUT)/src/xap_generated.inl: $(XAP_FILES) @$(SILENT) || printf "$(MSG_GENERATING) $@" | $(AWK_CMD)