From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Becker Date: Thu, 20 Sep 2007 15:48:45 -0700 Subject: [Cluster-devel] [PATCH] Add --without-$subsystem support in toplevel configure/Makefile In-Reply-To: <46F2F14F.2040908@ubuntu.com> References: <46F2EA83.4030805@ubuntu.com> <20070920220855.GN30391@tasint.org> <46F2F14F.2040908@ubuntu.com> Message-ID: <20070920224845.GA3490@tasint.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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