mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
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:
parent
32ee85cef8
commit
4caf0aff81
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user