Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. DOT_FILES = $(shell find . -name "*.dot")
  2. SVG_FILES = $(DOT_FILES:.dot=.svg)
  3. all: $(SVG_FILES) tmp/index.html tmp/index_slides.html tmp/CM1.html tmp/CM1_slides.html tmp/CM2.html tmp/CM2_slides.html tmp/CM3.html tmp/CM3_slides.html
  4. cp www/template.css www/slidy.css www/slidy.js tmp
  5. cp CM?/*.png CM?/*.svg tmp
  6. %.svg: %.dot
  7. dot -Tsvg -o $@ $<
  8. tmp/before.html: www/before.md
  9. mkdir -p tmp
  10. pandoc -o $@ $<
  11. tmp/index.html: www/index.md tmp/before.html
  12. pandoc --template www/template.html --css template.css --toc --toc-depth 1 --include-before tmp/before.html -s -o $@ $<
  13. tmp/index_slides.html: www/index.md tmp/before.html
  14. pandoc --css slidy.css --template www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
  15. tmp/CM1.html: CM1/CM1.md tmp/before.html
  16. pandoc --template www/template.html --css template.css --toc --toc-depth 1 --include-before tmp/before.html -s -o $@ $<
  17. tmp/CM1_slides.html: CM1/CM1.md tmp/before.html
  18. pandoc --css slidy.css --template www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
  19. tmp/CM2.html: CM2/CM2.md tmp/before.html
  20. pandoc --template www/template.html --css template.css --toc --toc-depth 1 --include-before tmp/before.html -s -o $@ $<
  21. tmp/CM2_slides.html: CM2/CM2.md tmp/before.html
  22. pandoc --css slidy.css --template www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
  23. tmp/CM3.html: CM3/CM3.md tmp/before.html
  24. pandoc --template www/template.html --css template.css --toc --toc-depth 1 --include-before tmp/before.html -s -o $@ $<
  25. tmp/CM3_slides.html: CM3/CM3.md tmp/before.html
  26. pandoc --css slidy.css --template www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
  27. publish:
  28. scp tmp/* yangra.univ-littoral.fr:public-html/enseignements/L3Info_Projets/
  29. clean:
  30. rm -rf tmp