From 18b5224bcc4c48c282aa002beeb8ae445b73a995 Mon Sep 17 00:00:00 2001
From: Orestis Malaspinas <orestis.malaspinas@hesge.ch>
Date: Wed, 20 Jun 2018 00:28:49 +0200
Subject: [PATCH] amelioration makefile

---
 Makefile | 23 ++++++++++++++++-------
 types.md | 15 ++++++++++++---
 2 files changed, 28 insertions(+), 10 deletions(-)

diff --git a/Makefile b/Makefile
index 9a2da6f..4feed9e 100644
--- a/Makefile
+++ b/Makefile
@@ -35,20 +35,29 @@ REVEALOPRIONS += --self-contained
 
 SVG=$(wildcard figs/*.svg)
 PNG=$(SVG:%.svg=%.png)
+MD=$(wildcard *.md)
+HTML=$(MD:%.md=%.html)
 
-all: $(PNG) intro.html variables.html types.html
+
+all: $(PNG) $(HTML)
 
 figs/%.png: figs/%.svg
 	convert \-flatten $< $@
 
-intro.html: intro.md Makefile
+%.html: %.md Makefile
 	pandoc -s $(REVEALOPRIONS) -o $@ $<
 
-variables.html: variables.md Makefile
-	pandoc -s $(REVEALOPRIONS) -o $@ $<
+# intro.html: intro.md Makefile
+# 	pandoc -s $(REVEALOPRIONS) -o $@ $<
 
-types.html: types.md Makefile
-	pandoc -s $(REVEALOPRIONS) -o $@ $<
+# variables.html: variables.md Makefile
+# 	pandoc -s $(REVEALOPRIONS) -o $@ $<
+
+# types.html: types.md Makefile
+# 	pandoc -s $(REVEALOPRIONS) -o $@ $<
+
+# control.html: control.md Makefile
+# 	pandoc -s $(REVEALOPRIONS) -o $@ $<
 
 clean:
-	rm -rf intro.html variables.html types.html
+	rm -rf *.html
diff --git a/types.md b/types.md
index e46b33e..21d259c 100644
--- a/types.md
+++ b/types.md
@@ -48,7 +48,7 @@ sansfont: Sans Serif
 
 ## Les entiers (1/3)
 
-- Il existe 4 tailles d'entiers (8, 16, 32, et 64 bits) qui viennent en signé ou non-signé.
+- Il existe 5 tailles d'entiers (8, 16, 32, 64, et 128 bits) qui viennent en *signé* ou *non-signé*.
 - Également en taille dépendant de l'architecture
     - `isize`{.rust} entier signé 32 ou 64 bits.
     - `usize`{.rust} entier non-signé 32 ou 64 bits.
@@ -64,6 +64,8 @@ sansfont: Sans Serif
 +---------------+---------------+--------------------+
 | 64 bits       | `i64`{.rust}  | `u64`{.rust}       |
 +---------------+---------------+--------------------+
+| 128 bit       | `i128`{.rust} | `u128`{.rust}      |
++---------------+---------------+--------------------+
 | 32 ou 64 bits | `isize`{.rust}| `usize`{.rust}     |
 +---------------+---------------+--------------------+
 
@@ -97,8 +99,6 @@ fn main() {
 ## Les entiers (3/3)
 
 - En mode *debug*, un dépassement d'entier produira une erreur à l'exécution.
-- **Attention**: En mode *release*, cela ne sera pas le cas.
-
     <pre><code data-trim="hljs rust" class="lang-rust">
 fn main() {
 	let x = 12341324;
@@ -107,6 +107,15 @@ fn main() {
 	println!("L'entier x vaut {}.", (x*y) as i32); // affichage   
 }
     </code></pre>
+- **Attention**: En mode *release*, cela ne sera pas le cas.
+    <pre><code data-trim="hljs rust" class="lang-rust">
+fn main() {
+    let x:i32 = 1234567891011; // en pratique cela produit un warning
+
+    println!("L'entier x vaut {}.", x); // affichage   
+}
+    </code></pre>
+
 
 ## Les nombres à virgule flottante
 
-- 
GitLab