MD_FILES = $(shell find -name "*.md") HTML_FILES = $(MD_FILES:.md=.html) TEMPLATE_OPT = --template template.html --css template.css all: $(HTML_FILES) before.html: before.md pandoc $(TEMPLATE_OPT) -o $@ $< %.html: %.md before.html pandoc $(TEMPLATE_OPT) --toc --toc-depth 2 --include-before before.html -o $@ $< publish: scp $(HTML_FILES) *.svg *.png yangra.univ-littoral.fr:public-html/enseignements/tutoriel_git/ clean: rm -f $(HTML_FILES)