diff --git a/Makefile b/Makefile index 1f752f8351634820fa8f157324f0fed362bf4b13..b2c75f3c0c7722709911b7ff5d6ddf6d668dc57a 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ prerequisites: @echo "Vérification du fonctionnement de pandoc" @which pandoc > /dev/null || (echo "❌ Impossible de trouver la commande pandoc." ; exit 1) @pandoc --version | grep -q "pandoc 2\.[0-9]\|pandoc 3" || (echo "❌ La version de pandoc doit être au moins 2.0." ; exit 1) + @echo "Création du répertoire dist" + @mkdir dist || (echo "Already exists") prerequisites-pdflatex: prerequisites @echo "Vérification de la présence de pdflatex" @@ -15,10 +17,10 @@ clean: pdf: prerequisites-pdflatex clean @echo "Génération de Output.pdf" - @pandoc --defaults=config.yaml -o dist/Output.pdf + @pandoc --defaults=config.yaml -o $(PWD)/dist/Output.pdf html: prerequisites clean @echo "Génération de Output.html" - pandoc --defaults=config.yaml -o dist/Output.html --embed-resources --standalone || pandoc --defaults=config.yaml -o dist/Output.html --self-contained --standalone + @pandoc --defaults=config.yaml -o $(PWD)/dist/Output.html --embed-resources --standalone || (pandoc --defaults=config.yaml -o $(PWD)/dist/Output.html --self-contained --standalone) all: pdf html \ No newline at end of file diff --git a/config.yaml b/config.yaml index 8528a446e186600f0af8b048d63a690598184f99..1adb4f830eed486cd8d140aa4e484cd803b52720 100644 --- a/config.yaml +++ b/config.yaml @@ -5,7 +5,7 @@ input-files: - src/Gitea.md metadata: title: "SAÉ S2.03" - author: "Ethan Robert" + author: "Ethan Robert, Sewan Hamida, Aurélien Dochy" date: "Février 2025" encoding: "UTF-8" toc: true