summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authororangerot <orangerot@orangerot.dev>2025-09-11 21:04:06 +0200
committerorangerot <orangerot@orangerot.dev>2025-09-11 21:04:06 +0200
commita9551946ea37f6c3cc873385c1a5cba1da159168 (patch)
treef7f347bc1decaac70da0c1b581d1626868c4ddf0 /Makefile
parentdc49755cb6b596dd57ac1bfa9a8d33174d22102f (diff)
feat: install instructions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0d3c356..3f30fd0 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,11 @@
TEMPLATES = muendliche-pruefung muendliche-nachpruefung muendliche-pruefung-mathematik
FILES = README.md main.typ lib.typ $1.typ $1.pdf
+PACKAGE_NAME = fsmi-exam-report
+PACKAGE_VERSION = 0.1.0
+PREFIX ?= $(HOME)/.local/share/typst/packages/local
+INSTALLDIR = $(PREFIX)/$(PACKAGE_NAME)/$(PACKAGE_VERSION)
+
dist: $(addsuffix .tar.gz,${TEMPLATES})
mkdir -p dist
mv $^ dist
@@ -19,3 +24,12 @@ endef
$(foreach template,${TEMPLATES},$(eval $(call make-archive,${template})))
+.PHONY: install
+install:
+ mkdir -p ${INSTALLDIR}
+ cp -r * ${INSTALLDIR}
+
+.PHONY: uninstall
+uninstall:
+ rm -rf ${INSTALLDIR}
+