diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-05-26 21:49:36 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-05-26 21:49:36 (GMT) |
commit | fddd535b291e5f4b889ca742e69684ef1a0189da (patch) | |
tree | 08d385b3b67389c18993cdc563f69e80dc95e111 /samples | |
parent | a398f38872dd1805157b73ab456e171419107e7f (diff) |
Rework dumping the samples.
/trunk/scripts/showSamples.sh | 1 0 1 0 -
/trunk/samples/samples.mk | 10 7 3 0 +++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
Diffstat (limited to 'samples')
-rw-r--r-- | samples/samples.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/samples/samples.mk b/samples/samples.mk index 73eff04..000ec3b 100644 --- a/samples/samples.mk +++ b/samples/samples.mk @@ -10,7 +10,8 @@ help-config:: @echo ' saveconfig - Save current config as a preconfigured target' help-samples:: - @echo ' show-samples - show a brief overview of each samples listed below:' + @echo ' samples - prints the list of all samples (for scripting)' + @echo ' show-<sample> - show a brief overview of <sample>' @$(CT_LIB_DIR)/scripts/showSamples.sh $(CT_SAMPLES) help-build:: @@ -18,8 +19,11 @@ help-build:: @echo ' regtest-local[.#] - Regtest-build all local samples' @echo ' regtest-global[.#] - Regtest-build all global samples' -show-samples: - @$(CT_LIB_DIR)/scripts/showSamples.sh -v $(CT_SAMPLES) +$(patsubst %,show-%,$(CT_SAMPLES)): + @$(CT_LIB_DIR)/scripts/showSamples.sh -v $(patsubst show-%,%,$(@)) + +samples: + @echo $(CT_SAMPLES) |sed -r -e 's/ /\n/g;' |sort # How we do build one sample PHONY += $(CT_SAMPLES) |