Update make for simpler quarto workflow

This commit is contained in:
Marty Oehme 2023-06-27 10:57:28 +02:00
parent e90de4ac66
commit 201018a489
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -1,27 +1,10 @@
OUTPUTDIR=out .PHONY: all clean
.PHONY: all prep_dir clean clean_all clean_outputdir prep_dir cv all: cv
all: prep_dir cv cv: resume_de.qmd resume_en.qmd templates/jb2resume.latex
poetry run quarto render
cv: prep_dir create_cv.pdf
clean_all: clean clean_outputdir
create_cv.pdf: marty-oehme-cv-ger.md marty-oehme-cv-eng.md templates/jb2resume.latex
pandoc marty-oehme-cv-ger.md -f markdown+yaml_metadata_block \
--template templates/jb2resume.latex \
-o ${OUTPUTDIR}/marty-oehme-cv-ger.pdf
pandoc marty-oehme-cv-eng.md -f markdown+yaml_metadata_block \
--template templates/jb2resume.latex \
-o ${OUTPUTDIR}/marty-oehme-cv-eng.pdf
prep_dir:
mkdir -p ${OUTPUTDIR}
clean: clean:
rm -f *CV.aux *CV.bcf *CV.log *CV.out *CV.run.xml *CV.pdf short_CV.tex long_CV.tex *CV.bbl *CV.blg *yaml_CV.md rm -f *CV.aux *CV.bcf *CV.log *CV.out *CV.run.xml *CV.pdf short_CV.tex long_CV.tex *CV.bbl *CV.blg *yaml_CV.md
clean_outputdir:
rm -rf ${OUTPUTDIR}