From 594c77a22e22da38a216a4b141ba8078b3431b53 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 23 Oct 2013 17:12:57 -0400 Subject: Makefile.am: New "uninstall-hook" rule. --- diff --git a/Makefile.am b/Makefile.am index e936653..9c3ae4b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -75,6 +75,13 @@ uninstall-local: rm -f "$${dir}/$(textdomain).ms"; \ done +uninstall-hook: + for dir in '$(DESTDIR)$(pkgdatacmddir)' '$(DESTDIR)$(pkgdatadir)'; do \ + if [ -d "$${dir}" ]; then \ + rmdir "$${dir}"; \ + fi; \ + done + really-clean: distclean rm -Rf $(srcdir)/aclocal.m4 $(srcdir)/autom4te.cache/ \ $(srcdir)/configure \ -- cgit v0.9.1