summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-10-30 15:56:14 +0200
committerHans de Goede <hdegoede@redhat.com>2010-10-30 15:56:14 +0200
commit0169804d8343c7891c8937058f4724e656686c28 (patch)
treeb5dd749274cc9af918388a0cfe16775f617d59cb
parent986bf96b49753e849b8162e8557d8cef980e8c59 (diff)
Add archive Makefile target
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dc48046..5a84cf6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+VERSION = 0.6.3
DESTDIR ?=
sbindir ?= /sbin
@@ -37,3 +38,13 @@ spice-vdagentd: vdagentd.o vdagentd-uinput.o udscs.o vdagent-virtio-port.o conso
spice-vdagent: vdagent.o vdagent-x11.o udscs.o
$(CC) -o $@ $^ -lX11 -lXrandr -lXfixes
+
+tag:
+ @git tag -a -m "Tag as spice-vdagent-$(VERSION)" spice-vdagent-$(VERSION)
+ @echo "Tagged as spice-vdagent-$(VERSION)"
+
+archive-no-tag:
+ @git archive --format=tar --prefix=spice-vdagent-$(VERSION)/ spice-vdagent-$(VERSION) > spice-vdagent-$(VERSION).tar
+ @bzip2 -f spice-vdagent-$(VERSION).tar
+
+archive: clean tag archive-no-tag