From owner-cvs-all Sat May 4 18:56:34 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 7B55B37B405; Sat, 4 May 2002 18:56:26 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id LAA31420; Sun, 5 May 2002 11:56:21 +1000 Date: Sun, 5 May 2002 11:58:01 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "Kenneth D. Merry" Cc: Ruslan Ermilov , , , 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 In-Reply-To: <20020504185108.A27998@panzer.kdm.org> Message-ID: <20020505115548.J999-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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(____) > > > > 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() > > with make(1) do the right thing? I don't think so. exists() only works with ordinary pathnames AFAIK. > > > > .include > > > > + .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 cvs-all" in the body of the message