From 39fa530c3335618811eaa753c79709f3bf42be7b Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Fri, 7 Feb 2014 20:43:37 -0700 Subject: [PATCH] Add an uninstall rule to the patch Makefile. --- patches/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/patches/Makefile b/patches/Makefile index 1b21b444..ee589585 100644 --- a/patches/Makefile +++ b/patches/Makefile @@ -11,3 +11,18 @@ install: # Update the wineserver protocol request data cd $(DESTDIR); ./tools/make_requests; + +uninstall: + # Remove our patches from Wine + for DIR in $$(find $(CURDIR) -type d | sort -r); do \ + for FILE in $$(ls $$DIR | sort -r | grep '\.patch$$'); do \ + patch -d $(DESTDIR) -R -N -p0 --strip=1 < $$DIR/$$FILE || exit 1; \ + done \ + done + + # Update the configure script + cd $(DESTDIR); autoreconf; + + # Update the wineserver protocol request data + cd $(DESTDIR); ./tools/make_requests; +