1 # Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com
3 DOCS = index.html index.pdf \
4 README.html README.pdf \
5 mkws-manual.html mkws-manual.pdf \
6 mkws-developer.html mkws-developer.pdf
8 INSTALLABLE = index.html README.html mkws-manual.html mkws-developer.html mkws-doc.css
9 INSTALLED = $(INSTALLABLE:%=../tools/htdocs/%)
23 # For a description of pandoc's markdown format, see:
24 # http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html -->
26 # for older pandoc (<1.9) run first:
27 # perl -i.bak -npe 's/"(Authors|Subjects)": "(.*?)"/"$1": "test"/' tools/htdocs/mkws-manual.markdown
29 %.html: %.markdown tweak-html
31 pandoc --standalone --toc -c mkws-doc.css $< | ./tweak-html > $@
34 # ### In order to compile the manual, which has tables, to PDF,
35 # you will need to install the Debian package
36 # texlive-latex-recommended
39 pandoc --standalone $< -o $@
46 distclean: clean uninstall
49 pandoc --toc README.markdown > README.drupal.html
50 pandoc --toc mkws-manual.markdown > mkws-manual.drupal.html
51 cat README.drupal.html | ./drupaljson.pl | curl --upload-file - http://www.indexdata.com/script/node/332?services_token=cda1e26e5733ce3f604773e94f0721df5c31a948 -v --header "Content-Type:application/json"
52 cat mkws-manual.drupal.html | ./drupaljson.pl | curl --upload-file - http://www.indexdata.com/script/node/323?services_token=cda1e26e5733ce3f604773e94f0721df5c31a948 -v --header "Content-Type:application/json"
55 @echo "make [ all | install | clean | distclean | push ]"