summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2020-03-13 17:42:08 +0300
committerKonstantin Pavlov <thresh@nginx.com>2020-03-13 17:42:08 +0300
commit3b94102f20290da2d272de651a616794000f9c81 (patch)
tree8f88751db8a07c1ce4a5fc9b0ab181d71eb7a185
parent7181a661c5db59a40ba6b3ad0a3d8a571ad10877 (diff)
downloadunit-3b94102f20290da2d272de651a616794000f9c81.tar.gz
unit-3b94102f20290da2d272de651a616794000f9c81.tar.bz2
Added checksum generation to make dist target.
While at it, clean up dist artifacts on make clean.
-rw-r--r--pkg/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/Makefile b/pkg/Makefile
index 7926606d..15ff075d 100644
--- a/pkg/Makefile
+++ b/pkg/Makefile
@@ -1,6 +1,7 @@
#!/usr/bin/make
include ../version
+include shasum.mak
VERSION ?= $(NXT_VERSION)
RELEASE ?= 1
@@ -14,6 +15,7 @@ dist:
-r $(VERSION) \
-p unit-$(VERSION) \
-X "../.hg*" -X "../pkg/" -X "../docs/"
+ $(SHA512SUM) unit-$(VERSION).tar.gz > unit-$(VERSION).tar.gz.sha512
rpm:
@cd rpm && VERSION=$(VERSION) RELEASE=$(RELEASE) make all
@@ -32,5 +34,7 @@ clean:
@cd deb && make clean
@cd docker && make clean
@cd npm && make clean
+ rm -f unit-$(VERSION).tar.gz
+ rm -f unit-$(VERSION).tar.gz.sha512
.PHONY: default rpm deb docker npm clean