From owner-freebsd-current Mon Nov 13 17:28:49 2000 Delivered-To: freebsd-current@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 0046937B479 for ; Mon, 13 Nov 2000 17:28:42 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id 2FB3F6DB; Mon, 13 Nov 2000 17:28:41 -0800 (PST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id RAA11196; Mon, 13 Nov 2000 17:28:40 -0800 (PST) Message-ID: <3A109548.906162A2@cup.hp.com> Date: Mon, 13 Nov 2000 20:28:40 -0500 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Makoto MATSUSHITA Cc: current@FreeBSD.ORG Subject: Re: "make modules" kicks the first module directory twice References: <20001113195111R.matusita@jp.FreeBSD.org> <20001113095855.C38404@dragon.nuxi.com> <3A103875.3555E3D4@cup.hp.com> <20001114095225T.matusita@jp.FreeBSD.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [-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