# HG changeset patch # User "Yann E. MORIN" # Date 1189530868 0 # Node ID f635b165bf18ed5602576c122e15536aa322fcf0 # Parent 29c6c5e10cead2c07fd0bec22f7e3ff1ff7f1632 make-3.80 does not have $(lastword ...). Fix this when ct-ng calls itself: don't try to be smart, we just _know_ where ct-ng is at configure time! Fis a latent bug in handling the number parallel jobs. diff -r 29c6c5e10cea -r f635b165bf18 ct-ng.in --- a/ct-ng.in Sat Sep 08 19:00:45 2007 +0000 +++ b/ct-ng.in Tue Sep 11 17:14:28 2007 +0000 @@ -5,9 +5,9 @@ # Don't print directory as we descend into them MAKEFLAGS += --no-print-directory --no-builtin-rules -# Remember the name of the Makefile -CT_MAKEFILE := $(lastword $(MAKEFILE_LIST)) -CT_NG := $(CT_MAKEFILE) +# This is where ct-ng is. +# Don't bother to change it other than with a new ./configure! +CT_NG:=@@CT_BINDIR@@/ct-ng export CT_TOP_DIR:=$(shell pwd) export CT_LIB_DIR:=@@CT_LIBDIR@@ @@ -88,14 +88,10 @@ @false # Actual build -ifeq ($(CT_JOBS),) -CT_JOBS:=1 -endif -export CT_JOBS -build:: .config +build: .config @$(CT_LIB_DIR)/scripts/crosstool.sh -build.%:: +build.%: @$(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;') PHONY += tarball