diff --git a/common/Make.rules b/common/Make.rules index 05fa3f726..3e46eb49b 100644 --- a/common/Make.rules +++ b/common/Make.rules @@ -172,7 +172,7 @@ $(BUILDRPMSUBDIRS): .PHONY: _clean .SILENT: _clean _clean: - -rm -f ${NAME}-${VERSION}-*.tar.gz + -[ -z "${NAME}" ] || rm -f ${NAME}-${VERSION}-*.tar.gz -rm -f ${MANPAGES} *.[0-9].gz ${HTMLMANPAGES} pod2htm*.tmp # ===================== diff --git a/utils/vim/Makefile b/utils/vim/Makefile index b0a616c3a..ad7b94825 100644 --- a/utils/vim/Makefile +++ b/utils/vim/Makefile @@ -12,13 +12,15 @@ endif MANPAGES=apparmor.vim.5 VIM_INSTALL_PATH=${DESTDIR}/usr/share/apparmor -all: apparmor.vim manpages +all: apparmor.vim manpages htmlmanpages apparmor.vim: apparmor.vim.in Makefile create-apparmor.vim.py ${PYTHON} create-apparmor.vim.py > apparmor.vim manpages: $(MANPAGES) +htmlmanpages: $(HTMLMANPAGES) + install: apparmor.vim manpages install -d $(VIM_INSTALL_PATH) install -m 644 $< $(VIM_INSTALL_PATH) @@ -29,5 +31,5 @@ check: check_pod_files #Testing with all pythons $(call pyalldo, create-apparmor.vim.py > /dev/null) -clean: - rm -f apparmor.vim common $(MANPAGES) +clean: _clean + rm -f apparmor.vim common