From 0169804d8343c7891c8937058f4724e656686c28 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 30 Oct 2010 15:56:14 +0200 Subject: Add archive Makefile target --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3