just some meta stuff

This commit is contained in:
2025-12-16 23:21:41 +01:00
parent 86b2380902
commit 0908df2a79
7 changed files with 89 additions and 44 deletions
+4 -2
View File
@@ -1,4 +1,6 @@
QUARTO ?= quarto
PROFILE ?= default
PROFILE_FLAG := $(if $(PROFILE),--profile $(PROFILE),)
# Allow overriding the list of docx outputs via env var `docx`.
# Example: `make docx docx="index Supplements"` or `make docx docx=index`.
@@ -18,10 +20,10 @@ docx-main: index.docx
# Pattern rules for either format
%.pdf: %.qmd
OUTPUT_FORMAT=pdf/tex $(QUARTO) render $< --to pdf
OUTPUT_FORMAT=pdf/tex $(QUARTO) render $< --to pdf $(PROFILE_FLAG)
%.docx: %.qmd
OUTPUT_FORMAT=docx $(QUARTO) render $< --to docx
OUTPUT_FORMAT=docx $(QUARTO) render $< --to docx $(PROFILE_FLAG)
clean:
rm -f index.pdf Supplements.pdf index.docx Supplements.docx