On my target rootfs it is installed documentation for:
atk, cairo, gdk, gdk-pixbuf, gio, glib, gobject, gtk, pango
It ocupies 34M of space. Configure option --disable-gtk-doc doesn't
prevent installation of it. So we should remove them manually if
documentation is disabled.
[Peter: also remove manual rm's from hal/libxml2/libglade]
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/man
rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/share/info
rm -rf $(TARGET_DIR)/usr/doc $(TARGET_DIR)/usr/share/doc
+ rm -rf $(TARGET_DIR)/usr/share/gtk-doc
endif
find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
$(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null
$(TARGET_DIR)/$(HAL_TARGET_BINARY): $(HAL_DIR)/hald/hald
$(MAKE) STAGING_DIR="$(STAGING_DIR)" DESTDIR="$(TARGET_DIR)" -C $(HAL_DIR) install
- rm -rf $(TARGET_DIR)/usr/share/gtk-doc
rm -rf $(TARGET_DIR)/usr/share/hal/device-manager
rm -rf $(TARGET_DIR)/usr/lib/libhal*.so
rm -rf $(TARGET_DIR)/usr/lib/hal
$(eval $(call AUTOTARGETS,package,libglade))
$(LIBGLADE_HOOK_POST_INSTALL):
- rm -rf $(TARGET_DIR)/usr/share/gtk-doc \
- $(TARGET_DIR)/usr/share/xml/libglade \
+ rm -rf $(TARGET_DIR)/usr/share/xml/libglade \
$(TARGET_DIR)/usr/bin/libglade-convert
touch $@
$(LIBXML2_HOOK_POST_INSTALL):
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
- rm -rf $(TARGET_DIR)/usr/share/aclocal \
- $(TARGET_DIR)/usr/share/doc/libxml2-$(LIBXML2_VERSION) \
- $(TARGET_DIR)/usr/share/gtk-doc
+ rm -rf $(TARGET_DIR)/usr/share/aclocal
touch $@
# libxml2 for the host