All of lore.kernel.org
 help / color / mirror / Atom feed
From: bernd@petrovitsch.priv.at (Bernd Petrovitsch)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Recursive Makefile howto
Date: Sat, 28 Jan 2012 12:29:24 +0100	[thread overview]
Message-ID: <1327750165.17434.1.camel@thorin> (raw)
In-Reply-To: <20120127090207.GL9696@thebe.jupiter.sigsegv.be>

On Fre, 2012-01-27 at 10:02 +0100, Kristof Provost wrote:
[...]
> Try something like this instead:
> 
> build:
>         for d in $(DIRS) ; \
>         do \
>                 $(MAKE) -C $$d $@ || exit $? ; \
>         done

Or 

build:
        set -e; for d in $(DIRS); \
        do \
                $(MAKE) -C $$d $@; \
        done

Read bash' manual page for what "set -e" does.

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
                     LUGA : http://www.luga.at

  parent reply	other threads:[~2012-01-28 11:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-27  6:13 Recursive Makefile howto Manavendra Nath Manav
2012-01-27  9:02 ` Kristof Provost
2012-01-27 12:08   ` Manavendra Nath Manav
2012-01-27 12:37     ` Kristof Provost
2012-01-28 11:29   ` Bernd Petrovitsch [this message]
2012-01-27 15:58 ` Dave Hylands
2012-01-28  9:44   ` Manavendra Nath Manav

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=1327750165.17434.1.camel@thorin \
    --to=bernd@petrovitsch.priv.at \
    --cc=kernelnewbies@lists.kernelnewbies.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.