Improving /usr/ports/Makefile ?
Robin Schoonover
end at endif.cjb.net
Sun May 2 07:35:48 PDT 2004
On Sat, 01 May 2004 22:41:44 -0700, Kris Kennaway wrote:
> On May 1, 2004, at 5:22 PM, Robin Schoonover wrote:
> > I'd rather have something like
> >
> > .for TCAT in ${SUBDIR}
> > . if exists (${.CURDIR}/${TCAT})
> > _SUBDIR_C+= ${TCAT}
> > . endif
> > .endfor
> > SUBDIR=${_SUBDIR_C}
> >
> > attached after all the SUBDIR lines instead because it adds less
> > clutter
> > to the actual SUBDIR listing, which makes it a little eaiser (IMO) to
> > read.
>
> Are you sure this will actually do anything? Without referring to the
> code I would expect bsd.port.subdir.mk to ignore (with warning)
> categories that are listed but nonexistent.
>
You're right. Now it is even more worthless. :P
The only use it has now that I can see is that make -V SUBDIR doesn't show
nonexistant directories. (I don't think we need that very much.)
--
Robin Schoonover (aka End)
# /* And you'll never guess what the dog had */
# /* in its mouth... */
# --Larry Wall in stab.c from the perl source code
More information about the freebsd-ports
mailing list