commit 68f780da4dc89573c7c5ed635b65e1053ae0cc01 parent 543a334f36c00026030c1b92ca0eab5fe609da4a Author: Jordan Ritter <jpr5@darkridge.com> Date: Thu, 30 Jun 2005 16:12:45 +0000 add tardist target Diffstat:
M | Makefile.in | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/Makefile.in b/Makefile.in @@ -54,6 +54,26 @@ install: $(TARGET) clean: rm -f *~ $(OBJS) $(REGEX_OBJS) $(TARGET) $(TARGET).static +tardist: + @( VERSION=`perl -ne '/VERSION\s+"(.*)"/ && print "$$1\n"' ngrep.h` ; \ + PKG="ngrep-$$VERSION" ; \ + TMPDIR="/tmp" ; \ + DESTDIR="$$TMPDIR/$$PKG" ; \ + echo ; \ + echo "Building package $$PKG ... " ; \ + echo ; \ + sleep 2 ; \ + rm -rf $$DESTDIR && mkdir $$DESTDIR && \ + make distclean && \ + tar cf - . --exclude "CVS" | tar xf - -C $$DESTDIR && \ + find $$DESTDIR -name "*~" -o -name "*#*" | xargs rm -f && \ + cd $$TMPDIR && tar jcf $$PKG.tar.bz2 $$PKG ; \ + echo ; \ + ls -l $$TMPDIR/$$PKG.tar.bz2 ; \ + echo ; \ + ) + + distclean: clean clean-$(REGEX_TARGET) rm -f config.status config.cache config.log config.h Makefile