[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Cluster-devel] [PATCH] Add --without-$subsystem support in toplevel configure/Makefile



On Fri, Sep 21, 2007 at 12:16:47AM +0200, Fabio Massimo Di Nitto wrote:
> Joel Becker wrote:
> > You
> > shouldn't need individual targets for each binary, etc.  But perhaps
> > that's a later pass.
> 
> I keep them separated because I can express dependencies (not all subsystems
> need all subsystems) and it let make -j work (something that was not working
> with the old style makefiles).

Try this.  The only tricky part is the patsubst converting cman-lib to
cman/lib.
 
USERLAND = cman-lib ccs cman dlm group fence gfs gfs2 gnbd rgmanager
all: $(USERLAND)

$(USERLAND):
	[ -n "${without_$ }" || ${MAKE} -C $(patsubst -,/,$@) all

cman-lib:
ccs: cman-lib
cman: ccs
dlm:
group: ccs dlm
fence: group dlm
gfs:
gfs2:
gnbd: cman-lib
rgmanager: ccs dlm

-- 

Life's Little Instruction Book #30

	"Never buy a house without a fireplace."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel becker oracle com
Phone: (650) 506-8127


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]