Makefile: add uninstall target

This commit is contained in:
Jakob Unterwurzacher 2021-08-13 10:41:48 +02:00
parent 9a8dfd98ef
commit dd24fed532

View File

@ -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