From dd24fed5328c20ddd23ed345a36a38ebeeef8438 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 13 Aug 2021 10:41:48 +0200 Subject: [PATCH] Makefile: add uninstall target --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) 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