]> git.proxmox.com Git - pve-docs.git/blobdiff - pve-doc-generator.mk
export qm man page
[pve-docs.git] / pve-doc-generator.mk
index 5387cc99b9820e69786b9d804d4b24d9b5bd42b0..cca464b5ea56b42a65cb34bb57bc82205c0ce5fb 100644 (file)
@@ -10,6 +10,11 @@ PVE_COMMON_DOC_SOURCES=                      \
        pve-copyright.adoc              \
        docinfo.xml
 
+PVECM_MAN1_SOURCES=                    \
+       pvecm.adoc                      \
+       pvecm.1-synopsis.adoc           \
+       ${PVE_COMMON_DOC_SOURCES}
+
 PVE_FIREWALL_MAN8_SOURCES=             \
        pve-firewall.adoc               \
        pve-firewall.8-synopsis.adoc    \
@@ -33,16 +38,31 @@ PVESM_MAN1_SOURCES=                 \
        pve-storage-zfspool.adoc        \
        ${PVE_COMMON_DOC_SOURCES}
 
+PCT_MAN1_SOURCES=                      \
+       pct.adoc                        \
+       pct.1-synopsis.adoc             \
+       ${PVE_COMMON_DOC_SOURCES}
+
+QM_MAN1_SOURCES=                       \
+       qm.adoc                         \
+       qm.1-synopsis.adoc              \
+       ${PVE_COMMON_DOC_SOURCES}
+
+PVEUM_MAN1_SOURCES=                    \
+       pveum.adoc                      \
+       pveum.1-synopsis.adoc           \
+       ${PVE_COMMON_DOC_SOURCES}
+
 attributes.txt docinfo.xml:
        cp ${DGDIR}/$@ $@.tmp
        mv $@.tmp $@
 
 %-opts.adoc: ${DGDIR}/gen-%-opts.pl
-       $< >$@.tmp
+       ${DGDIR}/gen-$*-opts.pl >$@.tmp
        mv $@.tmp $@
 
 %.adoc: ${DGDIR}/gen-%-adoc.pl
-       $< >$@.tmp
+       ${DGDIR}/gen-$*-adoc.pl >$@.tmp
        mv $@.tmp $@
 
 %.1-synopsis.adoc:
@@ -53,9 +73,11 @@ attributes.txt docinfo.xml:
        perl -I. -e "use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
        mv $@.tmp $@
 
+ifneq (${DGDIR},.)
 %.adoc: ${DGDIR}/%.adoc
        cp $< $@.tmp
        mv $@.tmp $@
+endif
 
 pve-firewall.8: ${PVE_FIREWALL_MAN8_SOURCES}
        a2x -a docinfo1 -a "manvolnum=8" -a "manversion=Release ${DOCRELEASE}" -f manpage pve-firewall.adoc
@@ -65,6 +87,25 @@ pvesm.1: ${PVESM_MAN1_SOURCES}
        a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pvesm.adoc
        test -n "$${NOVIEW}" || man -l $@
 
+pct.1: ${PCT_MAN1_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pct.adoc
+       test -n "$${NOVIEW}" || man -l $@
+
+qm.1: ${QM_MAN1_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage qm.adoc
+       test -n "$${NOVIEW}" || man -l $@
+
+pvecm.1: ${PVECM_MAN1_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pvecm.adoc
+       test -n "$${NOVIEW}" || man -l $@
+
+pveum.1: ${PVEUM_MAN1_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pveum.adoc
+       test -n "$${NOVIEW}" || man -l $@
+
+%.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage $*.adoc
+       test -n "$${NOVIEW}" || man -l $@
 
 .PHONY: cleanup-docgen
 cleanup-docgen: