summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2008-08-08 20:31:29 +0200
committerThomas Habets <thomas@habets.pp.se>2008-08-08 20:31:29 +0200
commit060ce19c151052be591fb2a6b4e234275e878511 (patch)
tree8480bb7af0104491c75d48fcebb1306f8de582bb
parentc2b53ca24321026e9a38f9894acdc11563e89669 (diff)
downloadarping-060ce19c151052be591fb2a6b4e234275e878511.tar.gz
Gittified 'make dist'
-rw-r--r--Makefile12
1 files 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)