summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ct-ng.in2
-rw-r--r--samples/samples.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 036f534..6450aab 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -151,7 +151,7 @@ build: .config.2
$(SILENT)$(CT_LIB_DIR)/scripts/crosstool-NG.sh
build.%:
- $(SILENT)$(MAKE) -rf $(CT_NG) $(shell echo "$(@)" |$(sed) -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
+ $(SILENT)$(MAKE) -rf $(CT_NG) build CT_JOBS=$*
PHONY += version
version:
diff --git a/samples/samples.mk b/samples/samples.mk
index e154e5c..4545d5c 100644
--- a/samples/samples.mk
+++ b/samples/samples.mk
@@ -204,5 +204,5 @@ build-all: $(patsubst %,build-%,$(CT_SAMPLES))
# Build all samples, overiding the number of // jobs per sample
build-all.%:
- $(SILENT)$(MAKE) -rf $(CT_NG) V=$(V) $(shell echo "$(@)" |$(sed) -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
+ $(SILENT)$(MAKE) -rf $(CT_NG) build-all CT_JOBS=$*