From 4af6470df152f5ca59c7f584c64359fa4626dd61 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 7 Apr 2026 13:56:22 -1000 Subject: [PATCH] makefile: Simply identify each separate build step clearly - More details are displayed when multiple targets are being built with or without parallel build activities. - Display relative path displays when building. Avoid noisy full path info. - Pass jobs value in CI builds since some versions of GNU Make don't expose the -j value in the MAKEFLAGS internal variable. --- appveyor.yml | 2 +- makefile | 36 ++++++++++++++++++++---------------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 69737684..efe089af 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -63,7 +63,7 @@ build_script: } } if ($ncpus -ne '') { - $parallel = '-j' + $ncpus + $parallel = '-j' + $ncpus + ' NJOBS=' + $ncpus Write-Host "Building with $ncpus processors" } $commit_id_file = '.git-commit-id' diff --git a/makefile b/makefile index 8e0c538a..30106bbe 100644 --- a/makefile +++ b/makefile @@ -172,7 +172,9 @@ else export MKDIR = mkdir -p export OSTYPE = $(shell uname) endif -NJOBS:=$(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS))) +ifeq (,$(NJOBS)) + NJOBS:=$(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS))) +endif ifneq (,$(NJOBS)) JOBS:=-j$(NJOBS) endif @@ -275,6 +277,8 @@ ifneq (,$(and $(word 1,${MAKECMDGOALS}),$(word 2,${MAKECMDGOALS}))) BUILD_MULTIPLE_VERB = are MAKECMDGOALS_DESCRIPTION = the $(MAKECMDGOALS) simulators endif +SHOWTARGET=$(BUILD_MULTIPLE) +export SHOWTARGET # someone may want to explicitly build simulators without network support ifneq ($(NONETWORK),) NETWORK_USEFUL = @@ -3216,7 +3220,7 @@ else # end of primary make recipies pathfix = $(1) endif - find_test = $(if $(findstring 0,$(TESTS)),, RegisterSanityCheck $(if $(abspath $(wildcard $(PRIMARY_SRC)/tests/$(1)_test.ini)),$(abspath $(wildcard $(PRIMARY_SRC)/tests/$(1)_test.ini)),$(abspath $(wildcard $(PRIMARY_INC)/tests/$(1)_test.ini)))