Date: Thu, 19 Apr 2001 11:48:53 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: Makoto MATSUSHITA <matusita@jp.FreeBSD.org> Cc: current@FreeBSD.ORG, Will Andrews <will@FreeBSD.ORG> Subject: make -jN bug (was: Re: groff breaks "make -j N buildworld") Message-ID: <20010419114853.B84456@sunbay.com> In-Reply-To: <20010419171841Z.matusita@jp.FreeBSD.org>; from matusita@jp.FreeBSD.org on Thu, Apr 19, 2001 at 05:18:41PM %2B0900 References: <200104190322.f3J3M8w56668@wint.itfs.nsk.su> <200104190322.f3J3M8w56668@wint.itfs.nsk.su> <20010419110405.B75677@sunbay.com> <20010419171841Z.matusita@jp.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 19, 2001 at 05:18:41PM +0900, Makoto MATSUSHITA wrote: > > ru> I always thought that ``obj'', ``all'' and ``install'' should be > ru> executed in sequence, not together. Hey, this even does not work > ru> for bin/cat: > > IIRC, it is assumed that "make -jX install (where X > 1)" _doesn't_ work. > I've heard why, but I've forgotten :-) > Attached is the Makefile that demonstrates the problem. Run it like this: make obj; make all Then try: make install And then try: make -j2 install Note the difference. This fixes the problem: --- Makefile Thu Apr 19 11:33:04 2001 +++ Makefile Thu Apr 19 11:36:20 2001 @@ -8,6 +8,7 @@ beforeinstall: .SILENT cd ${.CURDIR}; \ ${INSTALL} ${COPY} -m ${NOBINMODE} Makefile ${DESTDIR}/tmp + cd ${.OBJDIR} pwd ${INSTALL} ${COPY} -m ${NOBINMODE} foo ${DESTDIR}/tmp I'm not sure if this a make(1) bug or a feature, as both NetBSD and OpenBSD behave the same. But I'm pretty sure this is a bug. Will? Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile NOMAN= YES all: foo foo: touch ${.TARGET} beforeinstall: .SILENT cd ${.CURDIR}; \ ${INSTALL} ${COPY} -m ${NOBINMODE} Makefile ${DESTDIR}/tmp pwd ${INSTALL} ${COPY} -m ${NOBINMODE} foo ${DESTDIR}/tmp .include <bsd.prog.mk> --FL5UXtIhxfXey3p5-- 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?20010419114853.B84456>