From: Loup Vaillant Date: Wed, 27 Sep 2017 18:15:47 +0000 (+0200) Subject: Add uninstall target. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=c7b31ec807999592428b24b1452d44eda4b48ac2;p=Monocypher.git Add uninstall target. Fixes #46 --- diff --git a/makefile b/makefile index c325e54..346a5e9 100644 --- a/makefile +++ b/makefile @@ -8,7 +8,7 @@ MAN_DIR=$(DESTDIR)/$(PREFIX)/share/man/man3 .PHONY: all library static-library dynamic-library \ install install-doc \ check test speed \ - clean + clean uninstall all : library install: library src/monocypher.h install-doc @@ -43,6 +43,13 @@ clean: rm -rf lib/ rm -f *.out +uninstall: + rm $(DESTDIR)/$(PREFIX)/lib/libmonocypher.a + rm $(DESTDIR)/$(PREFIX)/lib/libmonocypher.so + rm $(DESTDIR)/$(PREFIX)/include/monocypher.h + rm $(PKGCONFIG)/monocypher.pc + rm $(MAN_DIR)/*.3monocypher + check: test test: test.out ./test.out