Skip to content

Commit

Permalink
Add install and uninstall make targets
Browse files Browse the repository at this point in the history
Uses pipx to install globally

Closes #433
  • Loading branch information
strk committed Dec 14, 2023
1 parent 1c5abb8 commit 1b55750
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
prefix = /usr/local
bindir = $(prefix)/bin
PIPX_HOME = /opt/pipx

.PHONY: clean publish test docs

dist :
Expand Down Expand Up @@ -33,4 +37,9 @@ docs-serve:
mdbook serve

docs-deploy: docs
rsync --archive --compress --delete --stats book/ bezdomni:web/toot

install:
PIPX_HOME=$(PIPX_HOME) PIPX_BIN_DIR=$(bindir) pipx install --force .

uninstall:
PIPX_HOME=$(PIPX_HOME) PIPX_BIN_DIR=$(bindir) pipx uninstall toot

0 comments on commit 1b55750

Please sign in to comment.