diff --git a/makefile b/makefile
index 4286210fbd0e900e3e759e2da3c850ff516a3c29..8d2484642077a31bd3892a6faa825889273b58c5 100644
--- a/makefile
+++ b/makefile
@@ -33,6 +33,12 @@ doc:
 memcheck: $(TARGET)
 	valgrind --leak-check=full ./$(TARGET) plain.txt
 
+# Run vector2tex.sh and generate PDF
+vector2tex: $(TARGET)
+	./$(TARGET) > whatever.vector
+	chmod +x vector2tex.sh
+	./vector2tex.sh < whatever.vector > whatever.tex
+	pdflatex whatever.tex
 
 # Clean generated files
 clean: