mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
32 lines
783 B
Makefile
32 lines
783 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
|
|
|
|
MANPAGES=apparmor.vim.5
|
|
VIM_INSTALL_PATH=${DESTDIR}/usr/share/apparmor
|
|
|
|
all: apparmor.vim manpages
|
|
|
|
apparmor.vim: apparmor.vim.in Makefile create-apparmor.vim.py
|
|
${PYTHON} create-apparmor.vim.py > apparmor.vim
|
|
|
|
manpages: $(MANPAGES)
|
|
|
|
install: apparmor.vim manpages
|
|
install -d $(VIM_INSTALL_PATH)
|
|
install -m 644 $< $(VIM_INSTALL_PATH)
|
|
$(MAKE) install_manpages DESTDIR=${DESTDIR}
|
|
|
|
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
|