linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* make rule heritage, is that possible?
@ 2014-01-27 13:24 Daniel Hilst Selli
  2014-01-27 15:18 ` Darío Mariani
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Hilst Selli @ 2014-01-27 13:24 UTC (permalink / raw)
  To: linux-c-programming

I was writing a set of makefiles to build some of my projects and I see 
me copying/pasting some rules that are exactly the same, only changing 
the directory where they are executed and the variables contents.

Is there a way to write this kind of rules once and let it been 
inherited from a make directory level to another...

I think on something like this,

Top Makefile
--
generic-rule:
	...
--

subdir/Makefile
--
inherit generic-rule
--

I think about writing this rules on a Common.mk makefile and -include 
this file. Does anyone tried someting like that before?

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

end of thread, other threads:[~2014-01-27 15:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27 13:24 make rule heritage, is that possible? Daniel Hilst Selli
2014-01-27 15:18 ` Darío Mariani

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