diff options
-rw-r--r-- | doc/admin/Makefile | 12 |
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 |