haserl: convert to new style hook

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2010-09-02 00:04:13 +02:00
parent 7811b05c9b
commit 23ad529cb5

View File

@ -22,9 +22,10 @@ ifeq ($(BR2_PACKAGE_HASERL_WITH_LUA),y)
HASERL_DEPENDENCIES += lua HASERL_DEPENDENCIES += lua
endif endif
$(eval $(call AUTOTARGETS,package,haserl)) define HASERL_REMOVE_EXAMPLES
# haserl 0.8.0 installs unneeded examples to /usr/share/haserl - remove them
$(HASERL_HOOK_POST_INSTALL): $(HASERL_TARGET_INSTALL_TARGET)
rm -rf $(TARGET_DIR)/usr/share/haserl rm -rf $(TARGET_DIR)/usr/share/haserl
touch $@ endef
HASERL_POST_INSTALL_TARGET_HOOKS += HASERL_REMOVE_EXAMPLES
$(eval $(call AUTOTARGETS,package,haserl))