diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-12-08 17:06:27 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-12-08 17:06:27 +0100 |
| commit | 011c470329c1681b9c151635367390bfc122fc48 (patch) | |
| tree | c6ec35fd3980fc527e98380f44726524b3284204 /latex | |
| parent | 978c4d78f2d295e8333d2aaf1853fc2818ce2dc0 (diff) | |
| download | muhqs-game-011c470329c1681b9c151635367390bfc122fc48.tar.gz muhqs-game-011c470329c1681b9c151635367390bfc122fc48.zip | |
[latex/build] fix broken build when a deck has the same name as a set
Diffstat (limited to 'latex')
| -rw-r--r-- | latex/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/latex/Makefile b/latex/Makefile index 708b9f38..d1987b30 100644 --- a/latex/Makefile +++ b/latex/Makefile @@ -113,27 +113,29 @@ endef $(foreach texdir, $(SETS_TEXDIRS), $(eval $(call generateCardTexRules, $(texdir)))) define generatePdfRules -$(1)/%.pdf: %.tex $(COMMON_TEX_FILES) $(MAKEFILE_LIST) +$(1)/%.pdf: $(2)%.tex $(COMMON_TEX_FILES) $(MAKEFILE_LIST) @echo building $$@ @if test \( ! \( -d $$(@D) \) \) ;then mkdir -p $$(@D);fi $(VERBOSE) $(PDFLATEX_ENV) $(PDFLATEX) --output-directory $$(@D) $$< endef # Generate cards pdf rules -$(foreach pdfdir, $(SETS_BUILDDIRS), $(eval $(call generatePdfRules, $(pdfdir)))) +$(foreach pdfdir, $(SETS_BUILDDIRS), $(eval $(call generatePdfRules, $(pdfdir),))) +# Misc cards not in a set +$(eval $(call generatePdfRules, $(BUILDDIR),)) # Generate sets pdf rule -$(eval $(call generatePdfRules, $(SETS_PDF_DIR))) +$(eval $(call generatePdfRules, $(SETS_PDF_DIR), $(SETS_TEX_DIR)/)) # Generate decks pdf rule -$(eval $(call generatePdfRules, $(DECKS_PDF_DIR))) +$(eval $(call generatePdfRules, $(DECKS_PDF_DIR), $(DECKS_TEX_DIR)/)) .PHONY: all de en all: de en de: - $(MAKE) LANGUAGE=de cards-all sets + $(MAKE) LANGUAGE=de cards-all sets decks en: - $(MAKE) cards-all sets + $(MAKE) cards-all sets decks .PHONY: sets sets-tex sets-pdf sets: sets-tex sets-pdf |
