From 21adf082c5e9dce32f5f79f9d58696f579ba9656 Mon Sep 17 00:00:00 2001
From: Luke Naylor <l.naylor@sms.ed.ac.uk>
Date: Sun, 18 Feb 2024 21:53:05 +0000
Subject: [PATCH] Move symlink creation to Makefile

---
 .gitignore     | 1 +
 .gitlab-ci.yml | 1 -
 Makefile       | 5 ++++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index e4b9482..1821ce9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ sagetex.sty
 sage-plots-for-main.tex/
 dependency-newcommands.tex
 dependency-packages.tex
+tilt.rs
\ No newline at end of file
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b336d57..823ebdb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,7 +9,6 @@ build:
     - echo $SHELL
     - source /root/.bashrc
     - sage -pip install "pseudowalls==0.0.3" --extra-index-url https://gitlab.com/api/v4/projects/43962374/packages/pypi/simple
-    - ln -s max-destabilizer-rank/tilt.rs/ tilt.rs
     - make main.pdf || echo make failed
   artifacts:
     paths:
diff --git a/Makefile b/Makefile
index b6a8a4f..c0bcb0c 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ BIBFILES = $(addsuffix /references.bib, ${CHAPTERDIRS})
 
 SAGESCRIPT = main.sagetex.sage
 
-main.pdf: ${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} main.sagetex.sout.tmp
+main.pdf: ${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} main.sagetex.sout.tmp tilt.rs
 	latexmk || echo this fails but seems to produce pdf correctly
 
 main.sagetex.sout.tmp: ${SAGESCRIPT} chapter_py_libs
@@ -40,6 +40,9 @@ chapter_py_libs:
 		$(MAKE) -C $$dir notebook_py_libs; \
 	done
 
+tilt.rs:
+	ln -s max-destabilizer-rank/tilt.rs/ tilt.rs
+
 newcommands.tex:  dependency-newcommands.tex
 packages.tex: dependency-packages.tex
 
-- 
GitLab