Fix check-submodules rule not to fail if a submodule is missing

This commit is contained in:
Sandro Santilli 2013-09-04 18:19:09 +02:00
parent 27eaad932a
commit 17fc934aa3

View File

@ -20,7 +20,10 @@ check-local: config/environments/test.js
check-submodules:
PATH="$$PATH:$(srcdir)/node_modules/.bin/"; \
for sub in windshaft grainstore node-varnish mapnik; do \
test -e node_modules/$${sub} && make -C node_modules/$${sub} check || exit 1; \
if test -e node_modules/$${sub}; then \
echo "Testing submodule $${sub}"; \
make -C node_modules/$${sub} check || exit 1; \
fi; \
done
check-full: check-local check-submodules