moves stuff to supplements
This commit is contained in:
@@ -1,21 +1,20 @@
|
||||
QUARTO = quarto
|
||||
QMD = index.qmd
|
||||
QUARTO ?= quarto
|
||||
|
||||
.PHONY: all pdf docx clean
|
||||
|
||||
# Build both formats for both documents
|
||||
all: pdf docx
|
||||
|
||||
# PDF
|
||||
# Aggregate targets
|
||||
pdf: index.pdf Supplements.pdf
|
||||
docx: index.docx Supplements.docx
|
||||
|
||||
pdf: OUTPUT_FORMAT = pdf/tex
|
||||
pdf: index.pdf
|
||||
# Pattern rules for either format
|
||||
%.pdf: %.qmd
|
||||
OUTPUT_FORMAT=pdf/tex $(QUARTO) render $< --to 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
|
||||
%.docx: %.qmd
|
||||
OUTPUT_FORMAT=docx $(QUARTO) render $< --to docx
|
||||
|
||||
clean:
|
||||
rm -f index.pdf Supplements.pdf index.docx Supplements.docx
|
||||
|
||||
Reference in New Issue
Block a user