]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
added RELEASE_DIR v1.2.3
authorHarald Welte <laforge@gnumonks.org>
Sun, 2 Sep 2001 16:07:33 +0000 (16:07 +0000)
committerHarald Welte <laforge@gnumonks.org>
Sun, 2 Sep 2001 16:07:33 +0000 (16:07 +0000)
Makefile

index 8a6def2657c5d8d79031c98597017df4c7eb0e76..0990174adfbb1c6acc88766adce6a7ca5d8e2f72 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
-# Standard part of Makefile for topdir.
-TOPLEVEL_INCLUDED=YES
+
 
 # uncomment this to get a fully statically linked version
 # NO_SHARED_LIBS = 1
 
+######################################################################
+# YOU SHOULD NOT NEED TO TOUCH ANYTHING BELOW THIS LINE
+######################################################################
+
+# Standard part of Makefile for topdir.
+TOPLEVEL_INCLUDED=YES
+
 ifndef KERNEL_DIR
 KERNEL_DIR=/usr/src/linux
 endif
@@ -24,6 +30,9 @@ BINDIR:=/usr/local/sbin
 MANDIR:=/usr/local/man
 INCDIR:=/usr/local/include
 
+# directory for new iptables releases
+RELEASE_DIR:=/tmp
+
 # Need libc6 for this.  FIXME: Should covert to autoconf.
 ifeq ($(shell [ -f /usr/include/netinet/ip6.h ] && echo YES), YES)
 DO_IPV6=1
@@ -183,7 +192,7 @@ most-of-pom:
 
 # Rusty's distro magic.
 .PHONY: distrib
-distrib: check distclean delrelease /home/public/netfilter/iptables-$(NETFILTER_VERSION).tar.bz2 diff md5sums # nowhitespace
+distrib: check distclean delrelease $(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2 diff md5sums # nowhitespace
 
 # Makefile must not define:
 # -g -pg
@@ -199,21 +208,21 @@ nowhitespace:
 
 .PHONY: delrelease
 delrelease:
-       rm -f /home/public/netfilter/iptables-$(NETFILTER_VERSION).tar.bz2
+       rm -f $(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2
 
-/home/public/netfilter/iptables-$(NETFILTER_VERSION).tar.bz2:
+$(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2:
        cd .. && ln -sf userspace iptables-$(NETFILTER_VERSION) && tar cvf - --exclude CVS iptables-$(NETFILTER_VERSION)/. | bzip2 -9 > $@ && rm iptables-$(NETFILTER_VERSION)
 
 .PHONY: diff
-diff: /home/public/netfilter/iptables-$(NETFILTER_VERSION).tar.bz2
+diff: $(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2
        @mkdir /tmp/diffdir
-       @cd /tmp/diffdir && tar -x --bzip2 -f /home/public/netfilter/iptables-$(NETFILTER_VERSION).tar.bz2
-       @set -e; cd /tmp/diffdir; tar -x --bzip2 -f /home/public/netfilter/iptables-$(OLD_NETFILTER_VERSION).tar.bz2; echo Creating patch-iptables-$(OLD_NETFILTER_VERSION)-$(NETFILTER_VERSION).bz2; diff -urN iptables-$(OLD_NETFILTER_VERSION) iptables-$(NETFILTER_VERSION) | bzip2 -9 > /home/public/netfilter/patch-iptables-$(OLD_NETFILTER_VERSION)-$(NETFILTER_VERSION).bz2
+       @cd /tmp/diffdir && tar -x --bzip2 -f $(RELEASE_DIR)/iptables-$(NETFILTER_VERSION).tar.bz2
+       @set -e; cd /tmp/diffdir; tar -x --bzip2 -f $(RELEASE_DIR)/iptables-$(OLD_NETFILTER_VERSION).tar.bz2; echo Creating patch-iptables-$(OLD_NETFILTER_VERSION)-$(NETFILTER_VERSION).bz2; diff -urN iptables-$(OLD_NETFILTER_VERSION) iptables-$(NETFILTER_VERSION) | bzip2 -9 > $(RELEASE_DIR)/patch-iptables-$(OLD_NETFILTER_VERSION)-$(NETFILTER_VERSION).bz2
        @rm -rf /tmp/diffdir
 
 .PHONY: md5sums
 md5sums:
-       cd /home/public/netfilter/ && md5sum patch-iptables-*-$(NETFILTER_VERSION).bz2 iptables-$(NETFILTER_VERSION).tar.bz2
+       cd $(RELEASE_DIR)/ && md5sum patch-iptables-*-$(NETFILTER_VERSION).bz2 iptables-$(NETFILTER_VERSION).tar.bz2
 
 # $(wildcard) fails wierdly with make v.3.78.1.
 include $(shell echo */Makefile)