summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-03 17:36:07 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-03 17:36:07 (GMT)
commit27c1a5fa3f7affd8bb047dd7b57816a6c172e137 (patch)
tree1d6412d3a3dfc0edae4caa4a5045a0cd77ec5d47
parent75cb688486da3ea2326d9a9f7f84031df719811b (diff)
samples: add an action to print details for all samples
-rw-r--r--ct-ng.comp2
-rw-r--r--samples/samples.mk4
2 files changed, 5 insertions, 1 deletions
diff --git a/ct-ng.comp b/ct-ng.comp
index 6eaf2bf..d2c7124 100644
--- a/ct-ng.comp
+++ b/ct-ng.comp
@@ -16,7 +16,7 @@ _ct-ng () {
actions='help menuconfig oldconfig saveconfig
build build. build-all build-all.
- list-samples list-steps show-tuple
+ list-samples list-steps show-tuple show-all
clean distclean wiki-samples updatetools
tarball version'
diff --git a/samples/samples.mk b/samples/samples.mk
index 4447246..8502f6f 100644
--- a/samples/samples.mk
+++ b/samples/samples.mk
@@ -41,6 +41,10 @@ PHONY += $(patsubst %,show-%,$(CT_SAMPLES))
$(patsubst %,show-%,$(CT_SAMPLES)):
@$(CT_LIB_DIR)/scripts/showSamples.sh -v $(patsubst show-%,%,$(@))
+# Prints the details of all samples
+PHONY += show-all
+show-all: $(patsubst %,show-%,$(CT_SAMPLES))
+
# print the list of all available samples
PHONY += list-samples
list-samples: FORCE