Skip to content
Snippets Groups Projects
Commit fc18c0c1 authored by Ethan Robert's avatar Ethan Robert
Browse files

Fixed makefile

parent 74cc6984
No related branches found
No related tags found
No related merge requests found
prerequisites:
@echo "Vérification du fonctionnement de pandoc"
@which pandoc > /dev/null || (echo "❌ Impossible de trouver la commande pandoc." ; exit 1)
prerequisites-pdflatex: prerequisites
@echo "Vérification de la présence de pdflatex"
@which pdflatex > /dev/null || (echo "❌ Impossible de trouver la commande pdflatex." ; exit 1)
clean:
@echo "Suppression de Output.pdf"
@rm dist/Output.pdf || (echo)
@echo "Suppression de Output.html"
@rm dist/Output.html || (echo)
pdf: prerequisites-pdflatex clean
@echo "Génération de Output.pdf"
@pandoc --defaults=config.yaml -o dist/Output.pdf
html: prerequisites clean
@echo "Génération de Output.html"
@pandoc --defaults=config.yaml -o dist/Output.html --embed-resources --standalone
all: pdf html
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment