mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
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
|
$(MAKE) DESTDIR=$(TARGET_DIR) installmacros
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define VIM_REMOVE_DOCS
|
||||||
|
find $(TARGET_DIR)/usr/share/vim -type f -name "*.txt" -delete
|
||||||
|
endef
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_VIM_RUNTIME),y)
|
ifeq ($(BR2_PACKAGE_VIM_RUNTIME),y)
|
||||||
VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_RUNTIME_CMDS
|
VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_RUNTIME_CMDS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(BR2_HAVE_DOCUMENTATION),y)
|
||||||
|
VIM_POST_INSTALL_TARGET_HOOKS += VIM_REMOVE_DOCS
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user