summaryrefslogtreecommitdiff
path: root/package/fakeroot
diff options
context:
space:
mode:
Diffstat (limited to 'package/fakeroot')
-rw-r--r--package/fakeroot/fakeroot.mk20
1 files changed, 14 insertions, 6 deletions
diff --git a/package/fakeroot/fakeroot.mk b/package/fakeroot/fakeroot.mk
index 15eb0ef17..546f2fd6b 100644
--- a/package/fakeroot/fakeroot.mk
+++ b/package/fakeroot/fakeroot.mk
@@ -87,8 +87,8 @@ $(FAKEROOT_DIR2)/.configured: $(FAKEROOT_SOURCE_DIR)/.unpacked
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
$(DISABLE_NLS) \
)
touch $@
@@ -99,10 +99,18 @@ $(FAKEROOT_DIR2)/faked: $(FAKEROOT_DIR2)/.configured
$(TARGET_DIR)/usr/bin/fakeroot: $(FAKEROOT_DIR2)/faked
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(FAKEROOT_DIR2) install
- -mv $(TARGET_DIR)/usr/bin/$(ARCH)-linux-faked $(TARGET_DIR)/usr/bin/faked
- -mv $(TARGET_DIR)/usr/bin/$(ARCH)-linux-fakeroot $(TARGET_DIR)/usr/bin/fakeroot
- rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
- $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
+ -mv $(TARGET_DIR)/usr/bin/$(ARCH)-linux-faked \
+ $(TARGET_DIR)/usr/bin/faked
+ -mv $(TARGET_DIR)/usr/bin/$(ARCH)-linux-fakeroot \
+ $(TARGET_DIR)/usr/bin/fakeroot
+ifneq ($(BR2_HAVE_INFOPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/share/info
+endif
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -rf $(TARGET_DIR)/usr/share/man
+endif
+ rm -rf $(TARGET_DIR)/share/locale
+ rm -rf $(TARGET_DIR)/usr/share/doc
touch -c $@
fakeroot: uclibc $(TARGET_DIR)/usr/bin/fakeroot