From d069cf9ec8ba9cbe312546c12aee44ef391fa8f4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 28 Feb 2014 11:47:04 -0500 Subject: Makefile.am: Enable archtab uninstallation. --- (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index ed85905..c11fd2a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -96,8 +96,20 @@ uninstall-local: dir="$(DESTDIR)$(localedir)/$${ff%.ms}/LC_MESSAGES"; \ rm -f "$${dir}/$(textdomain).ms"; \ done + for f in $(archtab_sources); do \ + ff="$${f#*/}"; \ + dir="$(DESTDIR)$(archtabdir)/$${ff%/?*}"; \ + rm -f "$${dir}/$${ff#*/}"; \ + done uninstall-hook: + for f in $(archtab_sources); do \ + ff="$${f#*/}"; \ + dir="$(DESTDIR)$(archtabdir)/$${ff%/?*}"; \ + if [ -d "$${dir}" ]; then \ + rmdir "$${dir}" || exit 1; \ + fi; \ + done for dir in \ '$(DESTDIR)$(pkgdatabuildsystemdir)' \ '$(DESTDIR)$(archtabdir)' \ -- cgit v0.9.1