Thread (7 messages) flat view 7 messages, 4 authors, 2012-01-28

Recursive Makefile howto

From: Bernd Petrovitsch <hidden>
Date: 2012-01-28 11:29:24

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help