Recursive Makefile howto
Bernd Petrovitsch
bernd at petrovitsch.priv.at
Sat Jan 28 06:29:24 EST 2012
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
More information about the Kernelnewbies
mailing list