From dfb124fe0dfc151bf26ddce7fc305377fe70b16b Mon Sep 17 00:00:00 2001 From: Ilyas Bakirov Date: Wed, 4 Feb 2015 17:14:26 +0600 Subject: [PATCH] BUILD: add new target 'make uninstall' to support uninstalling haproxy from OS --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 4e3e16680..620a2bedc 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