diff --git a/slides/Makefile b/slides/Makefile index 145d4228720d09d279d43eb8d7f659dc6101ba30..e2ebe71d46782bfb3507238d3bfdfcd1655281fa 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