just some meta stuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user