Ehh, switch over to a makefile, I GUESS
Getty Ritter
6 years ago
1 | CORE_PLAYBOOKS := bard.pdf cleric.pdf druid.pdf fighter.pdf paladin.pdf ranger.pdf thief.pdf wizard.pdf | |
2 | INVERSE_PLAYBOOKS := collector.pdf lanternbearer.pdf survivor.pdf | |
3 | EXTENDED_PLAYBOOKS := priest.pdf artificer.pdf witch.pdf mage.pdf | |
4 | ||
5 | core-playbooks.pdf: $(CORE_PLAYBOOKS) | |
6 | pdfunite $^ $@ | |
7 | ||
8 | inverse-playbooks.pdf: $(INVERSE_PLAYBOOKS) | |
9 | pdfunite $^ $@ | |
10 | ||
11 | extended-playbooks.pdf: $(EXTENDED_PLAYBOOKS) | |
12 | pdfunite $^ $@ | |
13 | ||
14 | chalcedony.pdf: travelrules.pdf core-playbooks.pdf inverse-playbooks.pdf extended-playbooks.pdf | |
15 | pdfunite $^ $@ | |
16 | ||
17 | %.pdf: %.tex assets/prelude.tex | |
18 | $(eval TMPDIR := $(shell mktemp -d)) | |
19 | xelatex -halt-on-error -interaction=batchmode -output-directory=$(TMPDIR) $< | |
20 | mv $(TMPDIR)/$@ $@ | |
21 | rm -rf $(TMPDIR) | |
22 | ||
23 | clean: | |
24 | rm -f *.pdf |