Skip to contentSkip to conversation

Remove gtk-doc documentations from target

PATCH New Paulius Zaleckas 2 participants 2 messages May 5, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove gtk-doc documentations from target

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.

---

 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Makefile +1 -0
index 607ec6d..5da21d8 100644
@@ -410,6 +410,7 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y)
 	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
#1 lore raw

PATCH 1/1 Remove gtk-doc documentations from target

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Paulius" == Paulius Zaleckas <[email protected]> writes:

Paulius> On my target rootfs it is installed documentation for:
Paulius> atk, cairo, gdk, gdk-pixbuf, gio, glib, gobject, gtk, pango

Paulius> It ocupies 34M of space. Configure option --disable-gtk-doc doesn't Paulius> prevent installation of it. So we should remove them manually if Paulius> documentation is disabled.

I was thinking the exact same thing yesterday - Committed, thanks.

I'll get rid of the manual cleanups we do in some places as well:

git grep usr/share/gtk-doc

hal/hal.mk:     rm -rf $(TARGET_DIR)/usr/share/gtk-doc
libglade/libglade.mk:   rm -rf $(TARGET_DIR)/usr/share/gtk-doc \
libxml2/libxml2.mk:            $(TARGET_DIR)/usr/share/gtk-doc
Signature · 1 line
Bye, Peter Korsgaard