From 060ce19c151052be591fb2a6b4e234275e878511 Mon Sep 17 00:00:00 2001 From: Thomas Habets Date: Fri, 8 Aug 2008 20:31:29 +0200 Subject: Gittified 'make dist' --- Makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index d806f16..b483543 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ CD=cd CP=cp TAR=tar GPG=gpg +GIT=git MAKE=make RM=rm SUDO=sudo @@ -117,14 +118,9 @@ V=$(shell grep version arping-2/arping.c|grep const|sed 's:[a-z =]*::;s:f;::') DFILE=arping-$(V).tar.gz DDIR=arping-$(V) dist: - ($(CD) ..; \ - $(CP) -ax arping $(DDIR); \ - $(RM) -fr $(DDIR)/{.\#*,CVS,.svn,*~} \ - $(DDIR)/arping-2/{.\#*,CVS,.svn,*~}; \ - $(MAKE) -C $(DDIR) doc; \ - $(TAR) cfz $(DFILE) $(DDIR); \ - $(GPG) -b -a $(DFILE); \ - ) + $(GIT) archive --format=tar --prefix=arping-$(V)/ arping-$(V) | gzip -9 > arping-$(V).tar.gz + $(GPG) -b -a $(DFILE) + test: arping2 @echo Testing with destination host=$(HOST) and MAC=$(MAC) @echo IF=$(IF) -- cgit v1.2.1