This was apparently forgotten because distcheck seems to not notice when
you leave crap in the install tree.
$(INSTALL_DATA) "$$mo" "$$inst/$(PACKAGE).mo" || exit $$?; \
set +x; \
done
-.PHONY: install-mo
+
+uninstall-hook: uninstall-mo
+uninstall-mo:
+ for mo in $(ALL_MOFILES); do \
+ lang=`expr "$$mo" : '.*/\(.*\)\.mo' \| "$$mo" : '\(.*\)\.mo'`; \
+ test x"$$lang" = x"" && exit 1; \
+ inst="$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES"; \
+ set -x; \
+ cd "$$inst" && rm -f '$(PACKAGE).mo'; \
+ set +x; \
+ done
+
+.PHONY: install-mo uninstall-mo
# These are required to prevent the builtin lex/yacc rules from
# superseding ours...