Date: Tue, 31 Oct 2000 05:54:29 -0600 From: "Jeffrey J. Mountin" <jeff-ml@mountin.net> To: Dann Lunsford <dann@greycat.com>, Trevor Johnson <trevor@jpj.net> Cc: ports@FreeBSD.ORG Subject: Re: possible bug with 'make readmes' Message-ID: <4.3.2.20001031050743.00bab9c0@207.227.119.2> In-Reply-To: <20001028104607.A10335@greycat.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
At 10:46 AM 10/28/00 -0700, Dann Lunsford wrote: >The only thing I've been able to come up with is a mod to /usr/ports/Makefile >that's more than a little kludgey, but it works: --snip-- >XXTMPDIR += x11-wm > >.for dir in ${XXTMPDIR} >.if exists(${dir}) >SUBDIR += ${dir} >.endif >.endfor >-------------------------------------------------------------------- Rather than change all those lines, even with sed as your friend, why not just use: .for dir in ${SUBDIR} .if exists(${dir}) SUBDIR_EXISTS += ${dir} .endif .endfor SUBDIR = ${SUBDIR_EXISTS} Only 7 lines to add in 48 files (base Makefile and 47 collection Makefile's) for quieter recursions in pruned trees. It would be nice to do the variable checking in bsd.port.mk, but have little clue where and how. 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.20001031050743.00bab9c0>