Date: Mon, 13 Nov 2000 20:28:40 -0500 From: Marcel Moolenaar <marcel@cup.hp.com> To: Makoto MATSUSHITA <matusita@jp.FreeBSD.org> Cc: current@FreeBSD.ORG Subject: Re: "make modules" kicks the first module directory twice Message-ID: <3A109548.906162A2@cup.hp.com> References: <20001113195111R.matusita@jp.FreeBSD.org> <20001113095855.C38404@dragon.nuxi.com> <3A103875.3555E3D4@cup.hp.com> <20001114095225T.matusita@jp.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-stable removed from the cc list]
Makoto MATSUSHITA wrote:
>
> marcel> No you can't. $S expands to "../.." which only works for the
> marcel> first cd in the -jX case. The second cd will fail.
>
> Ouch...
Sorry :-)
> give me one more chance to submit a patch. Here's summary:
You're not going to like this:
> modules-depend:
> @mkdir -p ${.OBJDIR}/modules
> ! cd $S/modules; env ${MKMODULESENV} ${MAKE} obj
> ! env ${MKMODULESENV} ${MAKE} depend
For the non parallel case this doesn't work, because the "${MAKE}
depend" is not run from the right directory (ie "$S/modules") because
the second make doesn't get started from the same shell. Example:
gauss% more ~/mf
all:
cd ../marcel; pwd
pwd
*** Non-parallel case
gauss% cd /xtra/ncvs
gauss% make -f ~/mf
cd ../marcel; pwd
/xtra/marcel
pwd
/xtra/ncvs
*** Parallel case
gauss% make -f ~/mf -j2
cd ../marcel; pwd
/xtra/marcel
pwd
/xtra/marcel
...other than that... :-)
--
Marcel Moolenaar
mail: marcel@cup.hp.com / marcel@FreeBSD.org
tel: (408) 447-4222
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A109548.906162A2>
