From e4c6340a949f64e6fc0294a1e41cf05dbaa82df9 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 17 Sep 2007 12:30:31 +0000 Subject: - cleanup and fixes (Cristian Ionescu-Idbohrn) --- package/iptables/iptables.mk | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'package/iptables') diff --git a/package/iptables/iptables.mk b/package/iptables/iptables.mk index 3aa271b67..4702bee7f 100644 --- a/package/iptables/iptables.mk +++ b/package/iptables/iptables.mk @@ -26,17 +26,25 @@ $(IPTABLES_BUILD_DIR)/.configured: $(IPTABLES_BUILD_DIR)/.unpacked $(IPTABLES_BUILD_DIR)/iptables: $(IPTABLES_BUILD_DIR)/.configured $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(IPTABLES_BUILD_DIR) \ - KERNEL_DIR=$(LINUX_HEADERS_DIR) PREFIX=/usr \ - COPT_FLAGS="$(TARGET_CFLAGS)" + KERNEL_DIR=$(LINUX_HEADERS_DIR) \ + COPT_FLAGS="$(TARGET_CFLAGS)" \ + PREFIX=/usr \ + INCDIR="\$$(PREFIX)/include" \ + MANDIR="\$$(PREFIX)/share/man" $(TARGET_DIR)/usr/sbin/iptables: $(IPTABLES_BUILD_DIR)/iptables $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(IPTABLES_BUILD_DIR) \ - KERNEL_DIR=$(LINUX_HEADERS_DIR) PREFIX=/usr \ + KERNEL_DIR=$(LINUX_HEADERS_DIR) \ COPT_FLAGS="$(TARGET_CFLAGS)" \ + PREFIX=/usr \ + INCDIR="\$$(PREFIX)/include" \ + MANDIR="\$$(PREFIX)/share/man" \ DESTDIR=$(TARGET_DIR) install $(STRIP) $(TARGET_DIR)/usr/sbin/iptables* $(STRIP) $(TARGET_DIR)/usr/lib/iptables/*.so - rm -rf $(TARGET_DIR)/usr/man +ifneq ($(BR2_HAVE_MANPAGES),y) + rm -rf $(TARGET_DIR)/usr/share/man +endif iptables: $(TARGET_DIR)/usr/sbin/iptables -- cgit v1.2.3