haampie / libtree

ldd as a tree
MIT License
2.67k stars 60 forks source link

Makefile recursion loop doesn't terminate on failure #73

Closed ismaell closed 2 years ago

ismaell commented 2 years ago

https://github.com/haampie/libtree/blob/0b68e2007c6c9967485b003377af1af940a62d7e/Makefile#L35

$ make -f test.mk
for i in a b c; do \
        false || break; \
done

$ make -f test.mk
for i in a b c; do \
        false || exit 1; \
done
make: *** [test.mk:2: loop_test] Error 1