Browse Source

Move playbooks to relevant subdirectories

Getty Ritter 3 years ago
parent
commit
3e50f1259c

+ 6 - 6
Makefile

@@ -1,7 +1,7 @@
-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
+CORE_PLAYBOOKS := base/bard.pdf base/cleric.pdf base/druid.pdf base/fighter.pdf base/paladin.pdf base/ranger.pdf base/thief.pdf base/wizard.pdf
+INVERSE_PLAYBOOKS := inverse/collector.pdf inverse/golem.pdf inverse/lanternbearer.pdf inverse/survivor.pdf
+EXTENDED_PLAYBOOKS := extended/priest.pdf extended/artificer.pdf extended/witch.pdf extended/mage.pdf
+CUSTOM_PLAYBOOKS := custom/farmer.pdf custom/merchant.pdf
 
 chalcedony.pdf: travelrules.pdf core-playbooks.pdf inverse-playbooks.pdf extended-playbooks.pdf
 	@echo "\033[0;95m[PDFUNITE]\033[0m $@"
@@ -27,8 +27,8 @@ custom-playbooks.pdf: $(CUSTOM_PLAYBOOKS)
 	$(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)/$@ $@
+	@mv $(TMPDIR)/`basename $@` $@
 	@rm -rf $(TMPDIR)
 
 clean:
-	rm -f *.pdf
+	rm -f *.pdf */*.pdf

bard.tex → base/bard.tex


cleric.tex → base/cleric.tex


druid.tex → base/druid.tex


fighter.tex → base/fighter.tex


paladin.tex → base/paladin.tex


ranger.tex → base/ranger.tex


thief.tex → base/thief.tex


wizard.tex → base/wizard.tex


farmer.tex → custom/farmer.tex


merchant.tex → custom/merchant.tex


artificer.tex → extended/artificer.tex


mage.tex → extended/mage.tex


priest.tex → extended/priest.tex


witch.tex → extended/witch.tex


collector.tex → inverse/collector.tex


golem.tex → inverse/golem.tex


lanternbearer.tex → inverse/lanternbearer.tex


survivor.tex → inverse/survivor.tex