diff options
| author | Shulhan <ms@kilabit.info> | 2023-10-06 16:49:42 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-10-09 12:59:25 +0700 |
| commit | 311b36b05897fd0b86051eb1cbaf342861eb140c (patch) | |
| tree | bedbb1003c2262b2e6d2bc787cbf28c2474b6370 | |
| parent | 246b65008ff6c6b20db2f26f0bfcd4ddaabd3301 (diff) | |
| download | gotp-311b36b05897fd0b86051eb1cbaf342861eb140c.tar.xz | |
Makefile: add task to install and uninstall gotp in macOS
| -rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |
