aboutsummaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-02-22 00:25:36 -0800
committerAlexey Neyman <stilor@att.net>2018-04-07 12:03:17 -0700
commit69df9ae9ddb806b42d962ae8a0b2b8f7b31f480e (patch)
tree5e23600df2ad384e15b1c6131e3e235993a6d4b6 /ct-ng.in
parentdbe3877285549d1cdc549826673cdf8f07cf154c (diff)
downloadcrosstool-ng-69df9ae9ddb806b42d962ae8a0b2b8f7b31f480e.tar.gz
crosstool-ng-69df9ae9ddb806b42d962ae8a0b2b8f7b31f480e.tar.bz2
crosstool-ng-69df9ae9ddb806b42d962ae8a0b2b8f7b31f480e.zip
Remove the need for configure substitutions in scripts
... so that scripts/ directory can be installed verbatim. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in7
1 files changed, 6 insertions, 1 deletions
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=$*