2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-27 20:47:16 +00:00
apparmor/utils/vim/Makefile
John Johansen 01841ade3a Merge Better error handling when creating apparmor.vim
See the individual commits for details and bug references.

PR: https://gitlab.com/apparmor/apparmor/-/merge_requests/472
Acked-by: John Johansen <john.johansen@canonical.com>
2020-04-08 01:37:44 -07:00

30 lines
681 B
Makefile

COMMONDIR=../../common/
all:
include $(COMMONDIR)/Make.rules
MANPAGES=apparmor.vim.5
VIM_INSTALL_PATH=${DESTDIR}/usr/share/apparmor
all: apparmor.vim manpages htmlmanpages
apparmor.vim: apparmor.vim.in Makefile create-apparmor.vim.py
${PYTHON} create-apparmor.vim.py > apparmor.vim || { rm -f apparmor.vim ; exit 1; }
manpages: $(MANPAGES)
htmlmanpages: $(HTMLMANPAGES)
install: apparmor.vim manpages
install -d $(VIM_INSTALL_PATH)
install -m 644 $< $(VIM_INSTALL_PATH)
$(MAKE) install_manpages DESTDIR=${DESTDIR}
.PHONY: check
check: check_pod_files
#Testing with all pythons
$(call pyalldo, create-apparmor.vim.py > /dev/null)
clean: pod_clean
rm -f apparmor.vim