diff options
author | June McEnroe <june@causal.agency> | 2020-05-03 19:47:22 +0000 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-03 19:47:22 +0000 |
commit | 9da7e330fae44ed09ca983cb69361e856f658b42 (patch) | |
tree | c8cce48894587d9ab43e860744a316a8459b2c54 /Makefile | |
parent | Add exman script (diff) | |
download | exman-9da7e330fae44ed09ca983cb69361e856f658b42.tar.gz exman-9da7e330fae44ed09ca983cb69361e856f658b42.zip |
Add install, uninstall targets
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
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 |