mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-09 02:41:03 +01:00

This patch adds a make install target for the generated apparmor.vim file, installing by default into /usr/share/apparmor based on IRC discussions; alternate suggestions welcome. (Installing directly into the vim syntax tree is difficult as the system path by default contains the vim version number.)
25 lines
519 B
Makefile
25 lines
519 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 > $@
|
|
|
|
install: apparmor.vim
|
|
install -d $(VIM_INSTALL_PATH)
|
|
install -m 644 $< $(VIM_INSTALL_PATH)
|
|
|
|
|
|
clean:
|
|
rm -f apparmor.vim
|