From f7cce04fd3823928781f30e8c5d497acfafde470 Mon Sep 17 00:00:00 2001
From: Orestis Malaspinas <orestis.malaspinas@hesge.ch>
Date: Tue, 3 Nov 2020 10:47:55 +0100
Subject: [PATCH] updated makefile

---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 368a88d..1f6357d 100644
--- a/Makefile
+++ b/Makefile
@@ -30,15 +30,15 @@ hakyll_gen: Analyse_Dimensionnelle.markdown Lois_de_Newton.markdown Charge_Elect
 
 Analyse_Dimensionnelle.markdown: 00_macros.md 01_analyse_dimensionnelle.md 10_footer.md
 	cat $^ > $@
-	sed -i "1i ---\ndate: $(shell git log --follow -p -1 --format=%cd --date=format:'%Y-%m-%d' -- 01_rappel.md | head -n 1)\nmathjax: on\n---" $@
+	sed -i "1i ---\ndate: $(shell git log --follow -p -1 --format=%cd --date=format:'%Y-%m-%d' -- 01_analyse_dimensionnelle.md | head -n 1)\nmathjax: on\n---" $@
 
 Lois_de_Newton.markdown: 00_macros.md 02_lois_de_newton.md 10_footer.md
 	cat $^ > $@
-	sed -i "1i ---\ndate: $(shell git log --follow -p -1 --format=%cd --date=format:'%Y-%m-%d' -- 01_rappel.md | head -n 1)\nmathjax: on\n---" $@
+	sed -i "1i ---\ndate: $(shell git log --follow -p -1 --format=%cd --date=format:'%Y-%m-%d' -- 02_lois_de_newton.md | head -n 1)\nmathjax: on\n---" $@
 
 Charge_Electrique_Champs_Electrique.markdown: 00_macros.md 03_charge_electrique_champs_electrique.md 10_footer.md
 	cat $^ > $@
-	sed -i "1i ---\ndate: $(shell git log --follow -p -1 --format=%cd --date=format:'%Y-%m-%d' -- 01_rappel.md | head -n 1)\nmathjax: on\n---" $@
+	sed -i "1i ---\ndate: $(shell git log --follow -p -1 --format=%cd --date=format:'%Y-%m-%d' -- 03_charge_electrique_champs_electrique.md | head -n 1)\nmathjax: on\n---" $@
 
 deploy: all
 	mkdir -p phys
@@ -46,4 +46,4 @@ deploy: all
 	cp cours.pdf phys/cours.pdf
 
 clean:
-	rm -f *.html *.pdf
+	rm -f *.html *.pdf *.markdown
-- 
GitLab