summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-03-24 18:56:10 +0100
committerJonas Smedegaard <dr@jones.dk>2015-03-24 19:05:04 +0100
commit0c5d445808f016622c08988639c3c022381bf14d (patch)
tree56f9664941fc8dc70ec5c9a371617590fbea998a
parent8221c2ef374ce7a73ee61e7e9a56bafb57da3140 (diff)
Generalize dependencies of final targets, and include Makefile itself.
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 285e3ee..7286621 100644
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,9 @@ $(stem).native: $(stem).mw $(localfilters)
$(markdown_includes:.md=.tex): %.tex: %.md
pandoc -f markdown -t latex --chapters -o $@ $<
-$(flavors:%=$(stem)-%.pdf): $(stem)-%.pdf: $(stem).native $(templates) $(includes)
+$(flavors:%=deps-%):: $(templates) $(includes) Makefile
+
+$(flavors:%=$(stem)-%.pdf): $(stem)-%.pdf: $(stem).native $(deps-all) deps-%
pandoc --standalone --no-tex-ligatures $(args_meta) $(args_latex) $(args_$*) -o $@ $<
clean: