From d2b9b360f4175e40444185bd530f25d4b81994a8 Mon Sep 17 00:00:00 2001
From: Orestis <orestis.malaspinas@pm.me>
Date: Tue, 20 Sep 2022 17:15:42 +0200
Subject: [PATCH] modified makefile

---
 slides/Makefile | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/slides/Makefile b/slides/Makefile
index 145d422..e2ebe71 100644
--- a/slides/Makefile
+++ b/slides/Makefile
@@ -37,9 +37,11 @@ puppeteer:
 	@echo "Setting chromium to $(CHROMIUM) for puppeteer"
 	@echo -e "{\n\"executablePath\":" \"$(CHROMIUM)\" ",\n\"args\": [\"--no-sandbox\"]\n}" > .puppeteer.json
 
-index:
-	rm -f index.md
-	./gen_index.sh
+index.md:
+	$(shell ./gen_index.sh)
+
+index.html: index.md
+	pandoc -s $(OPTIONS) -o $@ $^
 
 markdown: $(MARKDOWN) # La markdown les cibles %.markdown
 
@@ -61,11 +63,12 @@ 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 
+deploy: all index.html
 	mkdir -p algo_cours
 	cp *.pdf algo_cours
+	cp index.html algo_cours
 
 clean:
 	rm -f *.html *.pdf *.markdown yq_linux_amd64* index.md .puppeteer.json
 
-.PHONY:	clean index puppeteer yq
+.PHONY:	clean index.md puppeteer yq
-- 
GitLab