]> git.codecow.com Git - Monocypher.git/commitdiff
Add uninstall target.
authorLoup Vaillant <loup@loup-vaillant.fr>
Wed, 27 Sep 2017 18:15:47 +0000 (20:15 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Wed, 27 Sep 2017 18:15:47 +0000 (20:15 +0200)
Fixes #46

makefile

index c325e54d30c489db1c6ce6f1b41ae226124fb344..346a5e95cc38c91b532c1d111674f743f319106a 100644 (file)
--- 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