Make "make uninstall" uninstall all man pages.

This commit is contained in:
Peter Michael Green 2018-11-09 00:32:38 +00:00
parent 4277ff6d19
commit 2988acaaa6
1 changed files with 1 additions and 0 deletions

View File

@ -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 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 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/pig*.1
rm -f $(DESTDIR)$(mandir)/man1/libpigpio*.1
rm -f $(DESTDIR)$(mandir)/man3/pig*.3 rm -f $(DESTDIR)$(mandir)/man3/pig*.3
ifeq ($(DESTDIR),) ifeq ($(DESTDIR),)
ldconfig ldconfig