]> git.proxmox.com Git - pve-docs.git/blobdiff - pve-doc-generator.mk
add qmrestore man page
[pve-docs.git] / pve-doc-generator.mk
index cdc51a4d10592373d3c14b1493ab4a9fc2185111..f1f21fd62979c147f0ad3a8d0c7c0c27f8a87730 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    \
@@ -38,6 +43,21 @@ PCT_MAN1_SOURCES=                    \
        pct.1-synopsis.adoc             \
        ${PVE_COMMON_DOC_SOURCES}
 
+QM_MAN1_SOURCES=                       \
+       qm.adoc                         \
+       qm.1-synopsis.adoc              \
+       ${PVE_COMMON_DOC_SOURCES}
+
+QMRESTORE_MAN1_SOURCES=                        \
+       qmrestore.adoc                  \
+       qmrestore.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 $@
@@ -76,16 +96,24 @@ pct.1: ${PCT_MAN1_SOURCES}
        a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pct.adoc
        test -n "$${NOVIEW}" || man -l $@
 
-pct.conf.5: pct.conf.adoc pct.conf.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
-       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage pct.conf.adoc
+qm.1: ${QM_MAN1_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage qm.adoc
+       test -n "$${NOVIEW}" || man -l $@
+
+qmrestore.1: ${QMRESTORE_MAN1_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage qmrestore.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 $@
 
-vm.conf.5: vm.conf.adoc vm.conf.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
-       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage vm.conf.adoc
+pveum.1: ${PVEUM_MAN1_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pveum.adoc
        test -n "$${NOVIEW}" || man -l $@
 
-datacenter.conf.5: datacenter.conf.adoc datacenter.conf.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
-       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage datacenter.conf.adoc
+%.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