mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00

the 2.8 branch. Original commit message: committer: Jamie Strandboge <jamie@canonical.com> Initial port to python3 for utilities. Thanks to Dmitrijs Ledkovs Acked-By: Jamie Strandboge <jamie@canonical.com> Most of trunk r2052 also applies to the 2.8 branch. The only difference is the last section of changes in utils/vim/create-apparmor.vim.py Acked-by: John Johansen <john.johansen@canonical.com> Acked-by: Steve Beattie <sbeattie@ubuntu.com> Skimmed-by: Seth Arnold <seth.arnold@canonical.com>
28 lines
673 B
Makefile
28 lines
673 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
|
|
|
|
VIM_INSTALL_PATH=${DESTDIR}/usr/share/apparmor
|
|
|
|
all: apparmor.vim
|
|
|
|
apparmor.vim: apparmor.vim.in Makefile create-apparmor.vim.py
|
|
${PYTHON} create-apparmor.vim.py > apparmor.vim
|
|
|
|
install: apparmor.vim
|
|
install -d $(VIM_INSTALL_PATH)
|
|
install -m 644 $< $(VIM_INSTALL_PATH)
|
|
|
|
test: apparmor.vim.in Makefile create-apparmor.vim.py
|
|
#Testing with all pythons
|
|
$(call pyalldo, create-apparmor.vim.py > /dev/null)
|
|
|
|
clean:
|
|
rm -f apparmor.vim common
|