From d5682858c06d5a97b7355eca4378124221512e92 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 58469993c..3932dded3 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 '/' '-')$$( \