]> git.codecow.com Git - Monocypher.git/commitdiff
make uninstall should not fail on partial installs
authorCuleX <cculex@gmail.com>
Sat, 14 Oct 2017 16:27:54 +0000 (18:27 +0200)
committerCuleX <cculex@gmail.com>
Sat, 14 Oct 2017 16:27:54 +0000 (18:27 +0200)
rm returns non-zero when the target file does not exist.  This is
possible when e.g. a user only does install-doc but not install.

makefile

index 8bdd273cfb9ee8b5115152182bb9f4ad45dcd5e4..0c01f000c1f2d781c38afa670efb807a7d306aab 100644 (file)
--- a/makefile
+++ b/makefile
@@ -50,11 +50,11 @@ clean:
        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
+       rm -f $(DESTDIR)/$(PREFIX)/lib/libmonocypher.a
+       rm -f $(DESTDIR)/$(PREFIX)/lib/libmonocypher.so
+       rm -f $(DESTDIR)/$(PREFIX)/include/monocypher.h
+       rm -f $(PKGCONFIG)/monocypher.pc
+       rm -f $(MAN_DIR)/*.3monocypher
 
 check: test
 test: test.out