diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-16 18:01:59 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-06-16 18:01:59 +0000 |
commit | bbf7b2ed167a462eaca5396130bc5d48b0628f1d (patch) | |
tree | 305ac13011ff2e12f8fad8b05a6c3a30faba74f9 /kconfig/Makefile | |
parent | cdd1cf06bc276e3d020764975bfe693a9ede9a54 (diff) | |
download | crosstool-ng-bbf7b2ed167a462eaca5396130bc5d48b0628f1d.tar.gz crosstool-ng-bbf7b2ed167a462eaca5396130bc5d48b0628f1d.tar.bz2 crosstool-ng-bbf7b2ed167a462eaca5396130bc5d48b0628f1d.zip |
Rework the generated config file handling.
Diffstat (limited to 'kconfig/Makefile')
-rw-r--r-- | kconfig/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/kconfig/Makefile b/kconfig/Makefile index 0603b740..fa767e91 100644 --- a/kconfig/Makefile +++ b/kconfig/Makefile @@ -24,9 +24,8 @@ CONFIG_FILES = $(filter-out %debug.in,$(shell find $(CT_TOP_DIR)/config -type f DEBUG_CONFIG_FILES = $(shell find $(CT_TOP_DIR)/config/debug -type f -name '*.in') TOOLS_CONFIG_FILES = $(shell find $(CT_TOP_DIR)/config/tools -type f -name '*.in') -.PHONY: generated_config_files -generated_config_files: $(CT_TOP_DIR)/config/debug.in \ - $(CT_TOP_DIR)/config/tools.in +GEN_CONFIG_FILES=$(CT_TOP_DIR)/config/debug.in \ + $(CT_TOP_DIR)/config/tools.in $(CT_TOP_DIR)/config/debug.in: $(DEBUG_CONFIG_FILES) @echo "# Debug facilities menu" >$@ @@ -46,15 +45,18 @@ $(CT_TOP_DIR)/config/tools.in: $(TOOLS_CONFIG_FILES) done >>$@ @echo "endmenu" >>$@ -menuconfig: $(obj)/mconf generated_config_files +menuconfig: $(obj)/mconf $(GEN_CONFIG_FILES) @$< $(KCONFIG_TOP) -config: $(obj)/conf generated_config_files +config: $(obj)/conf $(GEN_CONFIG_FILES) @$< $(KCONFIG_TOP) -oldconfig: $(obj)/conf generated_config_files +oldconfig: $(obj)/conf $(GEN_CONFIG_FILES) @$< -s $(KCONFIG_TOP) +defoldconfig:$(obj)/conf $(GEN_CONFIG_FILES) + @$< -s $(KCONFIG_TOP) >/dev/null + # Help text used by make help help:: @echo 'General purpose configuration targets:' @@ -81,4 +83,4 @@ kconfig/conf: $(SHIPPED) kconfig/conf.c clean:: @rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf} - @rm -f "$(CT_TOP_DIR)/config/debug.in" "$(CT_TOP_DIR)/config/tools.in" + @rm -f $(GEN_CONFIG_FILES) |