aboutsummaryrefslogtreecommitdiff
path: root/latex
diff options
context:
space:
mode:
Diffstat (limited to 'latex')
-rw-r--r--latex/Makefile7
-rw-r--r--latex/cards/relic.tex1
2 files changed, 5 insertions, 3 deletions
diff --git a/latex/Makefile b/latex/Makefile
index 7552b32e..2dba3efa 100644
--- a/latex/Makefile
+++ b/latex/Makefile
@@ -23,17 +23,20 @@ CARD_PNGS_PREFIXED = $(addprefix $(PDF_DIR)/,$(CARD_PNGS))
MAKEFILE_LIST = Makefile
+ASSETS_PATH = ./assets
+PDFLATEX_ENV := TEXINPUTS=".:$(ASSETS_PATH):"
+
all: $(PDF_DIR)/cards.pdf $(CARD_PDFS_PREFIXED) $(CARD_PNGS_PREFIXED)
$(PDF_DIR)/cards.pdf: cards.tex $(CARD_SOURCES) $(COMMON_TEX_FILES) $(MAKEFILE_LIST)
@echo "building › › $@"
@if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
- $(VERBOSE) $(PDFLATEX) --output-directory $(PDF_DIR) $^
+ $(VERBOSE) $(PDFLATEX_ENV) $(PDFLATEX) --output-directory $(PDF_DIR) $^
$(PDF_DIR)/%.pdf : $(CARDS_DIR)/%.tex $(COMMON_TEX_FILES) $(MAKEFILE_LIST)
@echo "card › $@"
@if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
- $(VERBOSE) $(PDFLATEX) --output-directory $(PDF_DIR) $(CARDS_DIR)/$*.tex
+ $(VERBOSE) $(PDFLATEX_ENV) $(PDFLATEX) --output-directory $(PDF_DIR) $(CARDS_DIR)/$*.tex
$(PDF_DIR)/%.png : $(PDF_DIR)/%.pdf $(MAKEFILE_LIST)
@echo "png › $@"
diff --git a/latex/cards/relic.tex b/latex/cards/relic.tex
index b42bd32f..6b8e99c2 100644
--- a/latex/cards/relic.tex
+++ b/latex/cards/relic.tex
@@ -14,7 +14,6 @@
\cardbuycost{3}
\cardcontent{In your upkeep the player controlling the most units in range 1 gains 1 resource. On ties all tied players gain 1 resource.}
\cardplaycost{7}
-
\cardborder
\end{tikzpicture}
\end{document}