samples/Makefile
changeset 63 89b41dbffe8d
child 74 7987069e8312
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/samples/Makefile	Mon May 07 09:04:02 2007 +0000
     1.3 @@ -0,0 +1,17 @@
     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 +.PHONY: $(SAMPLES)
     1.8 +$(SAMPLES):
     1.9 +	@cp "$(CT_TOP_DIR)/samples/$(@)/crosstool.config" "$(CT_TOP_DIR)/.config"
    1.10 +	@$(MAKE) oldconfig
    1.11 +
    1.12 +help::
    1.13 +	@echo  'Preconfigured targets:'
    1.14 +	@for s in $(SAMPLES); do   \
    1.15 +	    echo  "  $${s}"; \
    1.16 +	 done
    1.17 +	@echo  ''
    1.18 +
    1.19 +saveconfig:
    1.20 +	@$(CT_TOP_DIR)/scripts/saveSample.sh