X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile;h=7d2cbbda8bd4c45cf1fe7ca7e1ea681652c5569a;hb=d7f7e11af10210fd9872cedc1489fe0b692ca589;hp=171151b7d89ae234f1dca1f460843bfbd76cc277;hpb=570ee9f0cbae7e74b310445a4dd6744d70c0051b;p=mkws-moved-to-github.git diff --git a/doc/Makefile b/doc/Makefile index 171151b..7d2cbbd 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,35 +1,54 @@ -DOCS = README.html README.odt README.pdf \ - whitepaper.html whitepaper.odt whitepaper.pdf +# Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com +# +# To build the PDFs, you will need these Debian packages: +# texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended -# Default rule when "make" is invoked without a target -**default**: README.html whitepaper.html +# Older versions of pandoc don't do PDF output, but have a companion program +MARKDOWN2PDF = $(shell if which markdown2pdf > /dev/null; then echo markdown2pdf; else echo pandoc --standalone; fi) -all: $(DOCS) +DOCS = index.html index.pdf \ + mkws-manual.html mkws-manual.pdf \ + mkws-developer.html mkws-developer.pdf \ + mkws-doc.css -# For a description of pandoc's markdown format, see: -# http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html --> +INSTALLED = $(DOCS:%=../tools/htdocs/%) -# for older pandoc (<1.9) run first: -# perl -i.bak -npe 's/"(Authors|Subjects)": "(.*?)"/"$1": "test"/' tools/htdocs/whitepaper.markdown -# -%.html: %.markdown +all: $(INSTALLED) + +../tools/htdocs/%: % rm -f $@ - pandoc --standalone --toc -c mkws-doc.css $< | sed '/^