Subject: Re: Weird "make all" behavior
To: Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>
From: Eric Haszlakiewicz <haszlaki@UAccess.NET>
List: current-users
Date: 11/05/1997 23:55:43
> This behaviour disappears when I define
> "BUILD" in the environment.
> 
> Looking at bsd.prog.mk, there is a rule:
> .if !defined(BUILD)
> ${DESTDIR}${BINDIR}/${PROGNAME}: .MADE
> .endif
> 
> With an "install" target, the installed program becomes
> dependant on the to-be-built one, and "make" decides
> to do nothing here.
> I don't yet understand how this is supposed to work
> at all.
	ah... I think I see.  that should really be
.if !defined(BUILD) && !target(all)
...
except "all" isn't really correct.  It should be "all" or "${PROG}" or
"${PROG}.cat1}" or ....  Not really sure what else should be there.

eric