From 1b6a662a72ffb3a8667bcd52d9196c257918abae Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 15 Apr 2013 09:20:51 +0200 Subject: [PATCH] Tweak PATH during submodule check, to find mocha from subdirs --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index be83082a..439b4f76 100644 --- a/Makefile +++ b/Makefile @@ -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