1.1 --- a/kconfig/Makefile Sun May 13 19:03:49 2007 +0000
1.2 +++ b/kconfig/Makefile Sun May 20 09:27:05 2007 +0000
1.3 @@ -16,16 +16,28 @@
1.4 CFLAGS += -DKBUILD_NO_NLS
1.5 endif
1.6
1.7 +# Build a list of all config files
1.8 +CONFIG_FILES = $(filter-out %debug.in,$(shell find $(CT_TOP_DIR)/config -type f -name '*.in'))
1.9 +
1.10 # Derive the project version from, well, the project version:
1.11 export PROJECTVERSION=$(CT_VERSION)
1.12
1.13 -menuconfig: $(obj)/mconf
1.14 +$(CT_TOP_DIR)/config/debug.in: $(CONFIG_FILES)
1.15 + @echo "# Debug facilities menu" >$@
1.16 + @echo "# Generated file, do not edit!!!" >>$@
1.17 + @echo "menu \"Debug facilities\"" >>$@
1.18 + @for f in $(patsubst $(CT_TOP_DIR)/%,%,$(wildcard $(CT_TOP_DIR)/config/debug/*.in)); do \
1.19 + echo "source $${f}"; \
1.20 + done >>$@
1.21 + @echo "endmenu" >>$@
1.22 +
1.23 +menuconfig: $(obj)/mconf $(CT_TOP_DIR)/config/debug.in
1.24 @$< $(KCONFIG_TOP)
1.25
1.26 -config: $(obj)/conf
1.27 +config: $(obj)/conf $(CT_TOP_DIR)/config/debug.in
1.28 @$< $(KCONFIG_TOP)
1.29
1.30 -oldconfig: $(obj)/conf
1.31 +oldconfig: $(obj)/conf $(CT_TOP_DIR)/config/debug.in
1.32 @$< -s $(KCONFIG_TOP)
1.33
1.34 # Help text used by make help
1.35 @@ -54,3 +66,4 @@
1.36
1.37 clean::
1.38 @rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf}
1.39 + @rm -f "$(CT_TOP_DIR)/config/debug.in"