mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00

This patch replaces the apparmor.vim generating script with a python version that eliminates the need for using the replace tool from the mysql-server package. It makes use of the automatically generated lists of capabilities and network protocols provided by the build infrastructure. I did not capture all the notes and TODOs that Christian had in the shell script; I can do so if desired. It also hooks the generation of the apparmor.vim file into the utils/ build and clean stages.
18 lines
376 B
Makefile
18 lines
376 B
Makefile
COMMONDIR=../../common/
|
|
|
|
all:
|
|
include common/Make.rules
|
|
|
|
COMMONDIR_EXISTS=$(strip $(shell [ -d ${COMMONDIR} ] && echo true))
|
|
ifeq ($(COMMONDIR_EXISTS), true)
|
|
common/Make.rules: $(COMMONDIR)/Make.rules
|
|
ln -sf $(COMMONDIR) .
|
|
endif
|
|
|
|
all: apparmor.vim
|
|
|
|
apparmor.vim: apparmor.vim.in Makefile create-apparmor.vim.py
|
|
python create-apparmor.vim.py > $@
|
|
|
|
clean:
|
|
rm -f apparmor.vim
|