diff --git a/slides/Makefile b/slides/Makefile
index 90e1b51e293a06f9a1352947bccee22193157d82..ff1cfdff7ee770f41aa68a67719d1d8dce417227 100644
--- a/slides/Makefile
+++ b/slides/Makefile
@@ -44,7 +44,13 @@ yq: # On peut même télécharger un petit programme avec notre makefile
 	wget -nc https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64
 	chmod "u+x" yq_linux_amd64 
 
-deploy: all 
+index.md:
+	./gen_index.sh
+
+index.html: index.md
+	pandoc -s $(OPTIONS) -o $@ $^
+
+deploy: all index.html
 	mkdir -p prog_seq_c_cours
 	cp *.pdf prog_seq_c_cours
 	cp *.html prog_seq_c_cours