Do not remove documentation on a per-package basis
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 10 Apr 2010 20:44:37 +0000 (22:44 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 11 Apr 2010 04:01:08 +0000 (06:01 +0200)
Since the documentation cleanup is done by the main Makefile in a
global way, there's no need to do that on a per-package basis in the
generic package infrastructure.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Makefile.package.in

index fbd7f6931db99b14fb78b3cf96c2135a53c865d1..e98fda85d1739081503aa6efaa573da47cfa2b3f 100644 (file)
@@ -171,15 +171,6 @@ $(BUILD_DIR)/%/.stamp_target_installed:
        @$(call MESSAGE,"Installing to target")
        $($(PKG)_INSTALL_TARGET_CMDS)
        $(foreach hook,$($(PKG)_POST_INSTALL_TARGET_HOOKS),$(call $(hook))$(sep))
-       $(if $(BR2_HAVE_MANPAGES),,for d in man share/man; do \
-               rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
-       done)
-       $(if $(BR2_HAVE_INFOPAGES),,for d in info share/info; do \
-               rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
-       done)
-       $(if $(BR2_HAVE_DOCUMENTATION),,for d in doc share/doc; do \
-               rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
-       done)
        $(Q)touch $@
 
 # Clean package