mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 23:05:11 +00:00
Fix $(PWD) when using "make -C profiles"
By default, it stays at the "calling directory" instead of the directory of the Makefile, which breaks "make -C profiles check". Explicitely set it in the Makefile to get the right directory.
This commit is contained in:
committed by
Christian Boltz
parent
cea8e7cfa0
commit
208933829f
@@ -34,6 +34,9 @@ EXTRAS_SOURCE=./apparmor/profiles/extras/
|
||||
SUBDIRS=$(shell find ${PROFILES_SOURCE} -type d -print)
|
||||
TOPLEVEL_PROFILES=$(filter-out ${SUBDIRS}, $(wildcard ${PROFILES_SOURCE}/*))
|
||||
|
||||
# $(PWD) is wrong when using "make -C profiles" - explicitely set it here to get the right value
|
||||
PWD=$(shell pwd)
|
||||
|
||||
local:
|
||||
for profile in ${TOPLEVEL_PROFILES}; do \
|
||||
fn=$$(basename $$profile); \
|
||||
|
Reference in New Issue
Block a user