diff --git a/Makefile b/Makefile
index 25f94d699ae3864a7fe4b619408f6b490925448c..a3f5e28387daf506142644dffbfb4ddb86992a24 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ notebook_py_libs: $(addprefix $(GENERATED_PYLIBS_DIR)/, $(addsuffix .py, $(NOTEB
 
 define RUST_TO_TEX_RULE
 $(1).rs.tex.git-untrack: $(1).rs
-	chromacode -r -f -i $^ -o $@
+	chromacode -r -f -i $(1).rs -o $(1).rs.tex.git-untrack
 endef
 
 RUSTSNIPPETSBASE=tilt.rs/src/tilt_stability/considered_b_for_beta.git-untrack tilt.rs/src/tilt_stability/find_all.git-untrack