PANDOC_DIR = __pandoc | |
PANDOC_TEMPLATE_LATEX = $(PANDOC_DIR)/templates/template.latex | |
EPS_IMAGES = $(wildcard images/*.eps) | |
PDF_DOCS = $(PANDOC_DIR)/barcodewriter.pdf | |
define MD_FILES = | |
../README.md \ | |
kb/Quick-Guide.md \ | |
../src/README.monolithic \ | |
../src/README.resource \ | |
\ | |
$(PANDOC_DIR)/__symbology-reference.md \ | |
symbologies/EAN-13.md \ | |
... | |
$(PANDOC_DIR)/__options-reference.md \ | |
options/Text-Properties.md \ | |
... | |
$(PANDOC_DIR)/__knowledge-base.md \ | |
kb/FAQs.md \ | |
... | |
../cited-by.md | |
endef | |
$(PDF_DOCS): $(MD_FILES) $(EPS_IMAGES) $(PANDOC_TEMPLATE_LATEX) $(INTRO_FILE_LATEX) | |
pandoc \ | |
-f markdown_github -t latex \ | |
--data-dir=$(PANDOC_DIR) --template $(notdir $(PANDOC_TEMPLATE_LATEX)) \ | |
-F $(PANDOC_DIR)/__rewritewikilinks.hs \ | |
-F $(PANDOC_DIR)/__rewritepngtoeps.hs \ | |
-M title="Barcode Writer in Pure PostScript" \ | |
-M author="http://bwipp.terryburton.co.uk" \ | |
-V geometry:a4paper,margin=2cm \ | |
--toc --toc-depth=2 \ | |
--chapters \ | |
-o $@ \ | |
$(MD_FILES) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment