Remove binary and manpage on `$ make uninstall` (#146)
authorYochem van Rosmalen <yochem+git@icloud.com>
Mon, 19 Apr 2021 19:04:42 +0000 (21:04 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 19:04:42 +0000 (21:04 +0200)
Makefile

index 0db1ec6..02ef0fc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,7 @@ install:
        install -m 644 mdp.1 $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1
 
 uninstall:
-       $(RM) $(DESTDIR)$(PREFIX)/$(TARGET)
+       $(RM) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
+       $(RM) $(DESTDIR)$(PREFIX)/share/man/man1/$(TARGET).1
 
 .PHONY: all clean install src uninstall