From: Ilyas Bakirov Date: Wed, 4 Feb 2015 11:14:26 +0000 (+0600) Subject: BUILD: add new target 'make uninstall' to support uninstalling haproxy from OS X-Git-Tag: v1.6-dev1~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfb124fe0dfc151bf26ddce7fc305377fe70b16b;p=thirdparty%2Fhaproxy.git BUILD: add new target 'make uninstall' to support uninstalling haproxy from OS --- diff --git a/Makefile b/Makefile index 4e3e166805..620a2bedc1 100644 --- a/Makefile +++ b/Makefile @@ -733,6 +733,15 @@ install-bin: haproxy haproxy-systemd-wrapper install: install-bin install-man install-doc +uninstall: + rm -f "$(DESTDIR)$(MANDIR)"/man1/haproxy.1 + for x in configuration architecture haproxy-en haproxy-fr; do \ + rm -f "$(DESTDIR)$(DOCDIR)"/$$x.txt ; \ + done + -rmdir "$(DESTDIR)$(DOCDIR)" + rm -f "$(DESTDIR)$(SBINDIR)"/haproxy + rm -f "$(DESTDIR)$(SBINDIR)"/haproxy-systemd-wrapper + clean: rm -f *.[oas] src/*.[oas] ebtree/*.[oas] haproxy test for dir in . src include/* doc ebtree; do rm -f $$dir/*~ $$dir/*.rej $$dir/core; done