aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 25cbaba..4af081f 100644
--- a/Makefile
+++ b/Makefile
@@ -24,5 +24,19 @@ install: build
install -Dm644 _sys/etc/bash_completion.d/gotp $(DESTDIR)/etc/bash_completion.d/gotp
install -Dm644 COPYING $(DESTDIR)/usr/share/licenses/gotp/COPYING
+.PHONY: install-darwin
+install-darwin: DESTDIR=/usr/local
+install-darwin: build
+ install -D _sys/usr/bin/gotp $(DESTDIR)/bin/gotp
+ install -Dm644 _sys/etc/bash_completion.d/gotp $(DESTDIR)/etc/bash_completion.d/gotp
+ install -Dm644 COPYING $(DESTDIR)/share/gotp/COPYING
+
serve-doc:
ciigo serve _doc
+
+.PHONY: uninstall-darwin
+uninstall-darwin: DESTDIR=/usr/local
+uninstall-darwin:
+ rm -f $(DESTDIR)/etc/bash_completion.d/gotp
+ rm -f $(DESTDIR)/share/gotp/COPYING
+ rm -f $(DESTDIR)/bin/gotp