gdritter repos chalcedony-playbooks / master Makefile
master

Tree @master (Download .tar.gz)

Makefile @master

3e50f12
 
 
9540c38
3e50f12
93b2732
9540c38
 
 
 
 
 
 
f0e559d
93b2732
848dd1f
9540c38
 
f0e559d
93b2732
848dd1f
9540c38
 
f0e559d
93b2732
848dd1f
9540c38
 
f0e559d
93b2732
848dd1f
9540c38
 
f0e559d
93b2732
848dd1f
 
 
f0e559d
 
3e50f12
93b2732
848dd1f
 
3e50f12
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
JOHANSEN_PLAYBOOKS := johansen/archaeologist.pdf johansen/spy.pdf
CUSTOM_PLAYBOOKS := custom/farmer.pdf custom/merchant.pdf

build/chalcedony.pdf: travelrules.pdf build/core-playbooks.pdf build/inverse-playbooks.pdf build/johansen-playbooks.pdf build/extended-playbooks.pdf
	@mkdir -p build
	@echo "\033[0;95m[PDFUNITE]\033[0m $@"
	@pdfunite travelrules.pdf travelrules.pdf travelrules.pdf $^ $@

build/core-playbooks.pdf: $(CORE_PLAYBOOKS)
	@mkdir -p build
	@echo "\033[0;95m[PDFUNITE]\033[0m $@"
	@pdfunite $^ $@

build/inverse-playbooks.pdf: $(INVERSE_PLAYBOOKS)
	@mkdir -p build
	@echo "\033[0;95m[PDFUNITE]\033[0m $@"
	@pdfunite $^ $@

build/extended-playbooks.pdf: $(EXTENDED_PLAYBOOKS)
	@mkdir -p build
	@echo "\033[0;95m[PDFUNITE]\033[0m $@"
	@pdfunite $^ $@

build/johansen-playbooks.pdf: $(JOHANSEN_PLAYBOOKS)
	@mkdir -p build
	@echo "\033[0;95m[PDFUNITE]\033[0m $@"
	@pdfunite $^ $@

build/custom-playbooks.pdf: $(CUSTOM_PLAYBOOKS)
	@mkdir -p build
	@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)/`basename $@` $@
	@rm -rf $(TMPDIR)

clean:
	rm -f *.pdf */*.pdf