12345678910111213141516171819202122232425262728293031323334 |
- CORE_PLAYBOOKS := bard.pdf cleric.pdf druid.pdf fighter.pdf paladin.pdf ranger.pdf thief.pdf wizard.pdf
- INVERSE_PLAYBOOKS := collector.pdf lanternbearer.pdf survivor.pdf
- EXTENDED_PLAYBOOKS := priest.pdf artificer.pdf witch.pdf mage.pdf
- CUSTOM_PLAYBOOKS := farmer.pdf merchant.pdf
- chalcedony.pdf: travelrules.pdf core-playbooks.pdf inverse-playbooks.pdf extended-playbooks.pdf
- @echo "[CONCAT] $@"
- @pdfunite $^ $@
- core-playbooks.pdf: $(CORE_PLAYBOOKS)
- @echo "[CONCAT] $@"
- @pdfunite $^ $@
- inverse-playbooks.pdf: $(INVERSE_PLAYBOOKS)
- @echo "[CONCAT] $@"
- @pdfunite $^ $@
- extended-playbooks.pdf: $(EXTENDED_PLAYBOOKS)
- @echo "[CONCAT] $@"
- @pdfunite $^ $@
- custom-playbooks.pdf: $(CUSTOM_PLAYBOOKS)
- @echo "[CONCAT] $@"
- @pdfunite $^ $@
- %.pdf: %.tex assets/prelude.tex
- $(eval TMPDIR := $(shell mktemp -d))
- @echo "[PDF] $@"
- @xelatex -halt-on-error -interaction=batchmode -output-directory=$(TMPDIR) $< 2>&1 >/dev/null
- @mv $(TMPDIR)/$@ $@
- @rm -rf $(TMPDIR)
- clean:
- rm -f *.pdf
|