ct-ng.in
changeset 1176 8508ec77df4c
parent 1144 e1bf6cd3a27c
child 1336 bc8b9381f637
     1.1 --- a/ct-ng.in	Mon Jan 19 21:57:55 2009 +0000
     1.2 +++ b/ct-ng.in	Thu Jan 29 22:09:55 2009 +0000
     1.3 @@ -6,12 +6,8 @@
     1.4  # Don't use built-in rules, we know what we're doing
     1.5  MAKEFLAGS += --no-print-directory --no-builtin-rules
     1.6  
     1.7 -# Some distributions (eg. Ubuntu) thought it wise to point /bin/sh to
     1.8 -# a truly POSIX-conforming shell, ash in this case. This is not so good
     1.9 -# as we, smart (haha!) developers (as smart we ourselves think we are),
    1.10 -# got used to bashisms, and are enclined to easiness... So force use of
    1.11 -# bash. (Note: this is ugly, but ./configure checks for it).
    1.12 -export SHELL=/bin/bash
    1.13 +# Don't go parallel
    1.14 +.NOTPARALLEL:
    1.15  
    1.16  # This is where ct-ng is:
    1.17  export CT_NG:=$(lastword $(MAKEFILE_LIST))
    1.18 @@ -26,9 +22,17 @@
    1.19  # This is crosstool-NG version string
    1.20  export CT_VERSION:=@@CT_VERSION@@
    1.21  
    1.22 -# Don't go parallel
    1.23 -.NOTPARALLEL:
    1.24 +# Paths found by ./configure
    1.25 +include $(CT_LIB_DIR)/paths.mk
    1.26  
    1.27 +# Some distributions (eg. Ubuntu) thought it wise to point /bin/sh to
    1.28 +# a truly POSIX-conforming shell, ash in this case. This is not so good
    1.29 +# as we, smart (haha!) developers (as smart we ourselves think we are),
    1.30 +# got used to bashisms, and are enclined to easiness... So force use of
    1.31 +# bash.
    1.32 +export SHELL=$(bash)
    1.33 +
    1.34 +# Make the restart/stop steps availabe to scripts/crostool-NG.sh
    1.35  export CT_STOP:=$(STOP)
    1.36  export CT_RESTART:=$(RESTART)
    1.37  
    1.38 @@ -123,7 +127,7 @@
    1.39  	$(SILENT)$(CT_LIB_DIR)/scripts/crosstool-NG.sh
    1.40  
    1.41  build.%:
    1.42 -	$(SILENT)$(MAKE) -rf $(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
    1.43 +	$(SILENT)$(MAKE) -rf $(CT_NG) $(shell echo "$(@)" |$(sed) -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
    1.44  
    1.45  PHONY += tarball
    1.46  #tarball: