Parcourir la source

modif makefile

Julien Dehos il y a 8 ans
Parent
commit
5589108178
5 fichiers modifiés avec 64 ajouts et 36 suppressions
  1. 11 0
      CM1/Makefile
  2. 18 0
      CM2/Makefile
  3. 10 0
      CM3/Makefile
  4. 10 36
      Makefile
  5. 15 0
      www/Makefile

+ 11 - 0
CM1/Makefile

@@ -0,0 +1,11 @@
+all: ../tmp/CM1.html ../tmp/CM1_slides.html 
+	cp *.png ../tmp
+
+../tmp/CM1.html: CM1.md 
+	pandoc --template ../www/template.html --css template.css --toc --toc-depth 1 --include-before ../tmp/before.html -s -o $@ $<
+
+../tmp/CM1_slides.html: CM1.md 
+	pandoc --css slidy.css --template ../www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
+
+clean:
+

+ 18 - 0
CM2/Makefile

@@ -0,0 +1,18 @@
+DOT_FILES = $(shell find . -name "*.dot")
+SVG_FILES = $(DOT_FILES:.dot=.svg)
+
+all: $(SVG_FILES) ../tmp/CM2.html ../tmp/CM2_slides.html 
+	cp *.png ../tmp
+
+%.svg: %.dot
+	dot -Tsvg -o $@ $<
+
+../tmp/CM2.html: 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.md ../tmp/before.html 
+	pandoc --css slidy.css --template ../www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
+
+clean:
+	rm -rf $(SVG_FILES)
+

+ 10 - 0
CM3/Makefile

@@ -0,0 +1,10 @@
+all: ../tmp/CM3.html ../tmp/CM3_slides.html
+
+../tmp/CM3.html: CM3.md 
+	pandoc --template ../www/template.html --css template.css --toc --toc-depth 1 --include-before ../tmp/before.html -s -o $@ $<
+
+../tmp/CM3_slides.html: CM3.md 
+	pandoc --css slidy.css --template ../www/template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
+
+clean:
+

+ 10 - 36
Makefile

@@ -1,44 +1,18 @@
-DOT_FILES = $(shell find . -name "*.dot")
-SVG_FILES = $(DOT_FILES:.dot=.svg)
+.PHONY: all
 
-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
 

+ 15 - 0
www/Makefile

@@ -0,0 +1,15 @@
+all: ../tmp/before.html ../tmp/index.html ../tmp/index_slides.html 
+
+../tmp/before.html: before.md
+	mkdir -p ../tmp
+	pandoc -o $@ $<
+	cp template.css slidy.css slidy.js ../tmp
+
+../tmp/index.html: index.md 
+	pandoc --template template.html --css template.css --toc --toc-depth 1 --include-before ../tmp/before.html -s -o $@ $<
+
+../tmp/index_slides.html: index.md 
+	pandoc --css slidy.css --template template_slidy.html --toc --toc-depth 1 -t slidy -s -o $@ $<
+
+clean:
+