summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-31 19:08:50 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-31 19:08:50 +0100
commitff858cc0f4de80fb84c7c65875d59eeff82bb070 (patch)
treecfa75e47c3598f7b29bd87a1d31c06e3422c0c2c /Makefile
parentf89b78b463c108eed766a9ea7d930043e0a457d8 (diff)
Tidy makefile: Use make stem for target flavour.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d7f1cf8..361f6de 100644
--- a/Makefile
+++ b/Makefile
@@ -52,8 +52,8 @@ $(stem).mediawiki: $(stem).raw
$(stem).native: $(stem).mediawiki $(localfilters)
$(env_filter) pandoc -f mediawiki $(args_meta) $(args_filter) -o $@ $<
-$(flavors:%=$(stem)-%.tex): $(stem).native $(templates)
- pandoc $(args_meta) $(args_latex) $(args_$(@:$(stem)-%.tex=%)) -o $@ $<
+$(flavors:%=$(stem)-%.tex): $(stem)-%.tex: $(stem).native $(templates)
+ pandoc $(args_meta) $(args_latex) $(args_$*) -o $@ $<
XELATEX = xelatex -no-shell-escape -halt-on-error -interaction=batchmode
%.pdf: %.tex