summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-08-15 14:59:37 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-08-15 14:59:37 (GMT)
commit54cca9f2ba0065fe34013bf712c181601a53c912 (patch)
tree0a95b5283796127fd97bcbca1b475e8d6e592916 /samples
parent46e19208cd3a3f8634efa497ad49c25db8df9b5a (diff)
Add the possibility to force the number of // jobs without reconfiguring.
Diffstat (limited to 'samples')
-rw-r--r--samples/samples.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/samples/samples.mk b/samples/samples.mk
index 221e82a..05a0547 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.