diff --git a/Makefile b/Makefile index 3cf6b01..11f5627 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,32 @@ 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 +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