less verbose output for installing npm modules
[mkws-moved-to-github.git] / test / Makefile
1 # Copyright (c) 2013 IndexData ApS. http://indexdata.com
2
3 # For running on Mike's local install of node.js
4 MIKE = PATH=$$PATH:/usr/local/lib/node-v0.10.24-linux-x64/bin
5 NPM_INSTALL_FLAGS=-q
6
7 all: check
8
9 clean:
10
11 distclean:
12         rm -rf node_modules
13
14 mkws-complete-syntax-check:
15         ${MAKE} -C../tools/htdocs $@
16
17 check: mkws-complete-syntax-check
18         for i in ./spec/*.js; do \
19           echo "$$i"; \
20           jasmine-node --noColor --captureExceptions --forceexit $$i; \
21         done
22
23 test: check
24
25 terse:
26         $(MIKE) jasmine-node --noColor --captureExceptions --forceexit spec
27
28 jsbeautifier jsb indent:
29         for i in ./spec/*.js ./js/*.js; do \
30           jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \
31         done
32
33 node-modules: node_modules
34 node_modules:
35         npm install ${NPM_INSTALL_FLAGS} jQuery xmlhttprequest jsdom request jasmine-node
36
37 help:
38         @echo "make [ all | check | clean | distclean ]"
39         @echo "     [ jsbeautifier | node-modules ]"