summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2018-06-01 11:01:27 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2018-06-01 11:01:27 +0100
commit3218d2f6c1c91ff4c188ad56e64922fa3b046be2 (patch)
treec0a692261d6490761f47bc0ddc0dc591eb4eba07
parentf464557c414665b743b3933628a535d25d099cfa (diff)
downloadgitano-3218d2f6c1c91ff4c188ad56e64922fa3b046be2.tar.gz
DOC: Update Makefile for pandoc arg override
Pandoc 2 has made --chapters invalid, so this allows for the chapters (and other parts of the pandoc arguments) to be overridden
-rw-r--r--doc/admin/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/admin/Makefile b/doc/admin/Makefile
index 64979b6..f9a175e 100644
--- a/doc/admin/Makefile
+++ b/doc/admin/Makefile
@@ -2,11 +2,19 @@ sources = $(wildcard *.mdwn)
all: gitano-admin-doc.pdf gitano-admin-doc.html
+PANDOC_ARGS_SHAPE := --standalone --toc
+PANDOC_ARGS_CHAPTERS := --chapters
+PANDOC_PDF_ARGS_SETTINGS := -V documentclass:report -V geometry:margin=1in -V graphics:true -V papersize:a4paper
+PANDOC_PDF_ARGS := $(PANDOC_ARGS_SHAPE) $(PANDOC_ARGS_CHAPTERS) $(PANDOC_PDF_ARGS_SETTINGS) -H titling.tex -H header.tex
+
+PANDOC_HTML_ARGS_SETTINGS := --css manual.css -B image.html
+PANDOC_HTML_ARGS := $(PANDOC_ARGS_SHAPE) $(PANDOC_HTML_ARGS_SETTINGS)
+
gitano-admin-doc.pdf: $(sources) Makefile titling.tex header.tex
- pandoc --standalone --toc --chapters -V documentclass:report -V geometry:margin=1in -V graphics:true -V papersize:a4paper -H titling.tex -H header.tex -o gitano-admin-doc.pdf $(sources)
+ pandoc $(PANDOC_PDF_ARGS) -o gitano-admin-doc.pdf $(sources)
gitano-admin-doc.html: $(sources) Makefile manual.css image.html
- pandoc --toc --standalone --css manual.css -B image.html -o gitano-admin-doc.html $(sources)
+ pandoc $(PANDOC_HTML_ARGS) -o gitano-admin-doc.html $(sources)
clean:
$(RM) gitano-admin-doc.pdf gitano-admin-doc.html