|
@@ -2,16 +2,18 @@ MD_FILES = $(shell find -name "*.md")
|
|
|
HTML_FILES = $(MD_FILES:.md=.html)
|
|
|
|
|
|
all: $(HTML_FILES)
|
|
|
+ mkdir -p tmp
|
|
|
+ cp $(HTML_FILES) ./templates/template.css images/*.png images/*.svg ./tmp/
|
|
|
|
|
|
before.html: before.md
|
|
|
pandoc --css template.css -o $@ $<
|
|
|
|
|
|
%.html: %.md before.html
|
|
|
- pandoc --template template.html --css template.css --toc --toc-depth 2 --include-before before.html -o $@ $<
|
|
|
+ pandoc --template templates/template.html --css template.css --toc --toc-depth 2 --include-before before.html -o $@ $<
|
|
|
|
|
|
publish:
|
|
|
- scp $(HTML_FILES) *.svg *.png template.* yangra.univ-littoral.fr:public-html/enseignements/tutoriel_git/
|
|
|
+ scp ./tmp/* yangra.univ-littoral.fr:public-html/enseignements/tutoriel_git/
|
|
|
|
|
|
clean:
|
|
|
- rm -f $(HTML_FILES)
|
|
|
+ rm -rf $(HTML_FILES) ./tmp
|
|
|
|