summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-26 18:36:02 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-26 18:36:02 (GMT)
commitc7a1e6a4da2d341cae16d86db1db3bbf4334ffe2 (patch)
treea41cf6f252ebf26f443eeb1c9266e42f0405304a /ct-ng.in
parent44596c425f79f0c92fdbfcd6d931105ac52c338d (diff)
Use the paths found by ./configure in the ct-ng.in makefile script and its fragments.
/trunk/kconfig/kconfig.mk | 2 1 1 0 +- /trunk/samples/samples.mk | 18 9 9 0 +++++++++--------- /trunk/config/config.mk | 10 5 5 0 +++++----- /trunk/ct-ng.in | 22 13 9 0 +++++++++++++--------- 4 files changed, 28 insertions(+), 24 deletions(-)
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in22
1 files changed, 13 insertions, 9 deletions
diff --git a/ct-ng.in b/ct-ng.in
index f86be46..814d3eb 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -6,12 +6,8 @@
# Don't use built-in rules, we know what we're doing
MAKEFLAGS += --no-print-directory --no-builtin-rules
-# Some distributions (eg. Ubuntu) thought it wise to point /bin/sh to
-# a truly POSIX-conforming shell, ash in this case. This is not so good
-# as we, smart (haha!) developers (as smart we ourselves think we are),
-# got used to bashisms, and are enclined to easiness... So force use of
-# bash. (Note: this is ugly, but ./configure checks for it).
-export SHELL=/bin/bash
+# Don't go parallel
+.NOTPARALLEL:
# This is where ct-ng is:
export CT_NG:=$(lastword $(MAKEFILE_LIST))
@@ -26,9 +22,17 @@ export CT_DOC_DIR:=@@CT_DOCDIR@@
# This is crosstool-NG version string
export CT_VERSION:=@@CT_VERSION@@
-# Don't go parallel
-.NOTPARALLEL:
+# Paths found by ./configure
+include $(CT_LIB_DIR)/paths.mk
+
+# Some distributions (eg. Ubuntu) thought it wise to point /bin/sh to
+# a truly POSIX-conforming shell, ash in this case. This is not so good
+# as we, smart (haha!) developers (as smart we ourselves think we are),
+# got used to bashisms, and are enclined to easiness... So force use of
+# bash.
+export SHELL=$(bash)
+# Make the restart/stop steps availabe to scripts/crostool-NG.sh
export CT_STOP:=$(STOP)
export CT_RESTART:=$(RESTART)
@@ -123,7 +127,7 @@ build: .config
$(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) $(shell echo "$(@)" |$(sed) -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
PHONY += tarball
#tarball: