Commit 82f16921 authored by Andreas Beckmann's avatar Andreas Beckmann

build all .tex files found in tests for all engines

parent e9721ba3
......@@ -12,7 +12,8 @@ cmd%xelatex = $(XELATEX) $(LATEX_FLAGS)
cmd%lualatex = $(LUALATEX) $(LATEX_FLAGS)
engines = pdflatex xelatex lualatex
targets = minimal minimal_handout tutorial many-pages
targets = minimal minimal_handout tutorial $(other)
other := $(patsubst %.tex,%,$(wildcard *.tex))
%/minimal: src
@mkdir -p $(@D)
......@@ -26,9 +27,12 @@ targets = minimal minimal_handout tutorial many-pages
@mkdir -p $(@D)
cd $(@D) && $(cmd%$*) ../../tutorial/tutorial.tex
%/many-pages: src
@mkdir -p $(@D)
cd $(@D) && $(cmd%$*) ../many-pages.tex
define other-target
%/$1: src
@mkdir -p $$(@D)
cd $$(@D) && $$(cmd%$$*) ../$1.tex
endef
$(foreach o,$(other),$(eval $(call other-target,$o)))
all: $(engines)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment