Date: Sun, 5 May 2002 11:58:01 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: "Kenneth D. Merry" <ken@kdm.org> Cc: Ruslan Ermilov <ru@FreeBSD.ORG>, <cvs-committers@FreeBSD.ORG>, <cvs-all@FreeBSD.ORG>, <current@FreeBSD.ORG> Subject: Re: cvs commit: src/share/mk bsd.doc.mk bsd.docb.mk bsd.info.mk bsd.init.mk bsd.lib.mk bsd.libnames.mk bsd.man.mk bsd.nls.mk bsd.obj.mk bsd.own.mk bsd.prog.mk bsd.sgml.mk bsd.subdir.mk sys.mk Message-ID: <20020505115548.J999-100000@gamplex.bde.org> In-Reply-To: <20020504185108.A27998@panzer.kdm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020505115548.J999-100000>