tn5250: remove old-style hook usage and step override
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
428b533655
commit
d1b11c16f0
|
@ -16,16 +16,17 @@ else
|
||||||
TN5250_CONF_OPT += --without-ssl
|
TN5250_CONF_OPT += --without-ssl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(call AUTOTARGETS,package,tn5250))
|
define TN5250_INSTALL_FIXES
|
||||||
|
|
||||||
$(TN5250_HOOK_POST_INSTALL):
|
|
||||||
rm -f $(TARGET_DIR)/usr/bin/5250keys
|
rm -f $(TARGET_DIR)/usr/bin/5250keys
|
||||||
rm -f $(TARGET_DIR)/usr/bin/xt5250
|
rm -f $(TARGET_DIR)/usr/bin/xt5250
|
||||||
touch $@
|
endef
|
||||||
|
|
||||||
$(TN5250_TARGET_UNINSTALL):
|
TN5250_POST_INSTALL_TARGET_HOOKS += TN5250_INSTALL_FIXES
|
||||||
$(call MESSAGE,"Uninstalling")
|
|
||||||
|
define TN5250_UNINSTALL_TARGET_CMDS
|
||||||
$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(TN5250_DIR)
|
$(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(TN5250_DIR)
|
||||||
rm -f $(TARGET_DIR)/usr/lib/lib5250.*
|
rm -f $(TARGET_DIR)/usr/lib/lib5250.*
|
||||||
rm -rf $(TARGET_DIR)/usr/share/tn5250
|
rm -rf $(TARGET_DIR)/usr/share/tn5250
|
||||||
rm -f $(TN5250_TARGET_INSTALL_TARGET) $(TN5250_HOOK_POST_INSTALL)
|
endef
|
||||||
|
|
||||||
|
$(eval $(call AUTOTARGETS,package,tn5250))
|
||||||
|
|
Loading…
Reference in New Issue