liboil: convert old-style hook to new-style hook
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 1 Sep 2010 20:38:40 +0000 (22:38 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Sep 2010 17:24:59 +0000 (19:24 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/liboil/liboil.mk

index 1bb412fc56d981d2998670cc10bb52c4db4864f4..46812828784ba9dbb9a247bd86b2fcca4290fa57 100644 (file)
@@ -35,9 +35,10 @@ endif
 
 LIBOIL_DEPENDENCIES = $(LIBOIL_GLIB_DEP)
 
-$(eval $(call AUTOTARGETS,package,liboil))
-
-$(LIBOIL_HOOK_POST_INSTALL):
-       # Remove useless bugreport program from the target
+define LIBOIL_TARGET_CLEANUP
        rm -f $(TARGET_DIR)/usr/bin/oil-bugreport
-       touch $@
+endef
+
+LIBOIL_POST_INSTALL_TARGET_HOOKS += LIBOIL_TARGET_CLEANUP
+
+$(eval $(call AUTOTARGETS,package,liboil))