mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-03 16:37:43 +00:00
tcl: use make conditions
As suggested by Thomas Petazzoni, make conditions should be used rather than shell condition in Makefiles. Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
aef9be3eb3
commit
224187cc7c
@ -24,15 +24,22 @@ HOST_TCL_CONF_OPT = \
|
|||||||
|
|
||||||
define TCL_POST_INSTALL_CLEANUP
|
define TCL_POST_INSTALL_CLEANUP
|
||||||
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libtcl8.4.so
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libtcl8.4.so
|
||||||
-if [ "$(BR2_PACKAGE_TCL_DEL_ENCODINGS)" = "y" ]; then \
|
|
||||||
rm -Rf $(TARGET_DIR)/usr/lib/tcl$(TCL_VERSION_MAJOR)/encoding/*; \
|
|
||||||
fi
|
|
||||||
-if [ "$(BR2_PACKAGE_TCL_SHLIB_ONLY)" = "y" ]; then \
|
|
||||||
rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR); \
|
|
||||||
fi
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TCL_POST_INSTALL_TARGET_HOOKS += TCL_POST_INSTALL_CLEANUP
|
TCL_POST_INSTALL_TARGET_HOOKS += TCL_POST_INSTALL_CLEANUP
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_TCL_DEL_ENCODINGS),y)
|
||||||
|
define TCL_REMOVE_ENCODINGS
|
||||||
|
rm -rf $(TARGET_DIR)/usr/lib/tcl$(TCL_VERSION_MAJOR)/encoding/*
|
||||||
|
endef
|
||||||
|
TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_ENCODINGS
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_TCL_SHLIB_ONLY),y)
|
||||||
|
define TCL_REMOVE_TCLSH
|
||||||
|
rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
|
||||||
|
endef
|
||||||
|
TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_TCLSH
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
$(eval $(host-autotools-package))
|
$(eval $(host-autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user