2017-10-19 15:23:31 +00:00
|
|
|
#!/usr/bin/make
|
|
|
|
|
2019-02-22 13:31:44 +00:00
|
|
|
include ../version
|
2020-03-13 14:42:08 +00:00
|
|
|
include shasum.mak
|
2017-10-19 15:23:31 +00:00
|
|
|
|
2019-02-22 13:31:44 +00:00
|
|
|
VERSION ?= $(NXT_VERSION)
|
2017-10-19 15:23:31 +00:00
|
|
|
RELEASE ?= 1
|
|
|
|
|
|
|
|
default:
|
2018-10-23 10:06:44 +00:00
|
|
|
@echo "available targets: dist rpm deb docker npm"
|
2018-06-27 15:30:49 +00:00
|
|
|
|
|
|
|
dist:
|
|
|
|
rm -f unit-$(VERSION).tar.gz
|
2024-02-16 06:12:03 +00:00
|
|
|
cd .. && git archive \
|
|
|
|
--output pkg/unit-$(VERSION).tar.gz \
|
|
|
|
--prefix unit-$(VERSION)/ \
|
|
|
|
--worktree-attributes \
|
|
|
|
$(VERSION) ./
|
2020-03-13 14:42:08 +00:00
|
|
|
$(SHA512SUM) unit-$(VERSION).tar.gz > unit-$(VERSION).tar.gz.sha512
|
2017-10-19 15:23:31 +00:00
|
|
|
|
|
|
|
rpm:
|
|
|
|
@cd rpm && VERSION=$(VERSION) RELEASE=$(RELEASE) make all
|
|
|
|
|
2017-10-19 15:23:32 +00:00
|
|
|
deb:
|
|
|
|
@cd deb && VERSION=$(VERSION) RELEASE=$(RELEASE) make all
|
|
|
|
|
2018-01-30 14:20:28 +00:00
|
|
|
docker:
|
|
|
|
@cd docker && VERSION=$(VERSION) RELEASE=$(RELEASE) make all
|
|
|
|
|
2018-10-23 10:06:44 +00:00
|
|
|
npm:
|
|
|
|
@cd npm && VERSION=$(VERSION) RELEASE=$(RELEASE) make all
|
|
|
|
|
2022-11-29 14:12:54 +00:00
|
|
|
njs:
|
|
|
|
@cd contrib && make .njs
|
|
|
|
|
2017-10-19 15:23:31 +00:00
|
|
|
clean:
|
|
|
|
@cd rpm && make clean
|
2017-10-19 15:23:32 +00:00
|
|
|
@cd deb && make clean
|
2018-01-30 14:20:28 +00:00
|
|
|
@cd docker && make clean
|
2018-10-23 10:06:44 +00:00
|
|
|
@cd npm && make clean
|
2022-11-29 14:12:54 +00:00
|
|
|
@cd contrib && make clean
|
2020-03-13 14:42:08 +00:00
|
|
|
rm -f unit-$(VERSION).tar.gz
|
|
|
|
rm -f unit-$(VERSION).tar.gz.sha512
|
2017-10-19 15:23:31 +00:00
|
|
|
|
2018-10-23 10:06:44 +00:00
|
|
|
.PHONY: default rpm deb docker npm clean
|