Remove spurious line consisting only of a tab.
[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
6 all: check
7
8 clean:
9
10 distclean:
11         rm -rf node_modules
12
13 check:
14         for i in ./spec/*.js; do \
15           echo "$$i"; \
16           jasmine-node --noColor --captureExceptions --forceexit $$i; \
17         done
18
19 test: check
20
21 terse:
22         $(MIKE) jasmine-node --noColor --captureExceptions --forceexit spec
23
24 jsbeautifier jsb indent:
25         for i in ./spec/*.js ./js/*.js; do \
26           jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \
27         done
28
29 node-modules: node_modules
30 node_modules:
31         npm install jQuery xmlhttprequest jsdom request jasmine-node
32
33 help:
34         @echo "make [ all | check | clean | distclean ]"
35         @echo "     [ jsbeautifier | node-modules ]"