Moves output format setting to makefile. Adds Readme.

This commit is contained in:
2025-12-10 16:47:38 +01:00
parent aa3942532a
commit 6c2d02b8e0
3 changed files with 26 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
QUARTO = quarto
QMD = index.qmd
all: pdf docx
# PDF
pdf: OUTPUT_FORMAT = pdf/tex
pdf: index.pdf
index.pdf: $(QMD)
OUTPUT_FORMAT="$(OUTPUT_FORMAT)" $(QUARTO) render $(QMD) --to pdf
# DOCX
docx: OUTPUT_FORMAT = docx
docx: index.docx
index.docx: $(QMD)
OUTPUT_FORMAT="$(OUTPUT_FORMAT)" $(QUARTO) render $(QMD) --to docx