summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-08-22 15:59:56 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-08-22 15:59:56 +0000
commite3f14912b0bfb9059ca3c7381e4b8ecd4a23a81c (patch)
tree7277e57d2dfc9a99c860a32e045804a6a18fec99 /package
parent7d8e28cc91923de8e032ce9da781f10e4c540b1b (diff)
downloadbuildroot-novena-e3f14912b0bfb9059ca3c7381e4b8ecd4a23a81c.tar.gz
buildroot-novena-e3f14912b0bfb9059ca3c7381e4b8ecd4a23a81c.zip
- honour BR2_HAVE_MANPAGES BR2_HAVE_INFOPAGES, BR2_HAVE_INCLUDES
Diffstat (limited to 'package')
-rw-r--r--package/Makefile.autotools.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in
index 41e466216..0e6e544b2 100644
--- a/package/Makefile.autotools.in
+++ b/package/Makefile.autotools.in
@@ -216,10 +216,16 @@ $(BUILD_DIR)/%/.stamp_staging_installed:
$(BUILD_DIR)/%/.stamp_target_installed:
$(call MESSAGE,"Installing to target")
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_INSTALL_TARGET_OPT) -C $(@D)/$($(PKG)_SUBDIR)
- for d in man include info share/info ; do \
+ $(if $(BR2_HAVE_MANPAGES),,for d in man ; do \
rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d ; \
- done
- find $(TARGET_DIR) -name '*.a' -o -name '*.la' -delete
+ 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_INCLUDES),,for d in include ; do \
+ rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d ; \
+ done)
+ find $(TARGET_DIR) -name '*.la' -delete
touch $@
$(BUILD_DIR)/%/.stamp_cleaned: