summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYedidyah Bar David <didi@redhat.com>2015-11-18 12:04:00 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2015-11-19 16:05:16 +0100
commita8340649c459351dc97de929c8707804cc4d083d (patch)
tree5a45318db5e54d322763aa1231664846e0d0e3a7
parentf30689a0443670b23cbe4de54cbb9966420d9e7a (diff)
build: Add make dist
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@redhat.com>
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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