From e731ffdb377e67723c672f9d8b895a3ca77b1a2b Mon Sep 17 00:00:00 2001
From: RochDLY <roch.delannay@gmail.com>
Date: Fri, 12 Jan 2024 18:01:04 +0100
Subject: ajout de la production d'une page index-c dans le makefile

---
 Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index 120610c..5c8a151 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,17 @@ serve:
 
 # Pandoc conversions
 # HTML
-html: $(STATIC_DOCS) docs/index.html $(POSTS_DOCS) $(PAGES_DOCS)
+html: $(STATIC_DOCS) docs/index.html docs/index-cache.html $(POSTS_DOCS) $(PAGES_DOCS)
+
+docs/index-cache.html: src/index-cache.md templates/index-cache.html $(metadata_site)
+	@ echo "Production de l'index caché."
+	@ pandoc \
+  	$< \
+		$(PANDOCFLAGS) \
+		--template templates/index-cache.html \
+		--output $@
+	@ echo "L'index caché est construit."
+
 
 docs/index.html: src/index.md templates/index.html $(metadata_site)
 	@ echo "Production de l'index."
-- 
cgit v1.2.3