|
@@ -1,44 +1,18 @@
|
|
|
-DOT_FILES = $(shell find . -name "*.dot")
|
|
|
-SVG_FILES = $(DOT_FILES:.dot=.svg)
|
|
|
+.PHONY: all publish clean
|
|
|
|
|
|
-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
|
|
|
- cp www/template.css www/slidy.css www/slidy.js tmp
|
|
|
- cp CM?/*.png CM?/*.svg tmp
|
|
|
-
|
|
|
-%.svg: %.dot
|
|
|
- dot -Tsvg -o $@ $<
|
|
|
-
|
|
|
-tmp/before.html: www/before.md
|
|
|
- mkdir -p tmp
|
|
|
- pandoc -o $@ $<
|
|
|
-
|
|
|
-tmp/index.html: www/index.md tmp/before.html
|
|
|
- pandoc --template www/template.html --css template.css --toc --toc-depth 1 --include-before tmp/before.html -s -o $@ $<
|
|
|
-
|
|
|
-tmp/index_slides.html: www/index.md tmp/before.html
|
|
|
- pandoc --css slidy.css --template www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
|
|
|
-
|
|
|
-tmp/CM1.html: CM1/CM1.md tmp/before.html
|
|
|
- pandoc --template www/template.html --css template.css --toc --toc-depth 1 --include-before tmp/before.html -s -o $@ $<
|
|
|
-
|
|
|
-tmp/CM1_slides.html: CM1/CM1.md tmp/before.html
|
|
|
- pandoc --css slidy.css --template www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
|
|
|
-
|
|
|
-tmp/CM2.html: CM2/CM2.md tmp/before.html
|
|
|
- pandoc --template www/template.html --css template.css --toc --toc-depth 1 --include-before tmp/before.html -s -o $@ $<
|
|
|
-
|
|
|
-tmp/CM2_slides.html: CM2/CM2.md tmp/before.html
|
|
|
- pandoc --css slidy.css --template www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
|
|
|
-
|
|
|
-tmp/CM3.html: CM3/CM3.md tmp/before.html
|
|
|
- pandoc --template www/template.html --css template.css --toc --toc-depth 1 --include-before tmp/before.html -s -o $@ $<
|
|
|
-
|
|
|
-tmp/CM3_slides.html: CM3/CM3.md tmp/before.html
|
|
|
- pandoc --css slidy.css --template www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
|
|
|
+all:
|
|
|
+ $(MAKE) -C www
|
|
|
+ $(MAKE) -C CM1
|
|
|
+ $(MAKE) -C CM2
|
|
|
+ $(MAKE) -C CM3
|
|
|
|
|
|
publish:
|
|
|
scp tmp/* yangra.univ-littoral.fr:public-html/enseignements/L3Info_Projets/
|
|
|
|
|
|
clean:
|
|
|
rm -rf tmp
|
|
|
+ $(MAKE) -C www clean
|
|
|
+ $(MAKE) -C CM1 clean
|
|
|
+ $(MAKE) -C CM2 clean
|
|
|
+ $(MAKE) -C CM3 clean
|
|
|
|