aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-13 10:41:48 +0200
committerJakob Unterwurzacher2021-08-13 10:41:48 +0200
commitdd24fed5328c20ddd23ed345a36a38ebeeef8438 (patch)
treea375c89c14efb1f837fd027b0c519b987e32ae43 /Makefile
parent9a8dfd98ef4038d743c88aa8de397a58a6b64dff (diff)
Makefile: add uninstall target
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