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) ...@@ -12,7 +12,8 @@ cmd%xelatex = $(XELATEX) $(LATEX_FLAGS)
cmd%lualatex = $(LUALATEX) $(LATEX_FLAGS) cmd%lualatex = $(LUALATEX) $(LATEX_FLAGS)
engines = pdflatex xelatex lualatex engines = pdflatex xelatex lualatex
targets = minimal minimal_handout tutorial many-pages targets = minimal minimal_handout tutorial $(other)
other := $(patsubst %.tex,%,$(wildcard *.tex))
%/minimal: src %/minimal: src
@mkdir -p $(@D) @mkdir -p $(@D)
...@@ -26,9 +27,12 @@ targets = minimal minimal_handout tutorial many-pages ...@@ -26,9 +27,12 @@ targets = minimal minimal_handout tutorial many-pages
@mkdir -p $(@D) @mkdir -p $(@D)
cd $(@D) && $(cmd%$*) ../../tutorial/tutorial.tex cd $(@D) && $(cmd%$*) ../../tutorial/tutorial.tex
%/many-pages: src define other-target
@mkdir -p $(@D) %/$1: src
cd $(@D) && $(cmd%$*) ../many-pages.tex @mkdir -p $$(@D)
cd $$(@D) && $$(cmd%$$*) ../$1.tex
endef
$(foreach o,$(other),$(eval $(call other-target,$o)))
all: $(engines) 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