From 9da7e330fae44ed09ca983cb69361e856f658b42 Mon Sep 17 00:00:00 2001
From: "C. McEnroe" <june@causal.agency>
Date: Sun, 3 May 2020 19:47:22 +0000
Subject: Add install, uninstall targets

---
 Makefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index 5c9b086..2614ff2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+PREFIX = /usr/local
+
 CURL ?= curl
 TAR ?= tar
 
@@ -35,3 +37,11 @@ STRIP.posix = 1
 
 clean:
 	rm -fr ${SYSTEMS} *.tar
+
+install: exman ${SYSTEMS}
+	install -d ${PREFIX}/bin ${PREFIX}/share/exman
+	install exman ${PREFIX}/bin
+	${TAR} -c -f - ${SYSTEMS} | ${TAR} -xo -f - -C ${PREFIX}/share/exman
+
+uninstall:
+	rm -fr ${PREFIX}/bin/exman ${PREFIX}/share/exman
-- 
cgit 1.4.1