Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2000 08:44:42 -0600
From:      "Jeffrey J. Mountin" <jeff-ml@mountin.net>
To:        James Housley <jim@thehousleys.net>, Dann Lunsford <dann@greycat.com>
Cc:        ports@FreeBSD.ORG
Subject:   Re: possible bug with 'make readmes'
Message-ID:  <4.3.2.20001031082331.00d66ab0@207.227.119.2>
In-Reply-To: <39FED43E.DA69EC0C@thehousleys.net>
References:  <Pine.BSI.4.21.0010280859310.1326-100000@blues.jpj.net> <39FA428A.19C0EAF3@ipass.net> <Pine.BSI.4.21.0010280859310.1326-100000@blues.jpj.net> <20001028104607.A10335@greycat.com> <4.3.2.20001031050743.00bab9c0@207.227.119.2> <20001031054441.A94263@greycat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 09:16 AM 10/31/00 -0500, James Housley wrote:

> > > .for dir in ${SUBDIR}
> > > .if exists(${dir})
> > > SUBDIR_EXISTS += ${dir}
> > > .endif
> > > .endfor
> > > SUBDIR = ${SUBDIR_EXISTS}
> > >
> > You're right, that is better.  Now, where did I put that excuse
> > file?  Oh yeah, here's one:  "Not enough coffee that day." :-)
> > Thanks.
>
>Might it be better to use ".if exists(${dir}/Makefile)" because I think
>it will still fail if the directory exists but is missing the files.

Good point, but then ".if exists(${.CURDIR}/${dir}/Makefile)" is even 
better.  Just compare a make using '-dA'

And I don't drink coffee. ;)


Jeff Mountin - jeff@mountin.net
Systems/Network Administrator
FreeBSD - the power to serve



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.20001031082331.00d66ab0>