diff --git a/Makefile b/Makefile
index c468217b5f1de9da2c06d89b7b5c3f51faabdf72..907486095a63d571115360a5242d2c17f175ce8a 100644
--- a/Makefile
+++ b/Makefile
@@ -5,10 +5,10 @@ MAINTEXFILE = main.tex
 TEXFILES = ${MAINTEXFILE}
 SAGETEXSCRIPT = main.sagetex.sage
 
-main.pdf: ${TEXFILES}  main.sagetex.sout.tmp filtered_sage.txt
+main.pdf: ${TEXFILES}  main.sagetex.sout filtered_sage.txt
 	latexmk
 
-main.sagetex.sout.tmp: ${SAGETEXSCRIPT} ${PYPLOTFILES}
+main.sagetex.sout: ${SAGETEXSCRIPT} ${PYPLOTFILES}
 	PYTHONPATH=./sagetexscripts/ sage ${SAGETEXSCRIPT}
 
 ${SAGETEXSCRIPT}: ${TEXFILES}