From ab2774b23c66521e13541ab3e361bba95c394a8a Mon Sep 17 00:00:00 2001 From: hachem Date: Fri, 18 Sep 2026 12:16:44 +0200 Subject: feat: add paper template --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4512b74 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +NAME := mktypst +VERSION := 0.1.0 + +ifeq ($(shell uname),Darwin) +DATADIR := $(HOME)/Library/Application Support +else +DATADIR := $(if $(XDG_DATA_HOME),$(XDG_DATA_HOME),$(HOME)/.local/share) +endif + +PKGDIR := $(DATADIR)/typst/packages/local/$(NAME)/$(VERSION) + +install: + mkdir -p "$(PKGDIR)" + cp typst.toml lib.typ README.md LICENSE "$(PKGDIR)"/ + cp -r templates "$(PKGDIR)"/ + +uninstall: + rm -rf "$(DATADIR)/typst/packages/local/$(NAME)/$(VERSION)" + +.PHONY: install uninstall -- cgit v1.3