summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-07 09:04:02 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-07 09:04:02 (GMT)
commit58b4c6d0a44d57b15d7857ecb27711a2224949e9 (patch)
treea44e1c3fbeac57ff5601b1cbd1400172b3c64bbe /samples
parent45e6df196be73e799e220810f9c48f8884d1049c (diff)
Merge the save-sample branch to trunk:
- reorder most of the environment setup, - geting, extracting and patching are now components' sub-actions, - save the current config as a sample to be used as a pre-configured target.
Diffstat (limited to 'samples')
-rw-r--r--samples/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/samples/Makefile b/samples/Makefile
new file mode 100644
index 0000000..7c15b6e
--- /dev/null
+++ b/samples/Makefile
@@ -0,0 +1,17 @@
+# Build a list of all available samples
+
+SAMPLES = $(patsubst $(CT_TOP_DIR)/samples/%,%,$(filter-out %Makefile,$(wildcard $(CT_TOP_DIR)/samples/*)))
+.PHONY: $(SAMPLES)
+$(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
+ @echo ''
+
+saveconfig:
+ @$(CT_TOP_DIR)/scripts/saveSample.sh