1 # Copyright (c) 2013 IndexData ApS. http://indexdata.com
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
6 PHANTOMJS= ./node_modules/phantomjs/bin/phantomjs
7 PHANTOMJS_URL= https://mkws-dev.indexdata.com/jasmine-popup.html
18 mkws-complete-syntax-check:
19 ${MAKE} -C../tools/htdocs $@
21 check: mkws-complete-syntax-check
22 @if [ ! -e node_modules ]; then echo "please run first: make node-modules"; exit 1; fi
23 jasmine-node --noColor --captureExceptions --forceexit ./spec
24 jasmine-node --noColor --captureExceptions --forceexit ./spec-sp
29 $(MIKE) jasmine-node --noColor --captureExceptions --forceexit spec
32 ${PHANTOMJS} phantom/evaluate.js ${PHANTOMJS_URL} ${PHANTOMJS_TIMEOUT}
34 jsbeautifier jsb indent:
35 for i in ./spec*/*.js ./js/*.js; do \
36 jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \
39 node-modules: node_modules
41 npm install ${NPM_INSTALL_FLAGS} jQuery xmlhttprequest jsdom request jasmine-node phantomjs
44 @echo "make [ all | check | phantomjs | clean | distclean ]"
45 @echo " [ jsbeautifier | node-modules ]"