gdritter repos chalcedony-playbooks / 93b2732
makefile quiet Getty Ritter 6 years ago
1 changed file(s) with 18 addition(s) and 8 deletion(s). Collapse all Expand all
11 CORE_PLAYBOOKS := bard.pdf cleric.pdf druid.pdf fighter.pdf paladin.pdf ranger.pdf thief.pdf wizard.pdf
22 INVERSE_PLAYBOOKS := collector.pdf lanternbearer.pdf survivor.pdf
33 EXTENDED_PLAYBOOKS := priest.pdf artificer.pdf witch.pdf mage.pdf
4 CUSTOM_PLAYBOOKS := farmer.pdf merchant.pdf
5
6 chalcedony.pdf: travelrules.pdf core-playbooks.pdf inverse-playbooks.pdf extended-playbooks.pdf
7 @echo "[CONCAT] $@"
8 @pdfunite $^ $@
49
510 core-playbooks.pdf: $(CORE_PLAYBOOKS)
6 pdfunite $^ $@
11 @echo "[CONCAT] $@"
12 @pdfunite $^ $@
713
814 inverse-playbooks.pdf: $(INVERSE_PLAYBOOKS)
9 pdfunite $^ $@
15 @echo "[CONCAT] $@"
16 @pdfunite $^ $@
1017
1118 extended-playbooks.pdf: $(EXTENDED_PLAYBOOKS)
12 pdfunite $^ $@
19 @echo "[CONCAT] $@"
20 @pdfunite $^ $@
1321
14 chalcedony.pdf: travelrules.pdf core-playbooks.pdf inverse-playbooks.pdf extended-playbooks.pdf
15 pdfunite $^ $@
22 custom-playbooks.pdf: $(CUSTOM_PLAYBOOKS)
23 @echo "[CONCAT] $@"
24 @pdfunite $^ $@
1625
1726 %.pdf: %.tex assets/prelude.tex
1827 $(eval TMPDIR := $(shell mktemp -d))
19 xelatex -halt-on-error -interaction=batchmode -output-directory=$(TMPDIR) $<
20 mv $(TMPDIR)/$@ $@
21 rm -rf $(TMPDIR)
28 @echo "[PDF] $@"
29 @xelatex -halt-on-error -interaction=batchmode -output-directory=$(TMPDIR) $< 2>&1 >/dev/null
30 @mv $(TMPDIR)/$@ $@
31 @rm -rf $(TMPDIR)
2232
2333 clean:
2434 rm -f *.pdf