From b94047e42f1be50531bed317e60a68127c1dcf9d Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 30 Apr 2013 13:25:06 -0700 Subject: [PATCH] Makefile: add tar and dist targets ...using "git archive" command line from Pavel. Signed-off-by: Kir Kolyshkin Signed-off-by: Pavel Emelyanov --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index c41f289a5..5cc5fb7bc 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'