X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=pve-doc-generator.mk;h=a20e3a14e1d503e892e968c9a781cbf3ef632286;hp=f1f21fd62979c147f0ad3a8d0c7c0c27f8a87730;hb=6ec3cd200791c0b5157062eb4a48cce0aafcf738;hpb=a5bb4c40a3d03f81e9999a05c7d3f77872abe60f diff --git a/pve-doc-generator.mk b/pve-doc-generator.mk index f1f21fd..a20e3a1 100644 --- a/pve-doc-generator.mk +++ b/pve-doc-generator.mk @@ -43,11 +43,21 @@ PCT_MAN1_SOURCES= \ pct.1-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} +PCT_CONF_MAN5_SOURCE= \ + pct.conf.adoc \ + pct.conf.5-opts.adoc \ + ${PVE_COMMON_DOC_SOURCES} + QM_MAN1_SOURCES= \ qm.adoc \ qm.1-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} +QM_CONF_MAN5_SOURCE= \ + qm.conf.adoc \ + qm.conf.5-opts.adoc \ + ${PVE_COMMON_DOC_SOURCES} + QMRESTORE_MAN1_SOURCES= \ qmrestore.adoc \ qmrestore.1-synopsis.adoc \ @@ -58,6 +68,21 @@ PVEUM_MAN1_SOURCES= \ pveum.1-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} +HA_MANAGER_MAN1_SOURCES= \ + ha-manager.adoc \ + ha-manager.1-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +PVE_HA_CRM_MAN8_SOURCES= \ + pve-ha-crm.adoc \ + pve-ha-crm.8-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +PVE_HA_LRM_MAN8_SOURCES= \ + pve-ha-lrm.adoc \ + pve-ha-lrm.8-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + attributes.txt docinfo.xml: cp ${DGDIR}/$@ $@.tmp mv $@.tmp $@ @@ -84,36 +109,57 @@ ifneq (${DGDIR},.) mv $@.tmp $@ endif +A2X_MAN_COMMON_OPTIONS=-a docinfo1 -a "manversion=Release ${DOCRELEASE}" -f manpage +A2X_MAN1_OPTIONS=${A2X_MAN_COMMON_OPTIONS} -a "manvolnum=1" +A2X_MAN5_OPTIONS=${A2X_MAN_COMMON_OPTIONS} -a "manvolnum=5" +A2X_MAN8_OPTIONS=${A2X_MAN_COMMON_OPTIONS} -a "manvolnum=8" + pve-firewall.8: ${PVE_FIREWALL_MAN8_SOURCES} - a2x -a docinfo1 -a "manvolnum=8" -a "manversion=Release ${DOCRELEASE}" -f manpage pve-firewall.adoc + a2x ${A2X_MAN8_OPTIONS} pve-firewall.adoc test -n "$${NOVIEW}" || man -l $@ pvesm.1: ${PVESM_MAN1_SOURCES} - a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pvesm.adoc + a2x ${A2X_MAN1_OPTIONS} 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 + a2x ${A2X_MAN1_OPTIONS} 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 + a2x ${A2X_MAN1_OPTIONS} 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 + a2x ${A2X_MAN1_OPTIONS} 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 + a2x ${A2X_MAN1_OPTIONS} 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 + a2x ${A2X_MAN1_OPTIONS} pveum.adoc + test -n "$${NOVIEW}" || man -l $@ + +ha-manager.1: ${HA_MANAGER_MAN1_SOURCES} + a2x ${A2X_MAN1_OPTIONS} ha-manager.adoc + test -n "$${NOVIEW}" || man -l $@ + +pve-ha-crm.8: ${PVE_HA_CRM_MAN8_SOURCES} + a2x ${A2X_MAN8_OPTIONS} manpage pve-ha-crm.adoc test -n "$${NOVIEW}" || man -l $@ +pve-ha-lrm.8: ${PVE_HA_LRM_MAN8_SOURCES} + a2x ${A2X_MAN8_OPTIONS} pve-ha-lrm.adoc + test -n "$${NOVIEW}" || man -l $@ + +qm.conf.5: ${QM_CONF_MAN5_SOURCE} + +pct.conf.5: ${PCT_CONF_MAN5_SOURCE} + %.5: %.adoc %.5-opts.adoc ${PVE_COMMON_DOC_SOURCES} - a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage $*.adoc + a2x ${A2X_MAN5_OPTIONS} $*.adoc test -n "$${NOVIEW}" || man -l $@ .PHONY: cleanup-docgen