mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +00:00
Subject: add apparmor.vim install target to utils/ install
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 commit is contained in:
parent
b4feb99841
commit
1439d006cd
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user