Make "make uninstall" uninstall all man pages.
authorPeter Michael Green <plugwash@debian.org>
Fri, 9 Nov 2018 00:32:38 +0000 (00:32 +0000)
committerPeter Michael Green <plugwash@debian.org>
Fri, 9 Nov 2018 00:32:38 +0000 (00:32 +0000)
Makefile

index 753a9a30bd2ebecc2a5184ea2746828c79a5fcf6..b73505a678db91076d7091e4bf3fd67b9986b392 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -129,6 +129,7 @@ uninstall:
        if which python2; then python2 setup.py install $(PYINSTALLARGS) --record /tmp/pigpio >/dev/null; sed 's!^!$(DESTDIR)!' < /tmp/pigpio | xargs rm -f >/dev/null; fi
        if which python3; then python3 setup.py install $(PYINSTALLARGS) --record /tmp/pigpio >/dev/null; sed 's!^!$(DESTDIR)!' < /tmp/pigpio | xargs rm -f >/dev/null; fi
        rm -f $(DESTDIR)$(mandir)/man1/pig*.1
+       rm -f $(DESTDIR)$(mandir)/man1/libpigpio*.1
        rm -f $(DESTDIR)$(mandir)/man3/pig*.3
 ifeq ($(DESTDIR),)
        ldconfig