Add whitepaper to DOCS target.
[mkws-moved-to-github.git] / tools / htdocs / Makefile
1 ######################################################################
2 # Copyright (c) 2013 IndexData ApS. http://indexdata.com
3 #
4
5 #JQUERY_URL=    http://code.jquery.com/jquery-2.0.3.min.js
6 JQUERY_URL=     http://code.jquery.com/jquery-1.10.0.min.js
7 #JQUERY_URL=    http://code.jquery.com/jquery-1.9.1.min.js
8 #JQUERY_URL=    http://code.jquery.com/jquery-1.8.3.min.js
9 #JQUERY_URL=    http://code.jquery.com/jquery-1.7.2.min.js
10 #JQUERY_URL=    http://code.jquery.com/jquery-1.6.4.min.js
11 #JQUERY_URL=    http://code.jquery.com/jquery-1.4.4.min.js
12
13 JQUERY_UI_URL=  http://code.jquery.com/ui/1.10.3/jquery-ui.js   
14 #JQUERY_UI_URL= http://code.jquery.com/ui/1.8.0/jquery-ui.min.js
15
16 MKWS_JS=        mkws-complete.js
17 DOCS = README.html README.odt README.pdf \
18        whitepaper.html whitepaper.odt whitepaper.pdf
19 **default**: ${MKWS_JS} README.html whitepaper.html
20 all: ${MKWS_JS} $(DOCS)
21
22 mkws-js ${MKWS_JS}: ../../../libjs-pz2/pz2api.1.js mkws.js
23         ( echo "/* created at: $$(date)"; \
24           echo "   mkws.js GIT id: $$(git log mkws.js | head -n 1 | perl -npe 's,\S+\s+,,') */"; \
25           curl -sSf ${JQUERY_URL}; \
26           cat ../../../libjs-pz2/pz2api.1.js mkws.js ) > ${MKWS_JS}.new 
27         mv -f ${MKWS_JS}.new ${MKWS_JS}
28
29 distclean: clean
30 clean:
31         rm -f ${MKWS_JS} $(DOCS)
32
33 help:
34         @echo "make [ help | mkws-js | clean ]"
35         @echo ""
36         @echo "make JQUERY_URL=http://code.jquery.com/jquery-2.0.3.min.js clean mkws-js"
37         @echo ""
38         @echo "Please check ./README file too!"
39
40
41 # For a description of pandoc's markdown format, see:
42 # http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html -->
43
44 %.html: %.markdown
45         rm -f $@
46         pandoc --standalone -c mkws-doc.css $< -o $@
47         chmod ugo-w $@
48
49 %.odt: %.markdown
50         rm -f $@
51         pandoc --standalone $< -o $@
52         chmod ugo-w $@
53
54 %.pdf: %.markdown
55         rm -f $@
56         pandoc --standalone $< -o $@
57         chmod ugo-w $@
58