about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-05-03 19:47:22 +0000
committerJune McEnroe <june@causal.agency>2020-05-03 19:47:22 +0000
commit9da7e330fae44ed09ca983cb69361e856f658b42 (patch)
treec8cce48894587d9ab43e860744a316a8459b2c54 /Makefile
parentAdd exman script (diff)
downloadexman-9da7e330fae44ed09ca983cb69361e856f658b42.tar.gz
exman-9da7e330fae44ed09ca983cb69361e856f658b42.zip
Add install, uninstall targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
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