build: add install and uninstall targets

This commit is contained in:
2023-11-14 17:08:59 +01:00
parent 127f4ecb4a
commit 7897f6319c
2 changed files with 17 additions and 0 deletions

9
Makefile Normal file
View File

@@ -0,0 +1,9 @@
PREFIX := /usr/local
.PHONY: install
install:
install -m 755 -D ./agenda $(PREFIX)/bin/agenda
.PHONY: uninstall
uninstall:
rm $(PREFIX)/bin/agenda

View File

@@ -1 +1,9 @@
# Agenda # Agenda
## Install
Use the make `install` and `uninstall` targets to install or remove the script.
```bash
sudo make install
```