Skip to content
Snippets Groups Projects
Commit f7cce04f authored by orestis.malaspin's avatar orestis.malaspin
Browse files

updated makefile

parent 84eaf957
Branches
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment