feat: Make myself installable as a debian package
This commit is contained in:
parent
3be4db8c16
commit
83d7b1d7fa
1 changed files with 23 additions and 0 deletions
23
Makefile
23
Makefile
|
|
@ -3,9 +3,32 @@
|
||||||
all: clean cv resume letter
|
all: clean cv resume letter
|
||||||
|
|
||||||
man:
|
man:
|
||||||
|
mkdir -p build
|
||||||
/opt/quarto/bin/quarto render cv-man.qmd --output-dir 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
|
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
|
cv: cv.typ
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
typst compile --input lang=en cv.typ build/cv_en.pdf
|
typst compile --input lang=en cv.typ build/cv_en.pdf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue