X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile;h=7d2cbbda8bd4c45cf1fe7ca7e1ea681652c5569a;hb=1106069e49100f6f4ea90eb7f89c14057c2e600b;hp=93a1423fdcb7bccb073b54dab2d261960b63d67b;hpb=ec7626096c542b2df419792517a942101a34e395;p=mkws-moved-to-github.git diff --git a/doc/Makefile b/doc/Makefile index 93a1423..7d2cbbd 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,52 +1,54 @@ -# Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com +# 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 -DOCS = README.html README.odt README.pdf \ - whitepaper.html whitepaper.odt whitepaper.pdf +# 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) -INSTALLABLE = README.html whitepaper.html mkws-doc.css -INSTALLED = $(INSTALLABLE:%=../tools/htdocs/%) +DOCS = index.html index.pdf \ + mkws-manual.html mkws-manual.pdf \ + mkws-developer.html mkws-developer.pdf \ + mkws-doc.css -install: $(INSTALLED) +INSTALLED = $(DOCS:%=../tools/htdocs/%) -uninstall: - rm -f $(INSTALLED) +all: $(INSTALLED) ../tools/htdocs/%: % rm -f $@ - cp -p $? $@ - chmod -w $@ - -all: $(DOCS) + cp $< $@ + chmod ugo-w $@ # For a description of pandoc's markdown format, see: -# http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html --> +# http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html # for older pandoc (<1.9) run first: -# perl -i.bak -npe 's/"(Authors|Subjects)": "(.*?)"/"$1": "test"/' tools/htdocs/whitepaper.markdown +# perl -i.bak -npe 's/"(Authors|Subjects)": "(.*?)"/"$1": "test"/' tools/htdocs/mkws-manual.markdown # -%.html: %.markdown +../tools/htdocs/%.html: %.markdown tweak-html rm -f $@ - pandoc --standalone --toc -c mkws-doc.css $< | sed '/^