From 0bf44eb5b9c8a6c5b7d12ceb11f5b425b5140877 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 16 Oct 2020 12:08:15 +0200 Subject: add build/cards.pdf which is a concatenation of all generated pdfs --- latex/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'latex') 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 -- cgit v1.2.3