From e41dbc75f969aeb219ca81d590354946203ee1c0 Mon Sep 17 00:00:00 2001 From: Malte Starostik Date: Sat, 24 Jul 2010 13:21:28 +0200 Subject: [PATCH] Purge libglib2 dev files from target * Don't install libglib2 development binaries and to target unless BR2_HAVE_DEVFILES is set Signed-off-by: Malte Starostik Acked-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/libglib2/libglib2.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk index 6ddb820ddf..35b7ee8f94 100644 --- a/package/libglib2/libglib2.mk +++ b/package/libglib2/libglib2.mk @@ -68,6 +68,17 @@ LIBGLIB2_CONF_OPT += --with-libiconv=gnu LIBGLIB2_DEPENDENCIES+=libiconv endif +define LIBGLIB2_REMOVE_DEV_FILES + rm -rf $(TARGET_DIR)/usr/lib/glib-2.0 + rm -rf $(TARGET_DIR)/usr/share/glib-2.0/gettext + rmdir --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share/glib-2.0 + rm -f $(addprefix $(TARGET_DIR)/usr/bin/,glib-genmarshal glib-gettextize glib-mkenums gobject-query gtester gtester-report) +endef + +ifneq ($(BR2_HAVE_DEVFILES),y) +LIBGLIB2_POST_INSTALL_TARGET_HOOKS += LIBGLIB2_REMOVE_DEV_FILES +endif + $(eval $(call AUTOTARGETS,package,libglib2)) $(eval $(call AUTOTARGETS,package,libglib2,host)) -- 2.30.2