X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=Makefile;h=8d7314554f09bbbec7a45420034d6ff4c3852a6b;hp=4fe1fe598e5f1028c7203309b2da8e8cdf68af44;hb=450ecc96e4916e5960eb5400a5d0315ebfd070c4;hpb=abd9291860448d941f324ad48a2eb08b0cce2a06 diff --git a/Makefile b/Makefile index 4fe1fe5..8d73145 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,34 @@ -# Copyright (c) 2013 IndexData ApS. http://indexdata.com +# Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com +# +# You need node.js to build MKWS. On caliban, get it using: +# export PATH=$PATH:/home/indexdata/node/node-v0.10.32-linux-x64/bin -**default**: - (cd tools/htdocs; $(MAKE)) +all: + ${MAKE} -C./test node-modules + ${MAKE} -C./src + ${MAKE} -C./doc + +clean distclean: + ${MAKE} -C./src $@ + ${MAKE} -C./doc $@ + ${MAKE} -C./examples/htdocs $@ + ${MAKE} -C./test $@ + +check-js: + ${MAKE} -C./test check + +phantomjs p p-all phantomjs-all jsb: + ${MAKE} -C./test $@ + +# must be called once after GIT checkout +setup: + ${MAKE} -C./test node-modules + +check: setup check-js phantomjs help: - @echo "make [ all | clean ]" + @echo "make [ all | setup | clean | distclean ]" + @echo " [ check | check-js | phantomjs ]" + @echo "" + @echo "If 'make check' timeout is too short, extend with: make check PHANTOMJS_TIMEOUT=40" +