From 711ace05826bf9f3edcb1614c79e7bffe1f75112 Mon Sep 17 00:00:00 2001 From: Alexander Marshalov <_@marshalov.org> Date: Thu, 25 Jan 2024 09:58:01 +0100 Subject: [PATCH] Make a makefile work on a MacOS and Linux (#5685) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ccd0721f0d..4a5bb58d63 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PKG_PREFIX := github.com/VictoriaMetrics/VictoriaMetrics -MAKE_CONCURRENCY ?= $(shell cat /proc/cpuinfo | grep -c processor) +MAKE_CONCURRENCY ?= $(getconf _NPROCESSORS_ONLN) MAKE_PARALLEL := $(MAKE) -j $(MAKE_CONCURRENCY) DATEINFO_TAG ?= $(shell date -u +'%Y%m%d-%H%M%S') BUILDINFO_TAG ?= $(shell echo $$(git describe --long --all | tr '/' '-')$$( \