about summary refs log tree commit diff
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
parentAdd exman script (diff)
downloadexman-9da7e330fae44ed09ca983cb69361e856f658b42.tar.gz
exman-9da7e330fae44ed09ca983cb69361e856f658b42.zip
Add install, uninstall targets
-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
cEnroe 2020-02-11Set self.nick to * initiallyJune McEnroe 2020-02-11Define ColorCap instead of hardcoding 100June McEnroe 2020-02-11Move hash to top of chat.hJune McEnroe 2020-02-11Move base64 out of chat.hJune McEnroe 2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe 2020-02-11Cast towupper to wchar_tJune McEnroe 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe