make rule heritage, is that possible?
Daniel Hilst Selli <[email protected]> Mon, 27 Jan 2014 11:24:21 -0200
| Newsgroups | gmane.linux.c-programming |
|---|---|
| Message-ID | <[email protected]> |
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? -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html