summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-02-28 11:47:04 (EST)
committer P. J. McDermott <pjm@nac.net>2014-02-28 11:47:04 (EST)
commitd069cf9ec8ba9cbe312546c12aee44ef391fa8f4 (patch)
tree27ba122be6a399bc635e3adcfd5cec063670be6a
parent0c9d9b6374c9217d2d736eb6c5dc6f3447adc021 (diff)
Makefile.am: Enable archtab uninstallation.
-rw-r--r--Makefile.am12
1 files changed, 12 insertions, 0 deletions
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)' \