| 1 | # Generate the Freedoom manual PDF files based on ADOC files. Each translation |
| 2 | # has a two character code. Adding a new translation does not require any |
| 3 | # makefile changes, but it would be nice to keep the following table up to date: |
| 4 | # |
| 5 | # Two Character Code Language |
| 6 | # ------------------ -------- |
| 7 | # en English |
| 8 | # es Spanish |
| 9 | # fr French |
| 10 | |
| 11 | ASCIIDOCTOR_FLAGS = -a pdf-page-size=A5 |
| 12 | MANUAL_ADOC_FILES=$(wildcard freedoom-manual-??.adoc) |
| 13 | MANUAL_PDF_FILES=$(subst .adoc,.pdf,$(MANUAL_ADOC_FILES)) |
| 14 | |
| 15 | all: $(MANUAL_PDF_FILES) |
| 16 | |
| 17 | freedoom-manual-%.pdf: freedoom-manual-%.adoc |
| 18 | -asciidoctor-pdf $(ASCIIDOCTOR_FLAGS) $< -o $@ |
| 19 | |
| 20 | clean: |
| 21 | $(RM) $(MANUAL_PDF_FILES) |