On Sat, 4 May 2002, Kenneth D. Merry wrote: > On Sun, May 05, 2002 at 10:05:18 +1000, Bruce Evans wrote: > > On Fri, 3 May 2002, Kenneth D. Merry wrote: > > > > + .if exists(__<bsd.init.mk>__) > > > > It will never exist when it has 2 layers of misspelling like this :-). > > I grabbed the __ part from bsd.init.mk, but I suppose I was a bit confused. > > So if I do: > > .if exists(<bsd.init.mk>) > > with make(1) do the right thing?
I don't think so. exists() only works with ordinary pathnames AFAIK. > > > > .include <bsd.init.mk> > > > > + .elif exists(../../../share/mk/bsd.init.mk) > > > > + .include "../../../share/mk/bsd.init.mk" > > > > + .elif exists(../../../../share/mk/bsd.init.mk) > > > > + .include "../../../../share/mk/bsd.init.mk" > > > > + .endif > > > > > > > > .SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S > > > > > > > > Not using it when it isn't in the standard place would be less ugly. > > How about this? Assuming exists() does the right thing (does it?), this > patch would restore the previous behavior if bsd.init.mk isn't there. See another reply. Bruce To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message