12345678910111213141516171819202122232425262728293031323334 |
- CORE_PLAYBOOKS := bard.pdf cleric.pdf druid.pdf fighter.pdf paladin.pdf ranger.pdf thief.pdf wizard.pdf
- INVERSE_PLAYBOOKS := collector.pdf golem.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 "\033[0;95m[PDFUNITE]\033[0m $@"
- @pdfunite $^ $@
- core-playbooks.pdf: $(CORE_PLAYBOOKS)
- @echo "\033[0;95m[PDFUNITE]\033[0m $@"
- @pdfunite $^ $@
- inverse-playbooks.pdf: $(INVERSE_PLAYBOOKS)
- @echo "\033[0;95m[PDFUNITE]\033[0m $@"
- @pdfunite $^ $@
- extended-playbooks.pdf: $(EXTENDED_PLAYBOOKS)
- @echo "\033[0;95m[PDFUNITE]\033[0m $@"
- @pdfunite $^ $@
- custom-playbooks.pdf: $(CUSTOM_PLAYBOOKS)
- @echo "\033[0;95m[PDFUNITE]\033[0m $@"
- @pdfunite $^ $@
- %.pdf: %.tex assets/prelude.tex
- $(eval TMPDIR := $(shell mktemp -d))
- @echo "\033[0;94m[XELATEX]\033[0m $@"
- @xelatex -interaction=nonstopmode -output-directory=$(TMPDIR) $< >$(TMPDIR)/log.txt 2>&1 || ( cat $(TMPDIR)/log.txt >&2; exit 1 )
- @mv $(TMPDIR)/$@ $@
- @rm -rf $(TMPDIR)
- clean:
- rm -f *.pdf
|