summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2013-02-12 00:51:39 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-02-19 12:41:00 +0100
commit443b66ae4bd6957ba66851324a8d1bd9f8a86075 (patch)
tree629dcc74f446eac7c811baf9b6463eab69cc3e0c
parentd1eccc01ff8d38a9e4e6e1864ebd66f491c962d1 (diff)
downloadbuildroot-novena-443b66ae4bd6957ba66851324a8d1bd9f8a86075.tar.gz
buildroot-novena-443b66ae4bd6957ba66851324a8d1bd9f8a86075.zip
vim: Add post-install hook to remove documentation from target
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/vim/vim.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/vim/vim.mk b/package/vim/vim.mk
index fa5f8aef9..4e273d49f 100644
--- a/package/vim/vim.mk
+++ b/package/vim/vim.mk
@@ -36,8 +36,16 @@ define VIM_INSTALL_RUNTIME_CMDS
$(MAKE) DESTDIR=$(TARGET_DIR) installmacros
endef
+define VIM_REMOVE_DOCS
+ find $(TARGET_DIR)/usr/share/vim -type f -name "*.txt" -delete
+endef
+
ifeq ($(BR2_PACKAGE_VIM_RUNTIME),y)
VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_RUNTIME_CMDS
endif
+ifneq ($(BR2_HAVE_DOCUMENTATION),y)
+VIM_POST_INSTALL_TARGET_HOOKS += VIM_REMOVE_DOCS
+endif
+
$(eval $(autotools-package))