makefile quiet
Getty Ritter
6 years ago
1 | 1 | CORE_PLAYBOOKS := bard.pdf cleric.pdf druid.pdf fighter.pdf paladin.pdf ranger.pdf thief.pdf wizard.pdf |
2 | 2 | INVERSE_PLAYBOOKS := collector.pdf lanternbearer.pdf survivor.pdf |
3 | 3 | 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 $^ $@ | |
4 | 9 | |
5 | 10 | core-playbooks.pdf: $(CORE_PLAYBOOKS) |
6 |
|
|
11 | @echo "[CONCAT] $@" | |
12 | @pdfunite $^ $@ | |
7 | 13 | |
8 | 14 | inverse-playbooks.pdf: $(INVERSE_PLAYBOOKS) |
9 |
|
|
15 | @echo "[CONCAT] $@" | |
16 | @pdfunite $^ $@ | |
10 | 17 | |
11 | 18 | extended-playbooks.pdf: $(EXTENDED_PLAYBOOKS) |
12 |
|
|
19 | @echo "[CONCAT] $@" | |
20 | @pdfunite $^ $@ | |
13 | 21 | |
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 $^ $@ | |
16 | 25 | |
17 | 26 | %.pdf: %.tex assets/prelude.tex |
18 | 27 | $(eval TMPDIR := $(shell mktemp -d)) |
19 | xelatex -halt-on-error -interaction=batchmode -output-directory=$(TMPDIR) $< | |
20 | mv $(TMPDIR)/$@ $@ | |
21 |
|
|
28 | @echo "[PDF] $@" | |
29 | @xelatex -halt-on-error -interaction=batchmode -output-directory=$(TMPDIR) $< 2>&1 >/dev/null | |
30 | @mv $(TMPDIR)/$@ $@ | |
31 | @rm -rf $(TMPDIR) | |
22 | 32 | |
23 | 33 | clean: |
24 | 34 | rm -f *.pdf |