samples/samples.mk
changeset 539 c538627f69f1
parent 474 2904d77fe117
child 544 6b15ef33e8f2
     1.1 --- a/samples/samples.mk	Fri May 02 21:49:43 2008 +0000
     1.2 +++ b/samples/samples.mk	Mon May 26 21:49:36 2008 +0000
     1.3 @@ -10,7 +10,8 @@
     1.4  	@echo  '  saveconfig         - Save current config as a preconfigured target'
     1.5  
     1.6  help-samples::
     1.7 -	@echo  '  show-samples       - show a brief overview of each samples listed below:'
     1.8 +	@echo  '  samples            - prints the list of all samples (for scripting)'
     1.9 +	@echo  '  show-<sample>      - show a brief overview of <sample>'
    1.10  	@$(CT_LIB_DIR)/scripts/showSamples.sh $(CT_SAMPLES)
    1.11  
    1.12  help-build::
    1.13 @@ -18,8 +19,11 @@
    1.14  	@echo  '  regtest-local[.#]  - Regtest-build all local samples'
    1.15  	@echo  '  regtest-global[.#] - Regtest-build all global samples'
    1.16  
    1.17 -show-samples:
    1.18 -	@$(CT_LIB_DIR)/scripts/showSamples.sh -v $(CT_SAMPLES)
    1.19 +$(patsubst %,show-%,$(CT_SAMPLES)):
    1.20 +	@$(CT_LIB_DIR)/scripts/showSamples.sh -v $(patsubst show-%,%,$(@))
    1.21 +
    1.22 +samples:
    1.23 +	@echo $(CT_SAMPLES) |sed -r -e 's/ /\n/g;' |sort
    1.24  
    1.25  # How we do build one sample
    1.26  PHONY += $(CT_SAMPLES)