Open smondet opened 8 years ago
With the current Makefile, make returns 0 even when the build fails:
Makefile
make
0
It's (at least) because of this for loop: https://github.com/wanpinglee/MOSAIK/blob/5c25216d3522d6a33e53875cd76a6d65001e4e67/src/Makefile#L49
for
One possible option is to use && instead of ; like this:
&&
;
@for dir in $(SUBDIRS); do \ echo "- Building in $$dir" && \ $(MAKE) --no-print-directory -C $$dir && \ echo "" ; \ done
With the current
Makefile
,make
returns0
even when the build fails:It's (at least) because of this
for
loop: https://github.com/wanpinglee/MOSAIK/blob/5c25216d3522d6a33e53875cd76a6d65001e4e67/src/Makefile#L49One possible option is to use
&&
instead of;
like this: