Change sed monstrosity into a make variable.

The convoluted sed expression was doing what is already available in
make as `$*'.

Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
Alexey Neyman 2015-10-30 10:32:16 -07:00
parent 319023c7af
commit 263e8026ec
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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=$*