From: Daniel Hilst Selli <danielhilst@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: make rule heritage, is that possible?
Date: Mon, 27 Jan 2014 11:24:21 -0200 [thread overview]
Message-ID: <52E65E05.6070307@gmail.com> (raw)
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?
next reply other threads:[~2014-01-27 13:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-27 13:24 Daniel Hilst Selli [this message]
2014-01-27 15:18 ` make rule heritage, is that possible? Darío Mariani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E65E05.6070307@gmail.com \
--to=danielhilst@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.