diff --git a/common/Make.rules b/common/Make.rules index 89190cbba..842789616 100644 --- a/common/Make.rules +++ b/common/Make.rules @@ -42,7 +42,7 @@ define nl 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 PYTHON_VERSIONS = $(call map, pathsearch, python3) diff --git a/parser/Makefile b/parser/Makefile index 9f97146e1..d18ffaa71 100644 --- a/parser/Makefile +++ b/parser/Makefile @@ -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 # parse.error=verbose supported from 3.0 so just test on that # 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) YACC := bison @@ -375,7 +375,7 @@ tst_%: parser_%.c parser.h $(filter-out parser_%.o, ${TEST_OBJECTS}) errnos.h: echo '#include ' > 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 .SILENT: check