diff --git a/.gitignore b/.gitignore
index e4b9482b19e37b50e47ed160a01e96ec0128545b..1821ce97adde13f2240ece34c0b18b0a2605363c 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 b336d574c025d35cb75d4dff8fb43a0375686f52..823ebdb873754d086ac1af95f9b3214bd4ff24f0 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 b6a8a4fe68f95fef64d336dafa51851c42181261..c0bcb0cfe0f997a6e9e9cb5ec6d9e237d07c7fab 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