Windshaft-cartodb/Makefile

33 lines
790 B
Makefile
Raw Normal View History

srcdir=$(shell pwd)
2012-07-10 00:56:09 +08:00
all:
npm install
2012-07-10 21:56:40 +08:00
clean:
rm -rf node_modules/*
config/environments/test.js: config/environments/test.js.example Makefile
./configure --environment=test
check-local: config/environments/test.js
./run_tests.sh ${RUNTESTFLAGS} \
test/unit/cartodb/redis_pool.test.js \
test/unit/cartodb/req2params.test.js \
test/acceptance/cache_validator.js \
test/acceptance/server.js \
test/acceptance/multilayer.js
check-submodules:
PATH="$$PATH:$(srcdir)/node_modules/.bin/"; \
for sub in windshaft grainstore node-varnish mapnik; do \
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
check: check-local