diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-09-01 17:06:45 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-09-12 19:24:58 +0200 |
commit | d1b11c16f0620d426a36bf4e10f5bc8ce4d33040 (patch) | |
tree | 7fd28be04fb96b01feb8335977335deb50c69c44 /package/tn5250 | |
parent | 428b533655e3f134b5cfeb40948360eab968d50c (diff) | |
download | buildroot-novena-d1b11c16f0620d426a36bf4e10f5bc8ce4d33040.tar.gz buildroot-novena-d1b11c16f0620d426a36bf4e10f5bc8ce4d33040.zip |
tn5250: remove old-style hook usage and step override
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/tn5250')
-rw-r--r-- | package/tn5250/tn5250.mk | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/package/tn5250/tn5250.mk b/package/tn5250/tn5250.mk index ac9c1f1fb..63c6c6c76 100644 --- a/package/tn5250/tn5250.mk +++ b/package/tn5250/tn5250.mk @@ -16,16 +16,17 @@ else TN5250_CONF_OPT += --without-ssl endif -$(eval $(call AUTOTARGETS,package,tn5250)) - -$(TN5250_HOOK_POST_INSTALL): +define TN5250_INSTALL_FIXES rm -f $(TARGET_DIR)/usr/bin/5250keys rm -f $(TARGET_DIR)/usr/bin/xt5250 - touch $@ +endef + +TN5250_POST_INSTALL_TARGET_HOOKS += TN5250_INSTALL_FIXES -$(TN5250_TARGET_UNINSTALL): - $(call MESSAGE,"Uninstalling") +define TN5250_UNINSTALL_TARGET_CMDS $(MAKE) DESTDIR=$(TARGET_DIR) uninstall -C $(TN5250_DIR) rm -f $(TARGET_DIR)/usr/lib/lib5250.* rm -rf $(TARGET_DIR)/usr/share/tn5250 - rm -f $(TN5250_TARGET_INSTALL_TARGET) $(TN5250_HOOK_POST_INSTALL) +endef + +$(eval $(call AUTOTARGETS,package,tn5250)) |