Browse Source

Ehh, switch over to a makefile, I GUESS

Getty Ritter 5 years ago
parent
commit
848dd1f644
1 changed files with 24 additions and 0 deletions
  1. 24 0
      Makefile

+ 24 - 0
Makefile

@@ -0,0 +1,24 @@
+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
+
+core-playbooks.pdf: $(CORE_PLAYBOOKS)
+	pdfunite $^ $@
+
+inverse-playbooks.pdf: $(INVERSE_PLAYBOOKS)
+	pdfunite $^ $@
+
+extended-playbooks.pdf: $(EXTENDED_PLAYBOOKS)
+	pdfunite $^ $@
+
+chalcedony.pdf: travelrules.pdf core-playbooks.pdf inverse-playbooks.pdf extended-playbooks.pdf
+	pdfunite $^ $@
+
+%.pdf: %.tex assets/prelude.tex
+	$(eval TMPDIR := $(shell mktemp -d))
+	xelatex -halt-on-error -interaction=batchmode -output-directory=$(TMPDIR) $<
+	mv $(TMPDIR)/$@ $@
+	rm -rf $(TMPDIR)
+
+clean:
+	rm -f *.pdf