[Spice-devel] [NSIS 10/13] build: Add make dist

Yedidyah Bar David didi at redhat.com
Thu Nov 19 06:48:20 PST 2015


From: Christophe Fergeau <cfergeau at redhat.com>

Some magic as we want to ship a generated .spec file in addition to the
files from the git repository.

Change-Id: I90d905697aa4f9092c65810467cd88dc611ed003
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 55dae00..22f44e5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 NAME=spice-nsis
 VERSION=0.103
 DISPLAYED_VERSION=$(VERSION)
+ARCHIVE=$(NAME)-$(VERSION).tar.gz
 
 # set to OVIRT to build the ovirt guest tools installer
 MODE=SPICE
@@ -155,3 +156,6 @@ clean:
 GENERATED = \
 	ovirt-guest-tools-iso.spec \
 	$(NULL)
+
+dist: ovirt-guest-tools-iso.spec
+	git ls-files | tar --files-from /proc/self/fd/0 -czf "$(ARCHIVE)" --owner=root --group=root --transform 's,^,$(NAME)/,' ovirt-guest-tools-iso.spec
-- 
2.1.4



More information about the Spice-devel mailing list