From 4caf0aff8101086bcb35689fc63ad4b47561132a Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Mon, 25 Nov 2024 14:49:31 +0100 Subject: [PATCH] On openSUSE 15.6 make fails to find awk Using this version of make: ``` GNU Make 4.2.1 Built for x86_64-suse-linux-gnu ``` I'm not entirely sure why but the alternative syntax I've used works correctly. Signed-off-by: Zygmunt Krynicki --- common/Make.rules | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/Make.rules b/common/Make.rules index d55c8a5f5..89190cbba 100644 --- a/common/Make.rules +++ b/common/Make.rules @@ -35,10 +35,7 @@ VERSION=$(shell cat $(COMMONDIR)/Version) pathsearch = $(firstword $(wildcard $(addsuffix /$(1),$(subst :, ,$(PATH))))) map = $(foreach a,$(2),$(call $(1),$(a))) -AWK:=$(shell command -v awk) -ifndef AWK -$(error awk utility required for build but not available) -endif +AWK?=$(or $(shell command -v awk),$(error awk utility required for build but not available)) define nl