summaryrefslogtreecommitdiff
path: root/package/iptables
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/iptables
parentb14ff970126831720990961f0a7e2fd5f019365d (diff)
- cleanup and fixes (Cristian Ionescu-Idbohrn)
Diffstat (limited to 'package/iptables')
-rw-r--r--package/iptables/iptables.mk16
1 files changed, 12 insertions, 4 deletions
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