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

Joel Becker Joel.Becker at oracle.com
Thu Sep 20 22:48:45 UTC 2007


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 at oracle.com
Phone: (650) 506-8127




More information about the Cluster-devel mailing list