kconfig/Makefile
changeset 54 7498a8d4b6e5
parent 19 d80e6dedcc13
child 63 89b41dbffe8d
     1.1 --- a/kconfig/Makefile	Mon Mar 12 18:59:31 2007 +0000
     1.2 +++ b/kconfig/Makefile	Tue May 01 16:32:52 2007 +0000
     1.3 @@ -27,10 +27,9 @@
     1.4  
     1.5  # Build a list of all available samples
     1.6  SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*)))
     1.7 -SAMPLES_CONFIG = $(patsubst %,%_config,$(SAMPLES))
     1.8 -.PHONY: $(SAMPLES_CONFIG)
     1.9 -$(SAMPLES_CONFIG):
    1.10 -	@cp "$(CT_TOP_DIR)/samples/$(patsubst %_config,%,$@)/crosstool.config" "$(CT_TOP_DIR)/.config"
    1.11 +.PHONY: $(SAMPLES)
    1.12 +$(SAMPLES):
    1.13 +	@cp "$(CT_TOP_DIR)/samples/$(@)/crosstool.config" "$(CT_TOP_DIR)/.config"
    1.14  	@$(MAKE) oldconfig
    1.15  
    1.16  # Help text used by make help
    1.17 @@ -40,8 +39,8 @@
    1.18  	@echo  '  menuconfig     - Update current config using a menu based program'
    1.19  	@echo  '  oldconfig      - Update current config using a provided .config as base'
    1.20  	@echo
    1.21 -	@echo  'Preconfigured configuration targets:'
    1.22 -	@for s in $(SAMPLES_CONFIG); do   \
    1.23 +	@echo  'Preconfigured targets:'
    1.24 +	@for s in $(SAMPLES); do   \
    1.25  	    echo  "  $${s}"; \
    1.26  	 done
    1.27  	@echo  ''