mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Makefile: localize parallel make to release
, release-victoria-logs
and crossbuild
commands
This is a follow-up for 81ddee4f3a
This commit is contained in:
parent
81ddee4f3a
commit
ba803a7cd2
1 changed files with 145 additions and 144 deletions
289
Makefile
289
Makefile
|
@ -56,141 +56,141 @@ package: \
|
||||||
package-vmrestore \
|
package-vmrestore \
|
||||||
package-vmctl
|
package-vmctl
|
||||||
|
|
||||||
vmutils:
|
vmutils: \
|
||||||
$(MAKE_PARALLEL) vmagent \
|
vmagent \
|
||||||
vmalert \
|
vmalert \
|
||||||
vmalert-tool \
|
vmalert-tool \
|
||||||
vmauth \
|
vmauth \
|
||||||
vmbackup \
|
vmbackup \
|
||||||
vmrestore \
|
vmrestore \
|
||||||
vmctl
|
vmctl
|
||||||
|
|
||||||
vmutils-pure:
|
vmutils-pure: \
|
||||||
$(MAKE_PARALLEL) vmagent-pure \
|
vmagent-pure \
|
||||||
vmalert-pure \
|
vmalert-pure \
|
||||||
vmalert-tool-pure \
|
vmalert-tool-pure \
|
||||||
vmauth-pure \
|
vmauth-pure \
|
||||||
vmbackup-pure \
|
vmbackup-pure \
|
||||||
vmrestore-pure \
|
vmrestore-pure \
|
||||||
vmctl-pure
|
vmctl-pure
|
||||||
|
|
||||||
vmutils-linux-amd64:
|
vmutils-linux-amd64: \
|
||||||
$(MAKE_PARALLEL) vmagent-linux-amd64 \
|
vmagent-linux-amd64 \
|
||||||
vmalert-linux-amd64 \
|
vmalert-linux-amd64 \
|
||||||
vmalert-tool-linux-amd64 \
|
vmalert-tool-linux-amd64 \
|
||||||
vmauth-linux-amd64 \
|
vmauth-linux-amd64 \
|
||||||
vmbackup-linux-amd64 \
|
vmbackup-linux-amd64 \
|
||||||
vmrestore-linux-amd64 \
|
vmrestore-linux-amd64 \
|
||||||
vmctl-linux-amd64
|
vmctl-linux-amd64
|
||||||
|
|
||||||
vmutils-linux-arm64:
|
vmutils-linux-arm64: \
|
||||||
$(MAKE_PARALLEL) vmagent-linux-arm64 \
|
vmagent-linux-arm64 \
|
||||||
vmalert-linux-arm64 \
|
vmalert-linux-arm64 \
|
||||||
vmalert-tool-linux-arm64 \
|
vmalert-tool-linux-arm64 \
|
||||||
vmauth-linux-arm64 \
|
vmauth-linux-arm64 \
|
||||||
vmbackup-linux-arm64 \
|
vmbackup-linux-arm64 \
|
||||||
vmrestore-linux-arm64 \
|
vmrestore-linux-arm64 \
|
||||||
vmctl-linux-arm64
|
vmctl-linux-arm64
|
||||||
|
|
||||||
vmutils-linux-arm:
|
vmutils-linux-arm: \
|
||||||
$(MAKE_PARALLEL) vmagent-linux-arm \
|
vmagent-linux-arm \
|
||||||
vmalert-linux-arm \
|
vmalert-linux-arm \
|
||||||
vmalert-tool-linux-arm \
|
vmalert-tool-linux-arm \
|
||||||
vmauth-linux-arm \
|
vmauth-linux-arm \
|
||||||
vmbackup-linux-arm \
|
vmbackup-linux-arm \
|
||||||
vmrestore-linux-arm \
|
vmrestore-linux-arm \
|
||||||
vmctl-linux-arm
|
vmctl-linux-arm
|
||||||
|
|
||||||
vmutils-linux-386:
|
vmutils-linux-386: \
|
||||||
$(MAKE_PARALLEL) vmagent-linux-386 \
|
vmagent-linux-386 \
|
||||||
vmalert-linux-386 \
|
vmalert-linux-386 \
|
||||||
vmalert-tool-linux-386 \
|
vmalert-tool-linux-386 \
|
||||||
vmauth-linux-386 \
|
vmauth-linux-386 \
|
||||||
vmbackup-linux-386 \
|
vmbackup-linux-386 \
|
||||||
vmrestore-linux-386 \
|
vmrestore-linux-386 \
|
||||||
vmctl-linux-386
|
vmctl-linux-386
|
||||||
|
|
||||||
vmutils-linux-ppc64le:
|
vmutils-linux-ppc64le: \
|
||||||
$(MAKE_PARALLEL) vmagent-linux-ppc64le \
|
vmagent-linux-ppc64le \
|
||||||
vmalert-linux-ppc64le \
|
vmalert-linux-ppc64le \
|
||||||
vmalert-tool-linux-ppc64le \
|
vmalert-tool-linux-ppc64le \
|
||||||
vmauth-linux-ppc64le \
|
vmauth-linux-ppc64le \
|
||||||
vmbackup-linux-ppc64le \
|
vmbackup-linux-ppc64le \
|
||||||
vmrestore-linux-ppc64le \
|
vmrestore-linux-ppc64le \
|
||||||
vmctl-linux-ppc64le
|
vmctl-linux-ppc64le
|
||||||
|
|
||||||
vmutils-darwin-amd64:
|
vmutils-darwin-amd64: \
|
||||||
$(MAKE_PARALLEL) vmagent-darwin-amd64 \
|
vmagent-darwin-amd64 \
|
||||||
vmalert-darwin-amd64 \
|
vmalert-darwin-amd64 \
|
||||||
vmalert-tool-darwin-amd64 \
|
vmalert-tool-darwin-amd64 \
|
||||||
vmauth-darwin-amd64 \
|
vmauth-darwin-amd64 \
|
||||||
vmbackup-darwin-amd64 \
|
vmbackup-darwin-amd64 \
|
||||||
vmrestore-darwin-amd64 \
|
vmrestore-darwin-amd64 \
|
||||||
vmctl-darwin-amd64
|
vmctl-darwin-amd64
|
||||||
|
|
||||||
vmutils-darwin-arm64:
|
vmutils-darwin-arm64: \
|
||||||
$(MAKE_PARALLEL) vmagent-darwin-arm64 \
|
vmagent-darwin-arm64 \
|
||||||
vmalert-darwin-arm64 \
|
vmalert-darwin-arm64 \
|
||||||
vmalert-tool-darwin-arm64 \
|
vmalert-tool-darwin-arm64 \
|
||||||
vmauth-darwin-arm64 \
|
vmauth-darwin-arm64 \
|
||||||
vmbackup-darwin-arm64 \
|
vmbackup-darwin-arm64 \
|
||||||
vmrestore-darwin-arm64 \
|
vmrestore-darwin-arm64 \
|
||||||
vmctl-darwin-arm64
|
vmctl-darwin-arm64
|
||||||
|
|
||||||
vmutils-freebsd-amd64:
|
vmutils-freebsd-amd64: \
|
||||||
$(MAKE_PARALLEL) vmagent-freebsd-amd64 \
|
vmagent-freebsd-amd64 \
|
||||||
vmalert-freebsd-amd64 \
|
vmalert-freebsd-amd64 \
|
||||||
vmalert-tool-freebsd-amd64 \
|
vmalert-tool-freebsd-amd64 \
|
||||||
vmauth-freebsd-amd64 \
|
vmauth-freebsd-amd64 \
|
||||||
vmbackup-freebsd-amd64 \
|
vmbackup-freebsd-amd64 \
|
||||||
vmrestore-freebsd-amd64 \
|
vmrestore-freebsd-amd64 \
|
||||||
vmctl-freebsd-amd64
|
vmctl-freebsd-amd64
|
||||||
|
|
||||||
vmutils-openbsd-amd64:
|
vmutils-openbsd-amd64: \
|
||||||
$(MAKE_PARALLEL) vmagent-openbsd-amd64 \
|
vmagent-openbsd-amd64 \
|
||||||
vmalert-openbsd-amd64 \
|
vmalert-openbsd-amd64 \
|
||||||
vmalert-tool-openbsd-amd64 \
|
vmalert-tool-openbsd-amd64 \
|
||||||
vmauth-openbsd-amd64 \
|
vmauth-openbsd-amd64 \
|
||||||
vmbackup-openbsd-amd64 \
|
vmbackup-openbsd-amd64 \
|
||||||
vmrestore-openbsd-amd64 \
|
vmrestore-openbsd-amd64 \
|
||||||
vmctl-openbsd-amd64
|
vmctl-openbsd-amd64
|
||||||
|
|
||||||
vmutils-windows-amd64:
|
vmutils-windows-amd64: \
|
||||||
$(MAKE_PARALLEL) vmagent-windows-amd64 \
|
vmagent-windows-amd64 \
|
||||||
vmalert-windows-amd64 \
|
vmalert-windows-amd64 \
|
||||||
vmalert-tool-windows-amd64 \
|
vmalert-tool-windows-amd64 \
|
||||||
vmauth-windows-amd64 \
|
vmauth-windows-amd64 \
|
||||||
vmbackup-windows-amd64 \
|
vmbackup-windows-amd64 \
|
||||||
vmrestore-windows-amd64 \
|
vmrestore-windows-amd64 \
|
||||||
vmctl-windows-amd64
|
vmctl-windows-amd64
|
||||||
|
|
||||||
crossbuild: victoria-metrics-crossbuild vmutils-crossbuild
|
crossbuild:
|
||||||
|
$(MAKE_PARALLEL) victoria-metrics-crossbuild vmutils-crossbuild
|
||||||
|
|
||||||
victoria-metrics-crossbuild:
|
victoria-metrics-crossbuild: \
|
||||||
$(MAKE_PARALLEL) victoria-metrics-linux-386 \
|
victoria-metrics-linux-386 \
|
||||||
victoria-metrics-linux-amd64 \
|
victoria-metrics-linux-amd64 \
|
||||||
victoria-metrics-linux-arm64 \
|
victoria-metrics-linux-arm64 \
|
||||||
victoria-metrics-linux-arm \
|
victoria-metrics-linux-arm \
|
||||||
victoria-metrics-linux-386 \
|
victoria-metrics-linux-386 \
|
||||||
victoria-metrics-linux-ppc64le \
|
victoria-metrics-linux-ppc64le \
|
||||||
victoria-metrics-darwin-amd64 \
|
victoria-metrics-darwin-amd64 \
|
||||||
victoria-metrics-darwin-arm64 \
|
victoria-metrics-darwin-arm64 \
|
||||||
victoria-metrics-freebsd-amd64 \
|
victoria-metrics-freebsd-amd64 \
|
||||||
victoria-metrics-openbsd-amd64
|
victoria-metrics-openbsd-amd64
|
||||||
|
|
||||||
vmutils-crossbuild:
|
vmutils-crossbuild: \
|
||||||
# Do not use MAKE_PARALLEL, since every vmutils-* target already runs in parallel
|
vmutils-linux-386 \
|
||||||
$(MAKE) vmutils-linux-386 \
|
vmutils-linux-amd64 \
|
||||||
vmutils-linux-amd64 \
|
vmutils-linux-arm64 \
|
||||||
vmutils-linux-arm64 \
|
vmutils-linux-arm \
|
||||||
vmutils-linux-arm \
|
vmutils-linux-386 \
|
||||||
vmutils-linux-386 \
|
vmutils-linux-ppc64le \
|
||||||
vmutils-linux-ppc64le \
|
vmutils-darwin-amd64 \
|
||||||
vmutils-darwin-amd64 \
|
vmutils-darwin-arm64 \
|
||||||
vmutils-darwin-arm64 \
|
vmutils-freebsd-amd64 \
|
||||||
vmutils-freebsd-amd64 \
|
vmutils-openbsd-amd64 \
|
||||||
vmutils-openbsd-amd64 \
|
vmutils-windows-amd64
|
||||||
vmutils-windows-amd64
|
|
||||||
|
|
||||||
publish-release:
|
publish-release:
|
||||||
rm -rf bin/*
|
rm -rf bin/*
|
||||||
|
@ -199,20 +199,21 @@ publish-release:
|
||||||
git checkout $(TAG)-enterprise && $(MAKE) release && LATEST_TAG=enterprise-stable $(MAKE) publish && \
|
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
|
git checkout $(TAG)-enterprise-cluster && $(MAKE) release && LATEST_TAG=enterprise-cluster-stable $(MAKE) publish
|
||||||
|
|
||||||
release: \
|
release:
|
||||||
release-victoria-metrics \
|
$(MAKE_PARALLEL) \
|
||||||
release-vmutils
|
release-victoria-metrics \
|
||||||
|
release-vmutils
|
||||||
|
|
||||||
release-victoria-metrics:
|
release-victoria-metrics: \
|
||||||
$(MAKE_PARALLEL) release-victoria-metrics-linux-386 \
|
release-victoria-metrics-linux-386 \
|
||||||
release-victoria-metrics-linux-amd64 \
|
release-victoria-metrics-linux-amd64 \
|
||||||
release-victoria-metrics-linux-arm \
|
release-victoria-metrics-linux-arm \
|
||||||
release-victoria-metrics-linux-arm64 \
|
release-victoria-metrics-linux-arm64 \
|
||||||
release-victoria-metrics-darwin-amd64 \
|
release-victoria-metrics-darwin-amd64 \
|
||||||
release-victoria-metrics-darwin-arm64 \
|
release-victoria-metrics-darwin-arm64 \
|
||||||
release-victoria-metrics-freebsd-amd64 \
|
release-victoria-metrics-freebsd-amd64 \
|
||||||
release-victoria-metrics-openbsd-amd64 \
|
release-victoria-metrics-openbsd-amd64 \
|
||||||
release-victoria-metrics-windows-amd64
|
release-victoria-metrics-windows-amd64
|
||||||
|
|
||||||
release-victoria-metrics-linux-386:
|
release-victoria-metrics-linux-386:
|
||||||
GOOS=linux GOARCH=386 $(MAKE) release-victoria-metrics-goos-goarch
|
GOOS=linux GOARCH=386 $(MAKE) release-victoria-metrics-goos-goarch
|
||||||
|
@ -317,16 +318,16 @@ release-victoria-logs-windows-goarch: victoria-logs-windows-$(GOARCH)-prod
|
||||||
cd bin && rm -rf \
|
cd bin && rm -rf \
|
||||||
victoria-logs-windows-$(GOARCH)-prod.exe
|
victoria-logs-windows-$(GOARCH)-prod.exe
|
||||||
|
|
||||||
release-vmutils:
|
release-vmutils: \
|
||||||
$(MAKE_PARALLEL) release-vmutils-linux-386 \
|
release-vmutils-linux-386 \
|
||||||
release-vmutils-linux-amd64 \
|
release-vmutils-linux-amd64 \
|
||||||
release-vmutils-linux-arm64 \
|
release-vmutils-linux-arm64 \
|
||||||
release-vmutils-linux-arm \
|
release-vmutils-linux-arm \
|
||||||
release-vmutils-darwin-amd64 \
|
release-vmutils-darwin-amd64 \
|
||||||
release-vmutils-darwin-arm64 \
|
release-vmutils-darwin-arm64 \
|
||||||
release-vmutils-freebsd-amd64 \
|
release-vmutils-freebsd-amd64 \
|
||||||
release-vmutils-openbsd-amd64 \
|
release-vmutils-openbsd-amd64 \
|
||||||
release-vmutils-windows-amd64
|
release-vmutils-windows-amd64
|
||||||
|
|
||||||
release-vmutils-linux-386:
|
release-vmutils-linux-386:
|
||||||
GOOS=linux GOARCH=386 $(MAKE) release-vmutils-goos-goarch
|
GOOS=linux GOARCH=386 $(MAKE) release-vmutils-goos-goarch
|
||||||
|
|
Loading…
Reference in a new issue