X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=pve-doc-generator.mk;h=ce7183ea2971360a5f3d514e5ab195df720fb163;hp=cd1ade4a55bbdd45f47cdf104b98ec0a2e51751c;hb=2d8f1c9267103ca279abcde3e8413866020ae323;hpb=e26d2ff0d8c43beb9367c0699bc8515908bc4dcb diff --git a/pve-doc-generator.mk b/pve-doc-generator.mk index cd1ade4..ce7183e 100644 --- a/pve-doc-generator.mk +++ b/pve-doc-generator.mk @@ -43,11 +43,26 @@ PCT_MAN1_SOURCES= \ pct.1-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} +PCT_CONF_MAN5_SOURCES= \ + pct.conf.adoc \ + pct.conf.5-opts.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +DATACENTER_CONF_MAN5_SOURCES= \ + datacenter.cfg.adoc \ + datacenter.cfg.5-opts.adoc \ + ${PVE_COMMON_DOC_SOURCES} + QM_MAN1_SOURCES= \ qm.adoc \ qm.1-synopsis.adoc \ ${PVE_COMMON_DOC_SOURCES} +QM_CONF_MAN5_SOURCES= \ + qm.conf.adoc \ + qm.conf.5-opts.adoc \ + ${PVE_COMMON_DOC_SOURCES} + QMRESTORE_MAN1_SOURCES= \ qmrestore.adoc \ qmrestore.1-synopsis.adoc \ @@ -63,6 +78,41 @@ HA_MANAGER_MAN1_SOURCES= \ 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} + +PVESTATD_MAN8_SOURCES= \ + pvestatd.adoc \ + pvestatd.8-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +PVEDAEMON_MAN8_SOURCES= \ + pvedaemon.adoc \ + pvedaemon.8-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +PVEPROXY_MAN8_SOURCES= \ + pveproxy.adoc \ + pveproxy.8-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +SPICEPROXY_MAN8_SOURCES= \ + spiceproxy.adoc \ + spiceproxy.8-synopsis.adoc \ + ${PVE_COMMON_DOC_SOURCES} + +PMXCFS_MAN8_SOURCES= \ + pmxcfs.adoc \ + pmxcfs.8-cli.adoc \ + ${PVE_COMMON_DOC_SOURCES} + attributes.txt docinfo.xml: cp ${DGDIR}/$@ $@.tmp mv $@.tmp $@ @@ -89,42 +139,81 @@ 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 -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage ha-manager.adoc + 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 $@ + +pvestatd.8: ${PVESTATD_MAN8_SOURCES} + a2x ${A2X_MAN8_OPTIONS} pvestatd.adoc + test -n "$${NOVIEW}" || man -l $@ + +pvedaemon.8: ${PVEDAEMON_MAN8_SOURCES} + a2x ${A2X_MAN8_OPTIONS} pvedaemon.adoc test -n "$${NOVIEW}" || man -l $@ +pveproxy.8: ${PVEPROXY_MAN8_SOURCES} + a2x ${A2X_MAN8_OPTIONS} pveproxy.adoc + test -n "$${NOVIEW}" || man -l $@ + +spiceproxy.8: ${SPICEPROXY_MAN8_SOURCES} + a2x ${A2X_MAN8_OPTIONS} spiceproxy.adoc + test -n "$${NOVIEW}" || man -l $@ + +pmxcfs.8: ${PMXCFS_MAN8_SOURCES} + a2x ${A2X_MAN8_OPTIONS} pmxcfs.adoc + test -n "$${NOVIEW}" || man -l $@ + +qm.conf.5: ${QM_CONF_MAN5_SOURCES} + +pct.conf.5: ${PCT_CONF_MAN5_SOURCES} + +datacenter.cfg.5: ${DATACENTER_CONF_MAN5_SOURCES} + %.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 cleanup-docgen: - rm -f *.1 *.8 *.adoc attributes.txt docinfo.xml + rm -f *.1 *.5 *.8 *.adoc attributes.txt docinfo.xml