X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile;h=7e59c93db5cd398e4be949d23d82b00e54cf4e94;hb=e8b1a78d47715662856c5501802d73f25ee71919;hp=6157979ffbdf19ca311ddf1246fb7dff94154cb7;hpb=26eabddfa0598b6d6cfbee08632c08ea888a4a97;p=mkws-moved-to-github.git diff --git a/doc/Makefile b/doc/Makefile index 6157979..7e59c93 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,53 +1,57 @@ -# 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 \ - mkws-manual.html mkws-manual.odt mkws-manual.pdf \ - library-configuration.html library-configuration.odt library-configuration.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 mkws-manual.html library-configuration.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 $? $@ + cp $< $@ chmod ugo-w $@ -all: $(DOCS) - # 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/mkws-manual.markdown # -%.html: %.markdown - rm -f $@ - pandoc --standalone --toc -c mkws-doc.css $< | sed '/^