Subject: Re: Speeding up package make
To: David Brownlee <abs@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-pkg
Date: 02/12/2000 16:21:26
On Fri, 11 Feb 2000, David Brownlee wrote:
> 	Can we add a new rule - if anyone wants to add an extra use of
> 	${MAKE} in bsd.pkg.mk they have to remove at least one existing
> 	use? 

How about "if you want to introduce a new bug, you have to fix one first"?
Serious, if we understand enough of this mess to fix it, we should fix it.

Looking into the "foo: bar" vs. "foo: ; ${MAKE} bar" you mentioned, one
thing that needs to be considered that for bar, the make() function
evaluates to a different value, and that's used esp. in the .USE macros.
See the Makefile below for a stripped down example.


 - Hubert

P.S.: for the "make readme" someone mentioned, there is a solution that
      exchanges long waiting times by putting a lot of processes on the
      machine, see what FreeBSD have. I've played with it, but did not
      get anywhere I was satisfied with.



foo:    bar
        ${MAKE} bar

bar:
.if make(foo)
        @echo all: make foo
.else
        @echo all: make not foo
.endif

-- 
NetBSD - Better for your uptime than Viagra