summaryrefslogtreecommitdiffstats
path: root/package/gzip
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-17 12:30:31 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-17 12:30:31 +0000
commite4c6340a949f64e6fc0294a1e41cf05dbaa82df9 (patch)
tree12a7f94b8461feec5eb1ad87481ddb06eb6834f8 /package/gzip
parentb14ff970126831720990961f0a7e2fd5f019365d (diff)
downloadbuildroot-novena-e4c6340a949f64e6fc0294a1e41cf05dbaa82df9.tar.gz
buildroot-novena-e4c6340a949f64e6fc0294a1e41cf05dbaa82df9.zip
- cleanup and fixes (Cristian Ionescu-Idbohrn)
Diffstat (limited to 'package/gzip')
-rw-r--r--package/gzip/gzip.mk25
1 files changed, 16 insertions, 9 deletions
diff --git a/package/gzip/gzip.mk b/package/gzip/gzip.mk
index 201e874ca..4aae26aa0 100644
--- a/package/gzip/gzip.mk
+++ b/package/gzip/gzip.mk
@@ -38,8 +38,8 @@ $(GZIP_DIR)/.configured: $(GZIP_DIR)/.unpacked
--sysconfdir=/etc \
--datadir=/usr/share/misc \
--localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
)
@@ -50,14 +50,21 @@ $(GZIP_BINARY): $(GZIP_DIR)/.configured
$(GZIP_TARGET_BINARY): $(GZIP_BINARY)
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GZIP_DIR) install
- rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
- $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
+ifneq ($(BR2_HAVE_INFOPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/info
+endif
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/man
+endif
+ rm -rf $(TARGET_DIR)/share/locale
+ rm -rf $(TARGET_DIR)/usr/share/doc
(cd $(TARGET_DIR)/bin; \
- $(HOSTLN) -snf gzip gunzip; \
- $(HOSTLN) -snf gzip zcat; \
- $(HOSTLN) -snf zdiff zcmp; \
- $(HOSTLN) -snf zgrep zegrep; \
- $(HOSTLN) -snf zgrep zfgrep;)
+ $(HOSTLN) -snf gzip gunzip; \
+ $(HOSTLN) -snf gzip zcat; \
+ $(HOSTLN) -snf zdiff zcmp; \
+ $(HOSTLN) -snf zgrep zegrep; \
+ $(HOSTLN) -snf zgrep zfgrep; \
+ )
gzip: uclibc $(GZIP_TARGET_BINARY)