diff -r 983d9c3949e1 -r d647d0e6021e samples/samples.mk --- a/samples/samples.mk Sun Jul 22 21:29:42 2007 +0000 +++ b/samples/samples.mk Wed Aug 15 14:59:37 2007 +0000 @@ -7,15 +7,15 @@ CT_SAMPLES := $(CT_TOP_SAMPLES) $(CT_LIB_SAMPLES) help-config:: - @echo ' saveconfig - Save current config as a preconfigured target' + @echo ' saveconfig - Save current config as a preconfigured target' help-samples:: @$(CT_LIB_DIR)/scripts/showSamples.sh $(CT_SAMPLES) help-build:: - @echo ' regtest - Regtest-build all samples' - @echo ' regtest-local - Regtest-build all local samples' - @echo ' regtest-global - Regtest-build all global samples' + @echo ' regtest[.#] - Regtest-build all samples' + @echo ' regtest-local[.#] - Regtest-build all local samples' + @echo ' regtest-global[.#] - Regtest-build all global samples' # How we do build one sample PHONY += $(CT_SAMPLES) @@ -39,6 +39,9 @@ regtest-global: $(patsubst %,regtest_%,$(CT_LIB_SAMPLES)) +regtest.% regtest-local.% regtest-global.%: + @$(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;') + # One regtest per sample # We could use a simple rule like: 'regtest: $(CT_SAMPLES)', but that doesn't # work because we want to save the samples as well.