2
0

Makefile 465 B

123456789101112131415161718
  1. MD_FILES = $(shell find -name "*.md")
  2. HTML_FILES = $(MD_FILES:.md=.html)
  3. TEMPLATE_OPT = --template template.html --css template.css
  4. all: $(HTML_FILES)
  5. before.html: before.md
  6. pandoc $(TEMPLATE_OPT) -o $@ $<
  7. %.html: %.md before.html
  8. pandoc $(TEMPLATE_OPT) --toc --toc-depth 2 --include-before before.html -o $@ $<
  9. publish:
  10. scp $(HTML_FILES) *.svg *.png template.* yangra.univ-littoral.fr:public-html/enseignements/tutoriel_git/
  11. clean:
  12. rm -f $(HTML_FILES)