resume/Makefile

49 lines
1.3 KiB
Makefile

.PHONY: clean all
all: clean cv resume letter
man:
mkdir -p build
/opt/quarto/bin/quarto render cv-man.qmd --output-dir build
pandoc -t html -f man build/cv-man.man > build/cv-man.html
define _script
cat > build/DEB/DEBIAN/control <<'EOF'
Package: marty
Version: 1.0
Section: custom
Priority: optional
Architecture: amd64
Essential: no
Installed-Size: 1024
Maintainer: Marty Oehme <contact@martyoeh.me>
Description: Contains professional usage instructions for marty
EOF
endef
export script = $(value _script)
mandeb: man
mkdir -p build/DEB/DEBIAN
mkdir -p build/DEB/usr/share/man/man1
cp build/cv-man.man build/DEB/usr/share/man/man1/marty.1
@ eval "$$script"
dpkg-deb --build build/DEB build/marty.deb
cv: cv.typ
mkdir -p build
typst compile --input lang=en cv.typ build/cv_en.pdf
typst compile --input lang=de cv.typ build/cv_de.pdf
resume: resume.typ
mkdir -p build
typst compile --input lang=en resume.typ build/resume_en.pdf
typst compile --input lang=de resume.typ build/resume_de.pdf
letter: letter.typ
mkdir -p build
typst compile --input lang=en letter.typ build/letter_en.pdf
typst compile --input lang=de letter.typ build/letter_de.pdf
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