Makefile: localize parallel make to release, release-victoria-logs and crossbuild commands

This is a follow-up for 81ddee4f3a
This commit is contained in:
Aliaksandr Valialkin 2023-11-20 23:15:07 +02:00
parent 81ddee4f3a
commit ba803a7cd2
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -56,8 +56,8 @@ package: \
package-vmrestore \
package-vmctl
vmutils:
$(MAKE_PARALLEL) vmagent \
vmutils: \
vmagent \
vmalert \
vmalert-tool \
vmauth \
@ -65,8 +65,8 @@ vmutils:
vmrestore \
vmctl
vmutils-pure:
$(MAKE_PARALLEL) vmagent-pure \
vmutils-pure: \
vmagent-pure \
vmalert-pure \
vmalert-tool-pure \
vmauth-pure \
@ -74,8 +74,8 @@ vmutils-pure:
vmrestore-pure \
vmctl-pure
vmutils-linux-amd64:
$(MAKE_PARALLEL) vmagent-linux-amd64 \
vmutils-linux-amd64: \
vmagent-linux-amd64 \
vmalert-linux-amd64 \
vmalert-tool-linux-amd64 \
vmauth-linux-amd64 \
@ -83,8 +83,8 @@ vmutils-linux-amd64:
vmrestore-linux-amd64 \
vmctl-linux-amd64
vmutils-linux-arm64:
$(MAKE_PARALLEL) vmagent-linux-arm64 \
vmutils-linux-arm64: \
vmagent-linux-arm64 \
vmalert-linux-arm64 \
vmalert-tool-linux-arm64 \
vmauth-linux-arm64 \
@ -92,8 +92,8 @@ vmutils-linux-arm64:
vmrestore-linux-arm64 \
vmctl-linux-arm64
vmutils-linux-arm:
$(MAKE_PARALLEL) vmagent-linux-arm \
vmutils-linux-arm: \
vmagent-linux-arm \
vmalert-linux-arm \
vmalert-tool-linux-arm \
vmauth-linux-arm \
@ -101,8 +101,8 @@ vmutils-linux-arm:
vmrestore-linux-arm \
vmctl-linux-arm
vmutils-linux-386:
$(MAKE_PARALLEL) vmagent-linux-386 \
vmutils-linux-386: \
vmagent-linux-386 \
vmalert-linux-386 \
vmalert-tool-linux-386 \
vmauth-linux-386 \
@ -110,8 +110,8 @@ vmutils-linux-386:
vmrestore-linux-386 \
vmctl-linux-386
vmutils-linux-ppc64le:
$(MAKE_PARALLEL) vmagent-linux-ppc64le \
vmutils-linux-ppc64le: \
vmagent-linux-ppc64le \
vmalert-linux-ppc64le \
vmalert-tool-linux-ppc64le \
vmauth-linux-ppc64le \
@ -119,8 +119,8 @@ vmutils-linux-ppc64le:
vmrestore-linux-ppc64le \
vmctl-linux-ppc64le
vmutils-darwin-amd64:
$(MAKE_PARALLEL) vmagent-darwin-amd64 \
vmutils-darwin-amd64: \
vmagent-darwin-amd64 \
vmalert-darwin-amd64 \
vmalert-tool-darwin-amd64 \
vmauth-darwin-amd64 \
@ -128,8 +128,8 @@ vmutils-darwin-amd64:
vmrestore-darwin-amd64 \
vmctl-darwin-amd64
vmutils-darwin-arm64:
$(MAKE_PARALLEL) vmagent-darwin-arm64 \
vmutils-darwin-arm64: \
vmagent-darwin-arm64 \
vmalert-darwin-arm64 \
vmalert-tool-darwin-arm64 \
vmauth-darwin-arm64 \
@ -137,8 +137,8 @@ vmutils-darwin-arm64:
vmrestore-darwin-arm64 \
vmctl-darwin-arm64
vmutils-freebsd-amd64:
$(MAKE_PARALLEL) vmagent-freebsd-amd64 \
vmutils-freebsd-amd64: \
vmagent-freebsd-amd64 \
vmalert-freebsd-amd64 \
vmalert-tool-freebsd-amd64 \
vmauth-freebsd-amd64 \
@ -146,8 +146,8 @@ vmutils-freebsd-amd64:
vmrestore-freebsd-amd64 \
vmctl-freebsd-amd64
vmutils-openbsd-amd64:
$(MAKE_PARALLEL) vmagent-openbsd-amd64 \
vmutils-openbsd-amd64: \
vmagent-openbsd-amd64 \
vmalert-openbsd-amd64 \
vmalert-tool-openbsd-amd64 \
vmauth-openbsd-amd64 \
@ -155,8 +155,8 @@ vmutils-openbsd-amd64:
vmrestore-openbsd-amd64 \
vmctl-openbsd-amd64
vmutils-windows-amd64:
$(MAKE_PARALLEL) vmagent-windows-amd64 \
vmutils-windows-amd64: \
vmagent-windows-amd64 \
vmalert-windows-amd64 \
vmalert-tool-windows-amd64 \
vmauth-windows-amd64 \
@ -164,10 +164,11 @@ vmutils-windows-amd64:
vmrestore-windows-amd64 \
vmctl-windows-amd64
crossbuild: victoria-metrics-crossbuild vmutils-crossbuild
crossbuild:
$(MAKE_PARALLEL) victoria-metrics-crossbuild vmutils-crossbuild
victoria-metrics-crossbuild:
$(MAKE_PARALLEL) victoria-metrics-linux-386 \
victoria-metrics-crossbuild: \
victoria-metrics-linux-386 \
victoria-metrics-linux-amd64 \
victoria-metrics-linux-arm64 \
victoria-metrics-linux-arm \
@ -178,9 +179,8 @@ victoria-metrics-crossbuild:
victoria-metrics-freebsd-amd64 \
victoria-metrics-openbsd-amd64
vmutils-crossbuild:
# Do not use MAKE_PARALLEL, since every vmutils-* target already runs in parallel
$(MAKE) vmutils-linux-386 \
vmutils-crossbuild: \
vmutils-linux-386 \
vmutils-linux-amd64 \
vmutils-linux-arm64 \
vmutils-linux-arm \
@ -199,12 +199,13 @@ publish-release:
git checkout $(TAG)-enterprise && $(MAKE) release && LATEST_TAG=enterprise-stable $(MAKE) publish && \
git checkout $(TAG)-enterprise-cluster && $(MAKE) release && LATEST_TAG=enterprise-cluster-stable $(MAKE) publish
release: \
release:
$(MAKE_PARALLEL) \
release-victoria-metrics \
release-vmutils
release-victoria-metrics:
$(MAKE_PARALLEL) release-victoria-metrics-linux-386 \
release-victoria-metrics: \
release-victoria-metrics-linux-386 \
release-victoria-metrics-linux-amd64 \
release-victoria-metrics-linux-arm \
release-victoria-metrics-linux-arm64 \
@ -317,8 +318,8 @@ release-victoria-logs-windows-goarch: victoria-logs-windows-$(GOARCH)-prod
cd bin && rm -rf \
victoria-logs-windows-$(GOARCH)-prod.exe
release-vmutils:
$(MAKE_PARALLEL) release-vmutils-linux-386 \
release-vmutils: \
release-vmutils-linux-386 \
release-vmutils-linux-amd64 \
release-vmutils-linux-arm64 \
release-vmutils-linux-arm \