Remove man pages after installing into target filesystem.
author"Steven J. Hill" <sjhill@realitydiluted.com>
Sun, 14 Jan 2007 06:07:49 +0000 (06:07 -0000)
committer"Steven J. Hill" <sjhill@realitydiluted.com>
Sun, 14 Jan 2007 06:07:49 +0000 (06:07 -0000)
package/libevent/libevent.mk

index cda3a33215124bfc0368327ee4f96b81b9e0b5b7..9edb72c2ea260935eaf80ce26eda0eb34ed8175e 100644 (file)
@@ -43,15 +43,18 @@ $(STAGING_DIR)/$(LIBEVENT_TARGET_BINARY): $(LIBEVENT_DIR)/$(LIBEVENT_BINARY)
 $(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY): $(STAGING_DIR)/$(LIBEVENT_TARGET_BINARY)
        make -C $(LIBEVENT_DIR) DESTDIR=$(TARGET_DIR) install
        rm -f $(TARGET_DIR)/usr/lib/libevent*.la $(TARGET_DIR)/usr/include/ev*
+       rm -f $(TARGET_DIR)/usr/man/man3/ev*.3
+       rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/usr/man/man3
 
 libevent: uclibc $(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY)
 
 libevent-clean:
-       rm -f $(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY)
+       rm -f $(TARGET_DIR)/$(LIBEVENT_TARGET_BINARY)*
        -$(MAKE) -C $(LIBEVENT_DIR) clean
 
 libevent-dirclean:
        rm -rf $(LIBEVENT_DIR)
+
 #############################################################
 #
 # Toplevel Makefile options