summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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}
+