mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-05 22:32:20 +01:00
Makefile: allow specifying the needed concurrency for make via MAKE_CONCURRENCY env var
This commit is contained in:
parent
6b75523468
commit
c285fca256
3
Makefile
3
Makefile
@ -1,6 +1,7 @@
|
|||||||
PKG_PREFIX := github.com/VictoriaMetrics/VictoriaMetrics
|
PKG_PREFIX := github.com/VictoriaMetrics/VictoriaMetrics
|
||||||
|
|
||||||
MAKE_PARALLEL := $(MAKE) -j `cat /proc/cpuinfo | grep -c processor`
|
MAKE_CONCURRENCY ?= $(shell cat /proc/cpuinfo | grep -c processor)
|
||||||
|
MAKE_PARALLEL := $(MAKE) -j $(MAKE_CONCURRENCY)
|
||||||
DATEINFO_TAG ?= $(shell date -u +'%Y%m%d-%H%M%S')
|
DATEINFO_TAG ?= $(shell date -u +'%Y%m%d-%H%M%S')
|
||||||
BUILDINFO_TAG ?= $(shell echo $$(git describe --long --all | tr '/' '-')$$( \
|
BUILDINFO_TAG ?= $(shell echo $$(git describe --long --all | tr '/' '-')$$( \
|
||||||
git diff-index --quiet HEAD -- || echo '-dirty-'$$(git diff-index -u HEAD | openssl sha1 | cut -d' ' -f2 | cut -c 1-8)))
|
git diff-index --quiet HEAD -- || echo '-dirty-'$$(git diff-index -u HEAD | openssl sha1 | cut -d' ' -f2 | cut -c 1-8)))
|
||||||
|
Loading…
Reference in New Issue
Block a user