From 54cca9f2ba0065fe34013bf712c181601a53c912 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 15 Aug 2007 14:59:37 +0000 Subject: Add the possibility to force the number of // jobs without reconfiguring. --- samples/samples.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'samples') diff --git a/samples/samples.mk b/samples/samples.mk index 221e82a2..05a0547c 100644 --- a/samples/samples.mk +++ b/samples/samples.mk @@ -7,15 +7,15 @@ CT_LIB_SAMPLES := $(filter-out $(CT_TOP_SAMPLES),$(patsubst $(CT_LIB_DIR)/sample 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-local: $(patsubst %,regtest_%,$(CT_TOP_SAMPLES)) 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. -- cgit v1.2.3