summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-08 10:57:34 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-08 10:57:34 (GMT)
commit1bfad917b6d38988b8374196c6ca1b18844cd467 (patch)
tree8c89abd615024de18574390b08a28bb306abda9b /samples
parent095dfdceab94665eef41bc40fa9b89adacacb65a (diff)
Print the major components and their version when calling "make help".
Diffstat (limited to 'samples')
-rw-r--r--samples/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/samples/Makefile b/samples/Makefile
index 7c15b6e..dede048 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -1,16 +1,14 @@
# Build a list of all available samples
-SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*)))
+CT_SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%/crosstool.config,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*/crosstool.config)))
.PHONY: $(SAMPLES)
-$(SAMPLES):
+$(CT_SAMPLES):
@cp "$(CT_TOP_DIR)/samples/$(@)/crosstool.config" "$(CT_TOP_DIR)/.config"
@$(MAKE) oldconfig
help::
@echo 'Preconfigured targets:'
- @for s in $(SAMPLES); do \
- echo " $${s}"; \
- done
+ @$(CT_TOP_DIR)/scripts/showSamples.sh $(CT_SAMPLES)
@echo ''
saveconfig: