diff options
Diffstat (limited to 'latex/Makefile')
| -rw-r--r-- | latex/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/latex/Makefile b/latex/Makefile index 78e8b107..901c65c5 100644 --- a/latex/Makefile +++ b/latex/Makefile @@ -75,7 +75,8 @@ $(SETS_TEX_DIR)/$(1).tex: $(wildcard $(CARDS_TEX_DIR)/$(1)/*.tex) $(MAKEFILE_LIS $(VERBOSE) echo "\begin{center}" >> $$@ $(VERBOSE) echo "\pagestyle{empty}" >> $$@ $(VERBOSE)for card in $(wildcard $(CARDS_TEX_DIR)/$(1)/*.tex); do \ - echo "\includestandalone{$$$${card%.tex}}" >> $$@; done + rel_card=$$$${card#"$(LATEX_ROOT)/"}; \ + echo "\includestandalone{$$$${rel_card%.tex}}" >> $$@; done $(VERBOSE) echo "\end{center}" >> $$@ $(VERBOSE) echo "\end{document}" >> $$@ endef @@ -137,10 +138,16 @@ $(BUILDDIR)/cards.pdf: $(CARDS_PDF) $(MAKEFILE_LIST) @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi $(VERBOSE)$(PDFTOPPM) $(PDFTOPPM_FLAGS) $< $* -.PHONY: clean clean-all +.PHONY: clean-build clean-tex clean-both tabula-rasa -clean: +clean-build: rm -rf $(BUILDDIR) -clean-all: clean +clean-tex: rm -rf $(CARDS_TEX_DIR) + +clean-both: clean-build clean-tex + +tabula-rasa: + $(MAKE) LANGUAGE=en clean-both + $(MAKE) LANGUAGE=de clean-both |
