cleanup internal references
[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         jasmine-node --noColor --captureExceptions --forceexit ./spec
19         jasmine-node --noColor --captureExceptions --forceexit ./spec-sp
20
21 test: check
22
23 terse:
24         $(MIKE) jasmine-node --noColor --captureExceptions --forceexit spec
25
26 jsbeautifier jsb indent:
27         for i in ./spec/*.js ./js/*.js; do \
28           jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \
29         done
30
31 node-modules: node_modules
32 node_modules:
33         npm install ${NPM_INSTALL_FLAGS} jQuery xmlhttprequest jsdom request jasmine-node
34
35 help:
36         @echo "make [ all | check | clean | distclean ]"
37         @echo "     [ jsbeautifier | node-modules ]"