Added the code for xid matching. (The code is not yet enabled)
[ipfw.git] / Makefile
index 69b6481..a35b722 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,9 @@
 # You can run it manually or also under the Planetlab build.
 # Planetlab wants also the 'install' target.
 
+DATE ?= $(shell date +%Y%m%d)
+SNAPSHOT_NAME=ipfw_linux-$(DATE)
+
 _all: all
 
 all clean distclean:
@@ -10,4 +13,11 @@ all clean distclean:
        (cd ipfw && $(MAKE) $(@) )
        (cd dummynet && $(MAKE) $(@) )
 
+snapshot:
+       -ln -s `pwd` /tmp/$(SNAPSHOT_NAME)
+       (cd /tmp; tar cvzhf $(SNAPSHOT_NAME).tgz --exclude .svn \
+               --exclude README.openwrt --exclude tags --exclude NOTES \
+               $(SNAPSHOT_NAME) )
+       -rm  /tmp/$(SNAPSHOT_NAME)
+
 install: