From 42e1d8e3b2705b60e3aee900579d569e9fa44300 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Wed, 27 Jun 2018 18:30:49 +0300 Subject: Packages: tar building functionality moved into pkg/Makefile. --- pkg/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/Makefile b/pkg/Makefile index 5b0a9e97..f5cfd3c2 100644 --- a/pkg/Makefile +++ b/pkg/Makefile @@ -6,7 +6,14 @@ VERSION ?= $(shell grep 'define NXT_VERSION' ../src/nxt_main.h \ RELEASE ?= 1 default: - @echo "available targets: rpm deb docker" + @echo "available targets: dist rpm deb docker" + +dist: + rm -f unit-$(VERSION).tar.gz + hg archive unit-$(VERSION).tar.gz \ + -r $(VERSION) \ + -p unit-$(VERSION) \ + -X "../.hg*" -X "../pkg/" -X "../docs/" rpm: @cd rpm && VERSION=$(VERSION) RELEASE=$(RELEASE) make all -- cgit