From 44797f7be06e047c2ecd56189c5bb11e7edf854f Mon Sep 17 00:00:00 2001 From: Holger Dengler Date: Thu, 18 Jan 2018 18:02:30 +0100 Subject: build: replace build command Building latex files may require to re-run the build command more than once. The make target rules are normally called once. Make also does not check the dependencies, which are caused by tex statements (like \input{} or \includegraphics{}). Both problems are solved by latexmk. This wrapper scans all dependencies in the .tex file and calls the latex-command until all depending steps are resolved. The call of the build-command is forced in make, because the checking, if a tex-file requires a rebuild is done by latexmk. Signed-off-by: Holger Dengler --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 08c9992..6cfaed7 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,7 @@ HANDOUT_FOLDER := handouts HANDOUT :=$(DEPLOY)/$(HANDOUT_FOLDER) CONFIG_FOLDER := configs -BUILD_COMMAND := xelatex -BUILD_COMMAND_BIB := bibtex +BUILD_COMMAND := latexmk -xelatex -bibtex -pdf BUILD_DEBUG := -halt-on-error --interaction=errorstopmode BUILD_ARGS := BUILD := $(BUILD_COMMAND) $(BUILD_DEBUG) $(BUILD_ARGS) -- cgit v1.2.3