Tweak PATH during submodule check, to find mocha from subdirs

This commit is contained in:
Sandro Santilli 2013-04-15 09:20:51 +02:00
parent 6f8fd69101
commit 1b6a662a72

View File

@ -1,3 +1,5 @@
srcdir=$(shell pwd)
all:
npm install
@ -19,6 +21,7 @@ check-local: config/environments/test.js
test/acceptance/server.js \
check-submodules:
PATH="$$PATH:$(srcdir)/node_modules/.bin/"; \
for sub in windshaft grainstore mapnik; do \
test -e node_modules/$${sub} && make -C node_modules/$${sub} check; \
done