Created
February 20, 2015 16:08
-
-
Save terryburton/03ba5c359acfcb88a124 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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