make(1): adding sort modifiers

Marcel Moolenaar marcel at xcllnt.net
Wed Sep 17 00:59:23 PDT 2003


On Wed, Sep 17, 2003 at 09:01:12AM +0200, Poul-Henning Kamp wrote:
> In message <20030917065127.GB4261 at athlon.pn.xcllnt.net>, Marcel Moolenaar writes:
> >
> >Attached a patch that adds the functionality to make(1) to sort
> >the words in a variable. With this functionality and a small
> >change to bsd.subdir.mk (also attached), we automaticly have
> >sorted subdirectory recursion, even though it's impossible or
> >hard to do it in the makesfiles themselves. Is this too evil?
> 
> Do we actually want to do that ?  I thought we had places
> where the ordering was explicit to express dependencies ?

/usr/src/lib has a problem, because we do encode dependencies
in the ordering, but we shouldn't really do that anyway.
Dependencies should be expressed by dependency rules. Something
like:

SUBDIR= a b c d
a: b
d: a

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel at xcllnt.net


More information about the freebsd-arch mailing list