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
16 mkws-complete-syntax-check:
17 ${MAKE} -C../tools/htdocs $@
19 check: mkws-complete-syntax-check
20 jasmine-node --noColor --captureExceptions --forceexit ./spec
21 jasmine-node --noColor --captureExceptions --forceexit ./spec-sp
26 $(MIKE) jasmine-node --noColor --captureExceptions --forceexit spec
29 @# ${PHANTOMJS} phantom/evaluate.js https://mkws-dev.indexdata.com/jasmine-local-popup.html
30 ${PHANTOMJS} phantom/evaluate.js https://mkws-dev.indexdata.com/jasmine-popup.html
32 jsbeautifier jsb indent:
33 for i in ./spec*/*.js ./js/*.js; do \
34 jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \
37 node-modules: node_modules
39 npm install ${NPM_INSTALL_FLAGS} jQuery xmlhttprequest jsdom request jasmine-node phantomjs
42 @echo "make [ all | check | phantomjs | clean | distclean ]"
43 @echo " [ jsbeautifier | node-modules ]"