summaryrefslogtreecommitdiff
path: root/builddefs
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-05-15 22:10:42 +1000
committerNick Brassel <nick@tzarc.org>2023-05-15 22:10:42 +1000
commit433dc6068603e61d466e755aedcea0be96664f95 (patch)
treee243523f9cf99d630d566f172359434818aea62f /builddefs
parentdba0f1d452f138d0ed44fe2f096cfe80e610fb32 (diff)
parent507e32b28c5067fb01cb85c3259a50bec7ec1907 (diff)
Merge remote-tracking branch 'upstream/master' into develop
Diffstat (limited to 'builddefs')
-rw-r--r--builddefs/build_keyboard.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/builddefs/build_keyboard.mk b/builddefs/build_keyboard.mk
index 91c9541be5..0425d3fc9d 100644
--- a/builddefs/build_keyboard.mk
+++ b/builddefs/build_keyboard.mk
@@ -343,6 +343,15 @@ $(KEYBOARD_OUTPUT)/src/default_keyboard.h: $(INFO_JSON_FILES)
generated-files: $(KEYBOARD_OUTPUT)/src/info_config.h $(KEYBOARD_OUTPUT)/src/default_keyboard.c $(KEYBOARD_OUTPUT)/src/default_keyboard.h
+generated-files: $(KEYMAP_OUTPUT)/src/info_deps.d
+
+$(KEYMAP_OUTPUT)/src/info_deps.d:
+ @$(SILENT) || printf "$(MSG_GENERATING) $@" | $(AWK_CMD)
+ $(eval CMD=$(QMK_BIN) generate-make-dependencies -kb $(KEYBOARD) -km $(KEYMAP) -o $(KEYMAP_OUTPUT)/src/info_deps.d)
+ @$(BUILD_CMD)
+
+-include $(KEYMAP_OUTPUT)/src/info_deps.d
+
.INTERMEDIATE : generated-files
# Userspace setup and definitions