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.)

This is kept as a separate patch in case it's felt that it's too late
in the dev cycle to add an additional installed file, even if it's
one that won't get automatically used by anything.

---
 utils/Makefile     |    1 +
 utils/vim/Makefile |    7 +++++++
 2 files changed, 8 insertions(+)

Index: b/utils/Makefile
===================================================================
--- 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
Index: b/utils/vim/Makefile
===================================================================
--- a/utils/vim/Makefile
+++ b/utils/vim/Makefile
@@ -9,10 +9,17 @@ common/Make.rules: $(COMMONDIR)/Make.rul
 	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


