make runs in examples/htdocs
[mkws-moved-to-github.git] / Makefile
1 # Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
2 #
3 # You need node.js to build MKWS. On caliban, get it using:
4 # export PATH=$PATH:/home/indexdata/node/node-v0.10.32-linux-x64/bin
5
6 all:
7         ${MAKE} -C./test node-modules
8         ${MAKE} -C./src
9         ${MAKE} -C./doc
10         ${MAKE} -C./examples/htdocs
11
12 clean distclean:
13         ${MAKE} -C./src $@
14         ${MAKE} -C./doc $@
15         ${MAKE} -C./examples/htdocs $@
16         ${MAKE} -C./test $@
17
18 check-js:
19         ${MAKE} -C./test check
20
21 phantomjs p p-all phantomjs-all jsb:
22         ${MAKE} -C./test $@
23
24 # must be called once after GIT checkout
25 setup:
26         ${MAKE} -C./test node-modules
27
28 check: setup check-js phantomjs
29
30 help:
31         @echo "make [ all | setup | clean | distclean ]"
32         @echo "     [ check | check-js | phantomjs ]"
33         @echo ""
34         @echo "If 'make check' timeout is too short, extend with: make check PHANTOMJS_TIMEOUT=40"
35