mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-03 16:04:44 +01: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
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue