Subject: Re: important: make changes
To: Christos Zoulas <>
From: Andrew Brown <>
List: current-users
Date: 01/15/2001 01:54:34
>.if !commands(foo)
>	echo 2
>In order for your make build to succeed, please make sure that you rebuild
>make(1) before you install the new rules in /usr/src/share/mk, so that
>the commands(<target>) directive gets recognized.

imho, this is the "wrong" solution.  the makefiles in question
(etc/Makefile et al, for example) should be modified to not emit to
sets of commands.

for the etc set, both etc/Makefile and, eg, etc/etc.i386/
define a snap_md_post target with commands.  in the former, it is
"protected" by ".if !defined(RELEASEDIR)" and ".ifndef DESTDIR"
whereas in the latter it is not "protected" at all.  adjusting the
port makefiles would be, i think, a more proper solution.  the target
in the md makefiles should probably be protected by something checking
the value of RELEASEDIR.  snap_md_post isn't very useful if that's not

this, of course, says nothing of the mixed use of ".if !defined" and
".ifndef" in different places.  :)

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."