X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile;h=f009f82c243d264406cb397200ff15ac74648b8f;hb=20cc407a460346e4baf84ec4af56e7e924950150;hp=171151b7d89ae234f1dca1f460843bfbd76cc277;hpb=570ee9f0cbae7e74b310445a4dd6744d70c0051b;p=mkws-moved-to-github.git diff --git a/doc/Makefile b/doc/Makefile index 171151b..f009f82 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,28 +1,40 @@ -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 + +DOCS = index.html index.pdf \ + README.html README.pdf \ + mkws-manual.html mkws-manual.pdf \ + mkws-developer.html mkws-developer.pdf + +INSTALLABLE = index.html README.html mkws-manual.html mkws-developer.html mkws-doc.css +INSTALLED = $(INSTALLABLE:%=../tools/htdocs/%) + +install: $(INSTALLED) -# Default rule when "make" is invoked without a target -**default**: README.html whitepaper.html +uninstall: + rm -f $(INSTALLED) + +../tools/htdocs/%: % + rm -f $@ + cp -p $? $@ + 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/whitepaper.markdown +# perl -i.bak -npe 's/"(Authors|Subjects)": "(.*?)"/"$1": "test"/' tools/htdocs/mkws-manual.markdown # -%.html: %.markdown +%.html: %.markdown tweak-html rm -f $@ - pandoc --standalone --toc -c mkws-doc.css $< | sed '/^