diff --git a/utils/Makefile b/utils/Makefile index d48fd7296..8a0e91eb1 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -60,6 +60,7 @@ install: ${MANPAGES} ${HTMLMANPAGES} install -m 644 ${MODULES} ${PERLDIR} $(MAKE) -C po install DESTDIR=${DESTDIR} NAME=${NAME} $(MAKE) install_manpages DESTDIR=${DESTDIR} + $(MAKE) -C vim install DESTDIR=${DESTDIR} ln -sf aa-status.8 ${DESTDIR}/${MANDIR}/man8/apparmor_status.8 .PHONY: clean diff --git a/utils/vim/Makefile b/utils/vim/Makefile index 4eb1947de..294e093bf 100644 --- a/utils/vim/Makefile +++ b/utils/vim/Makefile @@ -9,10 +9,17 @@ 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