samples/Makefile
changeset 74 7987069e8312
parent 63 89b41dbffe8d
child 166 fe502496fc06
     1.1 --- a/samples/Makefile	Mon May 07 09:04:02 2007 +0000
     1.2 +++ b/samples/Makefile	Tue May 08 10:57:34 2007 +0000
     1.3 @@ -1,16 +1,14 @@
     1.4  # Build a list of all available samples
     1.5  
     1.6 -SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*)))
     1.7 +CT_SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%/crosstool.config,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*/crosstool.config)))
     1.8  .PHONY: $(SAMPLES)
     1.9 -$(SAMPLES):
    1.10 +$(CT_SAMPLES):
    1.11  	@cp "$(CT_TOP_DIR)/samples/$(@)/crosstool.config" "$(CT_TOP_DIR)/.config"
    1.12  	@$(MAKE) oldconfig
    1.13  
    1.14  help::
    1.15  	@echo  'Preconfigured targets:'
    1.16 -	@for s in $(SAMPLES); do   \
    1.17 -	    echo  "  $${s}"; \
    1.18 -	 done
    1.19 +	@$(CT_TOP_DIR)/scripts/showSamples.sh $(CT_SAMPLES)
    1.20  	@echo  ''
    1.21  
    1.22  saveconfig: