+# This hook is defined as a rule to make sure that it runs last.
+define remove-la-hook
+ test -z "$(lib_LTLIBRARIES)" || \
+ rm -f $(addprefix $(DESTDIR)$(libdir)/, $(lib_LTLIBRARIES))
+ test -z "$(pamlib_LTLIBRARIES)" || \
+ rm -f $(addprefix $(DESTDIR)$(pamlibdir)/, $(pamlib_LTLIBRARIES))
+ test -z "$(pkgpyexec_LTLIBRARIES)" || \
+ rm -f $(addprefix $(DESTDIR)$(pkgpyexecdir)/, $(pkgpyexec_LTLIBRARIES))
+endef
+