wanpinglee / MOSAIK

reference-guided aligner for next-generation sequencing technologies
http://code.google.com/p/mosaik-aligner/
55 stars 19 forks source link

Build-system does not fail properly #22

Open smondet opened 8 years ago

smondet commented 8 years ago

With the current Makefile, make returns 0 even when the build fails:

It's (at least) because of this for loop: https://github.com/wanpinglee/MOSAIK/blob/5c25216d3522d6a33e53875cd76a6d65001e4e67/src/Makefile#L49

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