From 0b22d3c18b824254487a821e10426eb7b76ba43e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Star=C3=BD=20Novotn=C3=BD?= <witiko@mail.muni.cz>
Date: Wed, 6 Mar 2024 13:18:56 +0100
Subject: [PATCH] Use LaTeXMk to compile examples and check no warnings were
 produced

---
 example/mu/Makefile | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/example/mu/Makefile b/example/mu/Makefile
index f64a72d..4e78e98 100644
--- a/example/mu/Makefile
+++ b/example/mu/Makefile
@@ -24,21 +24,11 @@ all: $(OUTPUT) clean
 
 # This target typesets a pdfLaTeX example.
 %-pdflatex.pdf: %-pdflatex.tex example.bib example-terms-abbrs.tex
-	$(PDFLATEX) $< # The initial typesetting.
-	biber                               $(basename $<).bcf
-	$(PDFLATEX) $< # Update the index after the bibliography insertion.
-	texindy -I latex -C utf8 -L english $(basename $<).idx
-	$(PDFLATEX) $< # The final typesetting, now also with index.
-	$(PDFLATEX) $<
+	latexmk -pdf -Werror $<
 
 # This target typesets a LuaLaTeX example.
 %-lualatex.pdf: %-lualatex.tex example.bib example-terms-abbrs.tex
-	$(LUALATEX) $< # The initial typesetting.
-	biber                               $(basename $<).bcf
-	$(LUALATEX) $< # Update the index after the bibliography insertion.
-	texindy -I latex -C utf8 -L english $(basename $<).idx
-	$(LUALATEX) $< # The final typesetting, now also with index.
-	$(LUALATEX) $<
+	latexmk -lualatex -Werror $<
 
 # This target removes any auxiliary files.
 clean:
-- 
GitLab