aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-10-16 12:08:15 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-10-18 14:32:19 +0200
commit0bf44eb5b9c8a6c5b7d12ceb11f5b425b5140877 (patch)
tree3beb5abb743a9fb8b15cd5ad3c35f0aaa2fea6f1
parent972b51db8faca37df4fed24e4218e05a7f6af092 (diff)
downloadmuhqs-game-0bf44eb5b9c8a6c5b7d12ceb11f5b425b5140877.tar.gz
muhqs-game-0bf44eb5b9c8a6c5b7d12ceb11f5b425b5140877.zip
add build/cards.pdf which is a concatenation of all generated pdfs
-rw-r--r--latex/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/latex/Makefile b/latex/Makefile
index e62dc127..6942b6e6 100644
--- a/latex/Makefile
+++ b/latex/Makefile
@@ -4,6 +4,7 @@
PDFLATEX = lualatex
PDFTOPPM = pdftoppm
+PDFUNITE = pdfunite
PDFTOPPM_FLAGS = -singlefile -png -r 300
@@ -37,6 +38,11 @@ $(PDF_DIR)/print.pdf: print.tex $(CARD_SOURCES) $(COMMON_TEX_FILES) $(MAKEFILE_L
@if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
$(VERBOSE) $(PDFLATEX_ENV) $(PDFLATEX) --output-directory $(PDF_DIR) $^
+$(PDF_DIR)/cards.pdf: $(PDFS_PREFIXED) $(MAKEFILE_LIST)
+ @echo "building › › $@"
+ @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
+ $(VERBOSE) $(PDFUNITE) $(PDFS_PREFIXED) $@
+
$(PDF_DIR)/%.pdf : $(CARDS_DIR)/%.tex $(COMMON_TEX_FILES) $(MAKEFILE_LIST)
@echo "card › $@"
@if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi