diff options
author | Yedidyah Bar David <didi@redhat.com> | 2015-11-18 12:04:00 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2015-11-19 16:05:16 +0100 |
commit | a8340649c459351dc97de929c8707804cc4d083d (patch) | |
tree | 5a45318db5e54d322763aa1231664846e0d0e3a7 | |
parent | f30689a0443670b23cbe4de54cbb9966420d9e7a (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-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |