summaryrefslogtreecommitdiffstats
path: root/package/liboil
diff options
context:
space:
mode:
Diffstat (limited to 'package/liboil')
-rw-r--r--package/liboil/liboil.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/package/liboil/liboil.mk b/package/liboil/liboil.mk
index 44017bed6..4350c0fd7 100644
--- a/package/liboil/liboil.mk
+++ b/package/liboil/liboil.mk
@@ -32,9 +32,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))