tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgtools/libnbcompat and MAKE_JOBS

On Mon, Jan 23, 2012 at 07:19:05PM +0100, Anthony Mallet wrote:
> Yes. This may be written on a separate line for safety:
> $(OBJS): nbcompat/nbconfig.h

I would add the above - since it is correct for all versions of make.

The .WAIT (in netbsd's make) is more powerful than the above since it
forces a dependency against all the pre-requisits of all the items that
follow. In this is case it is equivalent, but consider also having:

all: nbcompat/nbconfig.h .WAIT foo

foo: $(OBJS)

Here the .WAIT forces nbcompat/nbconfig.h be built before any of the
$(OBJS) - which no dependency against 'foo' can generate.


David Laight:

Home | Main Index | Thread Index | Old Index