summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-12-09 15:20:21 -0500
committerMike Frysinger <vapier@gentoo.org>2016-12-09 15:20:21 -0500
commit0a88ad5d36f33deb2a5e6e005ce391192f91ce6f (patch)
tree58bf32b1cd2f1b670b662ddba813b5347a314a5a
parenta4187bec9c44d1c9b7388aca4f61370fc8149a2a (diff)
downloadattr-0a88ad5d36f33deb2a5e6e005ce391192f91ce6f.tar.gz
include: add uninstall target to fix distcheck
Commit 315af30d0c1a198dc662a90e6e6ae2456abf2489 (Cleanup visibility of API functions) changed to generating headers into the install path. This means automake itself would no longer take care of uninstalling the headers for us. Add a local hook for that to fix distcheck.
-rw-r--r--include/Makemodule.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/Makemodule.am b/include/Makemodule.am
index e4f56f9..3531fa1 100644
--- a/include/Makemodule.am
+++ b/include/Makemodule.am
@@ -24,3 +24,8 @@ install-error_context_h: include/error_context.h
install-libattr_h: include/libattr.h
$(SUBST_INSTALL_HEADER) "$<" "$(DESTDIR)$(pkgincludedir)"
install-data-local: install-attributes_h install-error_context_h install-libattr_h
+uninstall-local:
+ -rm -f \
+ "$(DESTDIR)$(pkgincludedir)/attributes.h" \
+ "$(DESTDIR)$(pkgincludedir)/error_context.h" \
+ "$(DESTDIR)$(pkgincludedir)/libattr.h"