]> git.proxmox.com Git - pve-docs.git/blobdiff - pve-doc-generator.mk.in
totp: fix copy/paste mistake
[pve-docs.git] / pve-doc-generator.mk.in
index 0176d852898d3422d74e3ca230b4e8a8f62be3c4..77fd4f641f756cbf9ef6235ae6e14132fea8ffe2 100644 (file)
@@ -1,5 +1,4 @@
-# also update debian/changelog
-DOCRELEASE=5.2
+DOCRELEASE=@RELEASE@
 
 DGDIR?=/usr/share/pve-doc-generator
 
@@ -16,7 +15,7 @@ PVE_COMMON_DOC_SOURCES=                 \
 
 all:
 
-attributes.txt docinfo.xml pmxcfs.8-synopsis.adoc:
+attributes.txt docinfo.xml pmxcfs.8-synopsis.adoc qmeventd.8-synopsis.adoc:
        cp ${DGDIR}/$@ $@.tmp
        mv $@.tmp $@
 
@@ -53,6 +52,22 @@ endif
        perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp
        mv $@.tmp $@
 
+%.service-zsh-completion:
+       perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->generate_zsh_completions();" >$@.tmp
+       mv $@.tmp $@
+
+%.zsh-completion:
+       perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_zsh_completions();" >$@.tmp
+       mv $@.tmp $@
+
+%.service-api-verified:
+       perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->verify_api();"
+       touch $@
+
+%.api-verified:
+       perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->verify_api();"
+       touch $@
+
 %-plain.html: %.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-wiki -o $@ $*.adoc
 
@@ -61,21 +76,21 @@ chapter-%.html: %.adoc ${PVE_COMMON_DOC_SOURCES}
 
 %.1: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
+       test -z "$${PVE_DOC_INSTANTVIEW}" || man -l $@
 
 %.1.html: %.adoc %.1-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
 
 %.8: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
+       test -z "$${PVE_DOC_INSTANTVIEW}" || man -l $@
 
 %.8.html: %.adoc %.8-synopsis.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc
 
 %.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man -o $@ $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
+       test -z "$${PVE_DOC_INSTANTVIEW}" || man -l $@
 
 %.5.html: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PVE} compile-man-html -o $@ $*.adoc