Rework the generated config file handling.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jun 16 18:01:59 2007 +0000 (2007-06-16)
changeset 1596daa8b5df1b4
parent 158 14f6a1d442f2
child 160 5bfea1685da4
Rework the generated config file handling.
kconfig/Makefile
     1.1 --- a/kconfig/Makefile	Sat Jun 16 18:00:35 2007 +0000
     1.2 +++ b/kconfig/Makefile	Sat Jun 16 18:01:59 2007 +0000
     1.3 @@ -24,9 +24,8 @@
     1.4  DEBUG_CONFIG_FILES = $(shell find $(CT_TOP_DIR)/config/debug -type f -name '*.in')
     1.5  TOOLS_CONFIG_FILES = $(shell find $(CT_TOP_DIR)/config/tools -type f -name '*.in')
     1.6  
     1.7 -.PHONY: generated_config_files
     1.8 -generated_config_files: $(CT_TOP_DIR)/config/debug.in	\
     1.9 -						$(CT_TOP_DIR)/config/tools.in
    1.10 +GEN_CONFIG_FILES=$(CT_TOP_DIR)/config/debug.in	\
    1.11 +				 $(CT_TOP_DIR)/config/tools.in
    1.12  
    1.13  $(CT_TOP_DIR)/config/debug.in: $(DEBUG_CONFIG_FILES)
    1.14  	@echo "# Debug facilities menu" >$@
    1.15 @@ -46,15 +45,18 @@
    1.16  	 done >>$@
    1.17  	@echo "endmenu" >>$@
    1.18  
    1.19 -menuconfig: $(obj)/mconf generated_config_files
    1.20 +menuconfig: $(obj)/mconf $(GEN_CONFIG_FILES)
    1.21  	@$< $(KCONFIG_TOP)
    1.22  
    1.23 -config: $(obj)/conf generated_config_files
    1.24 +config: $(obj)/conf $(GEN_CONFIG_FILES)
    1.25  	@$< $(KCONFIG_TOP)
    1.26  
    1.27 -oldconfig: $(obj)/conf generated_config_files
    1.28 +oldconfig: $(obj)/conf $(GEN_CONFIG_FILES)
    1.29  	@$< -s $(KCONFIG_TOP)
    1.30  
    1.31 +defoldconfig:$(obj)/conf $(GEN_CONFIG_FILES)
    1.32 +	@$< -s $(KCONFIG_TOP) >/dev/null
    1.33 +
    1.34  # Help text used by make help
    1.35  help::
    1.36  	@echo  'General purpose configuration targets:'
    1.37 @@ -81,4 +83,4 @@
    1.38  
    1.39  clean::
    1.40  	@rm -f $(wildcard kconfig/*zconf*.c) kconfig/{conf,mconf}
    1.41 -	@rm -f "$(CT_TOP_DIR)/config/debug.in" "$(CT_TOP_DIR)/config/tools.in"
    1.42 +	@rm -f $(GEN_CONFIG_FILES)