cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [RFC/PATCH] Collecting common Makefile snippets
@ 2007-08-27  7:19 Fabio Massimo Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio Massimo Di Nitto @ 2007-08-27  7:19 UTC (permalink / raw)
  To: cluster-devel.redhat.com

The patch in attachment is just a working example.

The general idea is to start to collect all common Makefile targets into
their own makefile snippets now that most of the Makefiles share lots of common
targets.

Pro:
- It will allow us to change common bits in one place and they will be
automatically propagated all over the tree instead of having to change N Makefiles.
- General Makefiles will be much smaller.
- It will still be possible to special case bits here and there. (from this
example patch you can look at gfs/Makefile and fence/agents/Makefile that are
not touched by the patch).
- It will be possible to override targets in local Makefiles.

Cons:
- When creating new makefiles you need to know which snippets to include.
- When reading a makefile you need to remember what targets are automatically
sourced from a snippet.


Cheers
Fabio

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-27  7:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27  7:19 [Cluster-devel] [RFC/PATCH] Collecting common Makefile snippets Fabio Massimo Di Nitto

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