mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-18 20:37:56 +00:00
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:
parent
319023c7af
commit
263e8026ec
2
ct-ng.in
2
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:
|
||||
|
@ -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=$*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user