diff options
author | orangerot <orangerot@orangerot.dev> | 2025-09-11 21:04:06 +0200 |
---|---|---|
committer | orangerot <orangerot@orangerot.dev> | 2025-09-11 21:04:06 +0200 |
commit | a9551946ea37f6c3cc873385c1a5cba1da159168 (patch) | |
tree | f7f347bc1decaac70da0c1b581d1626868c4ddf0 /Makefile | |
parent | dc49755cb6b596dd57ac1bfa9a8d33174d22102f (diff) |
feat: install instructions
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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} + |