From 7897f6319cb7fa1c614aec21b4f943d256d917f3 Mon Sep 17 00:00:00 2001 From: Jonas Kattendick Date: Tue, 14 Nov 2023 17:08:59 +0100 Subject: [PATCH] build: add install and uninstall targets --- Makefile | 9 +++++++++ README.md | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1ed1285 --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 5d8b6e4..a0df8af 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ # Agenda + +## Install + +Use the make `install` and `uninstall` targets to install or remove the script. + +```bash +sudo make install +```