From 443b66ae4bd6957ba66851324a8d1bd9f8a86075 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 12 Feb 2013 00:51:39 +0000 Subject: [PATCH] vim: Add post-install hook to remove documentation from target Signed-off-by: Markos Chandras Reviewed-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/vim/vim.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/vim/vim.mk b/package/vim/vim.mk index fa5f8aef9f..4e273d49f0 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)) -- 2.30.2