Subject: Re: Another build failure - "unexpected operator" in maketars
To: Alan Barrett <apb@cequrux.com>
From: Nicolas Joly <njoly@pasteur.fr>
List: current-users
Date: 02/05/2007 11:41:41
On Mon, Feb 05, 2007 at 10:33:26AM +0200, Alan Barrett wrote:
> On Sun, 04 Feb 2007, Charlie Root wrote:
> > The routine arch_to_cpu in sets.subr finds a value for $MACHINE_CPU by
> > doing:
> >
> > MACHINE_ARCH=${1} ${MAKE} -f- all <<EOMAKE
> > .include <bsd.own.mk>
> > all:
> > @echo \${MACHINE_CPU}
> > EOMAKE
> >
> > Unfortunately when running make with -j3, [...]
>
> How did "-j3" find its way into the value of ${MAKE}? (How did you
> invoke build.sh and/or nmbake-foo?)
It comes from MAKEFLAGS variable.
njoly@lanfeust [tmp/parall]> cat Makefile
all:
echo "**$(MAKEFLAGS)**"
$(MAKE) sec
sec:
echo "**$(MAKEFLAGS)**"
njoly@lanfeust [tmp/parall]> make
echo "** **"
** **
make sec
echo "** **"
** **
njoly@lanfeust [tmp/parall]> make -j 4
--- all ---
echo "** -j 4 -J 15,16 **"
** -j 4 -J 15,16 **
make sec
--- sec ---
echo "** -j 4 -J 15,16 **"
** -j 4 -J 15,16 **
--
Nicolas Joly
Biological Software and Databanks.
Institut Pasteur, Paris.