summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a134b0d..c9c9975 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ root_test:
format:
go fmt ./...
+# Keep in sync with uninstall!
.phony: install
install:
install -Dm755 -t "$(DESTDIR)/usr/bin/" gocryptfs
@@ -24,6 +25,14 @@ install:
install -Dm644 -t "$(DESTDIR)/usr/share/man/man1/" Documentation/gocryptfs-xray.1
install -Dm644 -t "$(DESTDIR)/usr/share/licenses/gocryptfs" LICENSE
+.phony: uninstall
+uninstall:
+ rm -f "$(DESTDIR)/usr/bin/gocryptfs"
+ rm -f "$(DESTDIR)/usr/bin/gocryptfs-xray"
+ rm -f "$(DESTDIR)/usr/share/man/man1/gocryptfs.1"
+ rm -f "$(DESTDIR)/usr/share/man/man1/gocryptfs-xray.1"
+ rm -f "$(DESTDIR)/usr/share/licenses/gocryptfs/LICENSE"
+
.phony: ci
ci:
uname -a ; go version ; openssl version