From 507e32b28c5067fb01cb85c3259a50bec7ec1907 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Mon, 15 May 2023 21:58:12 +1000 Subject: Generate `make` dependency file during build for info.json's etc. (#20451) --- builddefs/build_keyboard.mk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'builddefs') diff --git a/builddefs/build_keyboard.mk b/builddefs/build_keyboard.mk index 5fd61a96ce..53b3ef4a11 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 -- cgit v1.2.3