2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-02 07:15:18 +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:
Christian Boltz
2018-03-18 17:13:18 +01:00
committed by Christian Boltz
parent cea8e7cfa0
commit 208933829f

View File

@@ -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); \