From 41c17afab4529a712b4b5cb4aaf0f294f7b55b75 Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent@modolo.fr>
Date: Fri, 18 Sep 2020 15:56:43 +0200
Subject: [PATCH] Makefile: to generate the html files

---
 Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index e892611..892ee98 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,10 @@
-1_understanding_a_computer.html: 1_understanding_a_computer.md pandoc.css
-	pandoc -s --toc -c pandoc.css 1_understanding_a_computer.md -o 1_understanding_a_computer.html
+all: index.html 1_understanding_a_computer.html 2_first_steps_in_a_terminal.html
+
+index.html: index.md github-pandoc.css
+	pandoc -s -c github-pandoc.css index.md -o index.html
+
+1_understanding_a_computer.html: 1_understanding_a_computer.md github-pandoc.css
+	pandoc -s --toc -c github-pandoc.css 1_understanding_a_computer.md -o 1_understanding_a_computer.html
+
+2_first_steps_in_a_terminal.html: 2_first_steps_in_a_terminal.md github-pandoc.css
+	pandoc -s --toc -c github-pandoc.css 2_first_steps_in_a_terminal.md -o 2_first_steps_in_a_terminal.html
-- 
GitLab