diff options
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -5,7 +5,7 @@ ###################################################################### ifndef KERNEL_DIR -KERNEL_DIR=/usr/src/linux +KERNEL_DIR=/lib/modules/`uname -r`/build endif ifndef KBUILD_OUTPUT KBUILD_OUTPUT=$(KERNEL_DIR) @@ -105,6 +105,11 @@ clean: $(EXTRA_CLEANS) rm -rf $(PROGRAMS) $(SHARED_LIBS) *.o *~ tests/*~ [ -f $(KERNEL_DIR)/net/ipv4/netfilter/Config.in ] || (cd kernel; make -C $(KERNEL_DIR) M=`pwd` clean) +release: clean + cp -a . /tmp/ipset-$(IPSET_VERSION) + tar cjf ../ipset-$(IPSET_VERSION).tar.bz2 -C /tmp --exclude=.git ipset-$(IPSET_VERSION) + rm -rf /tmp/ipset-$(IPSET_VERSION) + #The ipset(8) self ipset.o: ipset.c ipset.h $(CC) $(CFLAGS) -DIPSET_VERSION=\"$(IPSET_VERSION)\" -DIPSET_LIB_DIR=\"$(IPSET_LIB_DIR)\" -c -o $@ $< |