diff -r d80e6dedcc13 -r 7498a8d4b6e5 kconfig/Makefile --- a/kconfig/Makefile Mon Mar 12 18:59:31 2007 +0000 +++ b/kconfig/Makefile Tue May 01 16:32:52 2007 +0000 @@ -27,10 +27,9 @@ # Build a list of all available samples SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*))) -SAMPLES_CONFIG = $(patsubst %,%_config,$(SAMPLES)) -.PHONY: $(SAMPLES_CONFIG) -$(SAMPLES_CONFIG): - @cp "$(CT_TOP_DIR)/samples/$(patsubst %_config,%,$@)/crosstool.config" "$(CT_TOP_DIR)/.config" +.PHONY: $(SAMPLES) +$(SAMPLES): + @cp "$(CT_TOP_DIR)/samples/$(@)/crosstool.config" "$(CT_TOP_DIR)/.config" @$(MAKE) oldconfig # Help text used by make help @@ -40,8 +39,8 @@ @echo ' menuconfig - Update current config using a menu based program' @echo ' oldconfig - Update current config using a provided .config as base' @echo - @echo 'Preconfigured configuration targets:' - @for s in $(SAMPLES_CONFIG); do \ + @echo 'Preconfigured targets:' + @for s in $(SAMPLES); do \ echo " $${s}"; \ done @echo ''