mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 18:17:09 +00:00
Merge Use the $(AWK) variable for the awk binary in the Makefiles
Followup that replaces !1576. Signed-off-by: Ryan Lee <ryan.lee@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1581 Approved-by: Maxime Bélair <maxime.belair@canonical.com> Approved-by: Christian Boltz <apparmor@cboltz.de> Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
commit
f11c2032da
@ -42,7 +42,7 @@ define nl
|
|||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
REPO_VERSION_CMD=[ -x /usr/bin/git ] && /usr/bin/git describe --tags --long --abbrev=16 --match 'v*' 2> /dev/null || awk '{ print $2 }' common/.stamp_rev
|
REPO_VERSION_CMD=[ -x /usr/bin/git ] && /usr/bin/git describe --tags --long --abbrev=16 --match 'v*' 2> /dev/null || $(AWK) '{ print $2 }' common/.stamp_rev
|
||||||
|
|
||||||
ifndef PYTHON_VERSIONS
|
ifndef PYTHON_VERSIONS
|
||||||
PYTHON_VERSIONS = $(call map, pathsearch, python3)
|
PYTHON_VERSIONS = $(call map, pathsearch, python3)
|
||||||
|
@ -37,7 +37,7 @@ MANPAGES=apparmor.d.5 apparmor.7 apparmor_parser.8 aa-teardown.8 apparmor_xattrs
|
|||||||
# default behavior changed in version 3.6
|
# default behavior changed in version 3.6
|
||||||
# parse.error=verbose supported from 3.0 so just test on that
|
# parse.error=verbose supported from 3.0 so just test on that
|
||||||
# TODO move to autoconf
|
# TODO move to autoconf
|
||||||
BISON_MAJOR:=$(shell bison --version | awk '/^bison/ { print ($$NF) }' | awk -F. '{print $$1 }')
|
BISON_MAJOR:=$(shell bison --version | ${AWK} '/^bison/ { print ($$NF) }' | ${AWK} -F. '{print $$1 }')
|
||||||
USE_PARSE_ERROR:=$(shell test "${BISON_MAJOR}" -ge 3 && echo true)
|
USE_PARSE_ERROR:=$(shell test "${BISON_MAJOR}" -ge 3 && echo true)
|
||||||
|
|
||||||
YACC := bison
|
YACC := bison
|
||||||
@ -375,7 +375,7 @@ tst_%: parser_%.c parser.h $(filter-out parser_%.o, ${TEST_OBJECTS})
|
|||||||
|
|
||||||
errnos.h:
|
errnos.h:
|
||||||
echo '#include <errno.h>' > dump.c
|
echo '#include <errno.h>' > dump.c
|
||||||
$(CC) $(CPPFLAGS) -E -dD dump.c | awk '/^#define E/ { printf "{ \"%s\", %s },\n", $$2, $$2 }' > errnos.h
|
$(CC) $(CPPFLAGS) -E -dD dump.c | $(AWK) '/^#define E/ { printf "{ \"%s\", %s },\n", $$2, $$2 }' > errnos.h
|
||||||
rm -f dump.c
|
rm -f dump.c
|
||||||
|
|
||||||
.SILENT: check
|
.SILENT: check
|
||||||
|
Loading…
x
Reference in New Issue
Block a user