From 0c5d445808f016622c08988639c3c022381bf14d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 24 Mar 2015 18:56:10 +0100 Subject: Generalize dependencies of final targets, and include Makefile itself. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') 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: -- cgit v1.2.3