From 033e46098bcbc9c1d6c6bdbe885a47626fe4e643 Mon Sep 17 00:00:00 2001
From: Luke Naylor <l.naylor@sms.ed.ac.uk>
Date: Wed, 21 Feb 2024 23:07:39 +0000
Subject: [PATCH] Try making sure notebook tex is build

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 0c807e5..3e31a5c 100644
--- a/Makefile
+++ b/Makefile
@@ -9,14 +9,14 @@ BIBFILES = $(addsuffix /references.bib, ${CHAPTERDIRS})
 
 SAGESCRIPT = main.sagetex.sage
 
-main.pdf: ${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} main.sagetex.sout.tmp tilt.rs
+main.pdf: ${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} main.sagetex.sout.tmp tilt.rs notebook_tex
 	latexmk || echo this fails but seems to produce pdf correctly
 
 main.sagetex.sout.tmp: ${SAGESCRIPT} chapter_py_libs
 	PYTHONPATH=`echo $(CHAPTERDIRS) | sed 's/ \+/:/g'` sage ${SAGESCRIPT}
 
 ${SAGESCRIPT}: ${TEXFILES}
-	latexmk || echo this is meant to fail
+	latexmk \$max_repeat=<1> || echo this is meant to fail
 	# seems to be a bug with sagetex, only works if patched:
 	sed -i -e 's;version_check=)$$;version_check=True);' $@
 
-- 
GitLab