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 <zygmunt.krynicki@canonical.com>
This commit is contained in:
Zygmunt Krynicki 2024-11-25 14:49:31 +01:00 committed by Zygmunt Krynicki
parent 32ee85cef8
commit 4caf0aff81

View file

@ -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