diff options
author | Thomas Habets <thomas@habets.pp.se> | 2008-08-08 20:31:29 +0200 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2008-08-08 20:31:29 +0200 |
commit | 060ce19c151052be591fb2a6b4e234275e878511 (patch) | |
tree | 8480bb7af0104491c75d48fcebb1306f8de582bb | |
parent | c2b53ca24321026e9a38f9894acdc11563e89669 (diff) | |
download | arping-060ce19c151052be591fb2a6b4e234275e878511.tar.gz |
Gittified 'make dist'
-rw-r--r-- | Makefile | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -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) |