Skip to content

Commit b5dfb2b

Browse files
authored
Partially skip generating community modules when none enabled (qmk#25819)
1 parent ee44cbd commit b5dfb2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builddefs/build_keyboard.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ endif
255255
COMMUNITY_RULES_MK = $(shell $(QMK_BIN) generate-community-modules-rules-mk -kb $(KEYBOARD) --quiet --escape --output $(INTERMEDIATE_OUTPUT)/src/community_rules.mk $(KEYMAP_JSON))
256256
include $(COMMUNITY_RULES_MK)
257257

258+
ifneq ($(COMMUNITY_MODULES),)
259+
258260
$(INTERMEDIATE_OUTPUT)/src/community_modules.h: $(KEYMAP_JSON) $(DD_CONFIG_FILES)
259261
@$(SILENT) || printf "$(MSG_GENERATING) $@" | $(AWK_CMD)
260262
$(eval CMD=$(QMK_BIN) generate-community-modules-h -kb $(KEYBOARD) --quiet --output $(INTERMEDIATE_OUTPUT)/src/community_modules.h $(KEYMAP_JSON))
@@ -289,6 +291,8 @@ SRC += $(INTERMEDIATE_OUTPUT)/src/community_modules.c
289291

290292
generated-files: $(INTERMEDIATE_OUTPUT)/src/community_modules.h $(INTERMEDIATE_OUTPUT)/src/community_modules.c $(INTERMEDIATE_OUTPUT)/src/community_modules_introspection.c $(INTERMEDIATE_OUTPUT)/src/community_modules_introspection.h $(INTERMEDIATE_OUTPUT)/src/led_matrix_community_modules.inc $(INTERMEDIATE_OUTPUT)/src/rgb_matrix_community_modules.inc
291293

294+
endif
295+
292296
include $(BUILDDEFS_PATH)/converters.mk
293297

294298
# Generate the board's version.h file.

0 commit comments

Comments
 (0)