[CRIU] [PATCH 1/4] Makefile: add tar and dist targets
Kir Kolyshkin
kir at openvz.org
Tue Apr 30 16:25:06 EDT 2013
...using "git archive" command line from Pavel.
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Makefile b/Makefile
index c41f289..5cc5fb7 100644
--- a/Makefile
+++ b/Makefile
@@ -196,6 +196,13 @@ cscope:
docs:
$(Q) $(MAKE) -s -C Documentation all
+dist: tar
+tar: criu-$(CRTOOLSVERSION).tar.bz2
+criu-$(CRTOOLSVERSION).tar.bz2:
+ git archive --format tar --prefix 'criu-$(CRTOOLSVERSION)/' \
+ v$(CRTOOLSVERSION) | bzip2 > $@
+.PHONY: dist tar
+
help:
$(E) ' Targets:'
$(E) ' all - Build all [*] targets'
--
1.8.1.4
More information about the CRIU
mailing list