cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] Add --without-$subsystem support in toplevel configure/Makefile
@ 2007-09-20 21:47 Fabio Massimo Di Nitto
  2007-09-20 22:08 ` Joel Becker
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Massimo Di Nitto @ 2007-09-20 21:47 UTC (permalink / raw)
  To: cluster-devel.redhat.com


Hi guys,

the patch in attachment allows to disable the build/install targets for each
specific subsystem in the tree.

thanks also to Joel Becker for a bunch of filter-out hints.

Please apply or ACK and I will apply.
Fabio

-- 
I'm going to make him an offer he can't refuse.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: support-without.diff
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20070920/0ed78834/attachment.ksh>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Cluster-devel] [PATCH] Add --without-$subsystem support in toplevel configure/Makefile
  2007-09-20 21:47 [Cluster-devel] [PATCH] Add --without-$subsystem support in toplevel configure/Makefile Fabio Massimo Di Nitto
@ 2007-09-20 22:08 ` Joel Becker
  2007-09-20 22:16   ` Fabio Massimo Di Nitto
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Becker @ 2007-09-20 22:08 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On Thu, Sep 20, 2007 at 11:47:47PM +0200, Fabio Massimo Di Nitto wrote:
> the patch in attachment allows to disable the build/install targets for each
> specific subsystem in the tree.
> 
> thanks also to Joel Becker for a bunch of filter-out hints.

	I'd like to see $USERLAND and $SUBDIRS made one variable.  You
shouldn't need individual targets for each binary, etc.  But perhaps
that's a later pass.

Joel

-- 

"Gone to plant a weeping willow
 On the bank's green edge it will roll, roll, roll.
 Sing a lulaby beside the waters.
 Lovers come and go, the river roll, roll, rolls."

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Cluster-devel] [PATCH] Add --without-$subsystem support in toplevel configure/Makefile
  2007-09-20 22:08 ` Joel Becker
@ 2007-09-20 22:16   ` Fabio Massimo Di Nitto
  2007-09-20 22:48     ` Joel Becker
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Massimo Di Nitto @ 2007-09-20 22:16 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Joel Becker wrote:
> On Thu, Sep 20, 2007 at 11:47:47PM +0200, Fabio Massimo Di Nitto wrote:
>> the patch in attachment allows to disable the build/install targets for each
>> specific subsystem in the tree.
>>
>> thanks also to Joel Becker for a bunch of filter-out hints.
> 
> 	I'd like to see $USERLAND and $SUBDIRS made one variable.

This can be done.

> 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).

Fabio

-- 
I'm going to make him an offer he can't refuse.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Cluster-devel] [PATCH] Add --without-$subsystem support in toplevel configure/Makefile
  2007-09-20 22:16   ` Fabio Massimo Di Nitto
@ 2007-09-20 22:48     ` Joel Becker
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Becker @ 2007-09-20 22:48 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-20 22:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-20 21:47 [Cluster-devel] [PATCH] Add --without-$subsystem support in toplevel configure/Makefile Fabio Massimo Di Nitto
2007-09-20 22:08 ` Joel Becker
2007-09-20 22:16   ` Fabio Massimo Di Nitto
2007-09-20 22:48     ` Joel Becker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).