From 69df9ae9ddb806b42d962ae8a0b2b8f7b31f480e Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Thu, 22 Feb 2018 00:25:36 -0800 Subject: Remove the need for configure substitutions in scripts ... so that scripts/ directory can be installed verbatim. Signed-off-by: Alexey Neyman --- ct-ng.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ct-ng.in') diff --git a/ct-ng.in b/ct-ng.in index 7e0368dc..761b8856 100644 --- a/ct-ng.in +++ b/ct-ng.in @@ -22,6 +22,10 @@ export CT_DOC_DIR:=@docdir@ # This is crosstool-NG version string export CT_VERSION:=@PACKAGE_VERSION@ +# Download agents used by scripts.mk +CT_WGET := @wget@ +CT_CURL := @curl@ + # Paths found by ./configure include $(CT_LIB_DIR)/paths.mk @@ -203,7 +207,8 @@ source: .config $(SILENT)CT_SOURCE=y $(bash) $(CT_LIB_DIR)/scripts/crosstool-NG.sh build: .config - $(SILENT)$(bash) $(CT_LIB_DIR)/scripts/crosstool-NG.sh + $(SILENT)BUILD_NCPUS=`@@CT_cpucount@@ 2>/dev/null || echo 0` \ + $(bash) $(CT_LIB_DIR)/scripts/crosstool-NG.sh build.%: $(SILENT)$(MAKE) -rf $(CT_NG) build CT_JOBS=$* -- cgit v1.2.3