1 ######################################################################
2 # Copyright (c) 2013 IndexData ApS. http://indexdata.com
5 ##############################
6 # select a jquery version
8 #JQUERY_URL= http://code.jquery.com/jquery-2.0.3.min.js
9 JQUERY_URL= http://code.jquery.com/jquery-1.10.0.min.js
10 #JQUERY_URL= http://code.jquery.com/jquery-1.9.1.min.js
11 #JQUERY_URL= http://code.jquery.com/jquery-1.8.3.min.js
12 #JQUERY_URL= http://code.jquery.com/jquery-1.7.2.min.js
13 #JQUERY_URL= http://code.jquery.com/jquery-1.6.4.min.js
14 #JQUERY_URL= http://code.jquery.com/jquery-1.4.4.min.js
16 JQUERY_UI_URL= http://code.jquery.com/ui/1.10.3/jquery-ui.js
17 #JQUERY_UI_URL= http://code.jquery.com/ui/1.8.0/jquery-ui.min.js
19 MKWS_JS= mkws-complete.js
20 DOCS = README.html README.odt README.pdf \
21 whitepaper.html whitepaper.odt whitepaper.pdf
23 **default**: ${MKWS_JS} README.html whitepaper.html
25 all: ${MKWS_JS} $(DOCS)
29 mkws-js ${MKWS_JS}: ../../../libjs-pz2/pz2api.1.js mkws.js
30 ( echo "/* created at: $$(date)"; \
31 echo " mkws.js GIT id: $$(git log mkws.js | head -n 1 | perl -npe 's,\S+\s+,,') */"; \
32 curl -sSf ${JQUERY_URL}; \
33 cat ../../../libjs-pz2/pz2api.1.js mkws.js ) > ${MKWS_JS}.new
34 mv -f ${MKWS_JS}.new ${MKWS_JS}
38 rm -f ${MKWS_JS} $(DOCS)
41 @echo "make [ help | mkws-js | docs | clean ]"
43 @echo "make JQUERY_URL=http://code.jquery.com/jquery-2.0.3.min.js clean mkws-js"
45 @echo "Please check ./README file too!"
48 # For a description of pandoc's markdown format, see:
49 # http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html -->
53 pandoc --standalone -c mkws-doc.css $< -o $@
58 pandoc --standalone $< -o $@
63 pandoc --standalone $< -o $@