Makefile 686 B

1234567891011121314151617181920212223242526272829303132
  1. # PDF build helpers for docs/.
  2. #
  3. # Requirements:
  4. # pandoc, lualatex (TeX Live), DejaVu Sans/Mono and Symbola.
  5. #
  6. # Usage:
  7. # make -C docs pdfs
  8. # make -C docs clean
  9. PANDOC ?= pandoc
  10. PDF_ENGINE ?= lualatex
  11. HEADER := pdf-header.tex
  12. SOURCES := comparison-PIM4-gm2-V3.md future-work-2026-10-25.md
  13. PDFS := $(SOURCES:.md=.pdf)
  14. PANDOC_FLAGS := \
  15. --from=markdown \
  16. --pdf-engine=$(PDF_ENGINE) \
  17. --pdf-engine-opt=-interaction=nonstopmode \
  18. --include-in-header=$(HEADER) \
  19. --variable=geometry:a4paper,margin=2cm \
  20. --variable=fontsize=10pt \
  21. --variable=linestretch=1.05
  22. .PHONY: pdfs clean
  23. pdfs: $(PDFS)
  24. %.pdf: %.md $(HEADER)
  25. $(PANDOC) $(PANDOC_FLAGS) -o $@ $<
  26. clean:
  27. rm -f $(PDFS)