Parcourir la source

Merge remote-tracking branch 'origin/master'

Eric Ramat il y a 8 ans
Parent
commit
ebe455a317
6 fichiers modifiés avec 73 ajouts et 37 suppressions
  1. 13 0
      CM1/Makefile
  2. 1 1
      CM2/CM2.md
  3. 20 0
      CM2/Makefile
  4. 12 0
      CM3/Makefile
  5. 10 36
      Makefile
  6. 17 0
      www/Makefile

+ 13 - 0
CM1/Makefile

@@ -0,0 +1,13 @@
+.PHONY: all clean
+
+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:
+

+ 1 - 1
CM2/CM2.md

@@ -77,7 +77,7 @@ fonctionnalité : afficher le stock
 ## Tests unitaires
 
 - souvent : test « avec un printf » $\rightarrow$ pas bien
-    - principe des tests unitaires :
+- principe des tests unitaires :
     - écrire des petites fonctions de test en même temps que le code
     - compiler toutes les fonctions de test dans un programme de test
     - exécuter le programme de test

+ 20 - 0
CM2/Makefile

@@ -0,0 +1,20 @@
+.PHONY: all clean
+
+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)
+

+ 12 - 0
CM3/Makefile

@@ -0,0 +1,12 @@
+.PHONY: all clean
+
+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 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
 

+ 17 - 0
www/Makefile

@@ -0,0 +1,17 @@
+.PHONY: all clean
+
+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:
+