1.1 --- a/samples/samples.mk Sun Jul 22 21:29:42 2007 +0000
1.2 +++ b/samples/samples.mk Thu Aug 16 12:13:45 2007 +0000
1.3 @@ -7,15 +7,15 @@
1.4 CT_SAMPLES := $(CT_TOP_SAMPLES) $(CT_LIB_SAMPLES)
1.5
1.6 help-config::
1.7 - @echo ' saveconfig - Save current config as a preconfigured target'
1.8 + @echo ' saveconfig - Save current config as a preconfigured target'
1.9
1.10 help-samples::
1.11 @$(CT_LIB_DIR)/scripts/showSamples.sh $(CT_SAMPLES)
1.12
1.13 help-build::
1.14 - @echo ' regtest - Regtest-build all samples'
1.15 - @echo ' regtest-local - Regtest-build all local samples'
1.16 - @echo ' regtest-global - Regtest-build all global samples'
1.17 + @echo ' regtest[.#] - Regtest-build all samples'
1.18 + @echo ' regtest-local[.#] - Regtest-build all local samples'
1.19 + @echo ' regtest-global[.#] - Regtest-build all global samples'
1.20
1.21 # How we do build one sample
1.22 PHONY += $(CT_SAMPLES)
1.23 @@ -39,6 +39,9 @@
1.24
1.25 regtest-global: $(patsubst %,regtest_%,$(CT_LIB_SAMPLES))
1.26
1.27 +regtest.% regtest-local.% regtest-global.%:
1.28 + @$(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
1.29 +
1.30 # One regtest per sample
1.31 # We could use a simple rule like: 'regtest: $(CT_SAMPLES)', but that doesn't
1.32 # work because we want to save the samples as well.