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>
This commit is contained in:
parent
d1eccc01ff
commit
443b66ae4b
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user