Makefile 436 B

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