1 # also update debian/changelog
4 DGDIR?
=/usr
/share
/pve-doc-generator
8 PVE_COMMON_DOC_SOURCES
= \
15 pvecm
.1-synopsis.adoc \
16 ${PVE_COMMON_DOC_SOURCES}
18 PVE_FIREWALL_MAN8_SOURCES
= \
20 pve-firewall
.8-synopsis.adoc \
21 pve-firewall-cluster-opts.adoc \
22 pve-firewall-host-opts.adoc \
23 pve-firewall-vm-opts.adoc \
24 pve-firewall-rules-opts.adoc \
25 pve-firewall-macros.adoc \
26 ${PVE_COMMON_DOC_SOURCES}
30 pvesm
.1-synopsis.adoc \
31 pve-storage-dir.adoc \
32 pve-storage-glusterfs.adoc \
33 pve-storage-iscsi.adoc \
34 pve-storage-iscsidirect.adoc \
35 pve-storage-lvm.adoc \
36 pve-storage-nfs.adoc \
37 pve-storage-rbd.adoc \
38 pve-storage-zfspool.adoc \
39 ${PVE_COMMON_DOC_SOURCES}
44 ${PVE_COMMON_DOC_SOURCES}
46 PCT_CONF_MAN5_SOURCES
= \
48 pct.conf
.5-opts.adoc \
49 ${PVE_COMMON_DOC_SOURCES}
51 DATACENTER_CONF_MAN5_SOURCES
= \
53 datacenter.cfg
.5-opts.adoc \
54 ${PVE_COMMON_DOC_SOURCES}
59 ${PVE_COMMON_DOC_SOURCES}
61 QM_CONF_MAN5_SOURCES
= \
64 ${PVE_COMMON_DOC_SOURCES}
66 QMRESTORE_MAN1_SOURCES
= \
68 qmrestore
.1-synopsis.adoc \
69 ${PVE_COMMON_DOC_SOURCES}
73 pveum
.1-synopsis.adoc \
74 ${PVE_COMMON_DOC_SOURCES}
76 HA_MANAGER_MAN1_SOURCES
= \
78 ha-manager
.1-synopsis.adoc \
79 ${PVE_COMMON_DOC_SOURCES}
81 PVE_HA_CRM_MAN8_SOURCES
= \
83 pve-ha-crm
.8-synopsis.adoc \
84 ${PVE_COMMON_DOC_SOURCES}
86 PVE_HA_LRM_MAN8_SOURCES
= \
88 pve-ha-lrm
.8-synopsis.adoc \
89 ${PVE_COMMON_DOC_SOURCES}
91 PVESTATD_MAN8_SOURCES
= \
93 pvestatd
.8-synopsis.adoc \
94 ${PVE_COMMON_DOC_SOURCES}
96 PVEDAEMON_MAN8_SOURCES
= \
98 pvedaemon
.8-synopsis.adoc \
99 ${PVE_COMMON_DOC_SOURCES}
101 PVEPROXY_MAN8_SOURCES
= \
103 pveproxy
.8-synopsis.adoc \
104 ${PVE_COMMON_DOC_SOURCES}
106 PMXCFS_MAN8_SOURCES
= \
109 ${PVE_COMMON_DOC_SOURCES}
111 attributes.txt docinfo.xml
:
112 cp
${DGDIR}/$@
$@.tmp
115 %-opts.adoc
: ${DGDIR}/gen-
%-opts.pl
116 ${DGDIR}/gen-
$*-opts.pl
>$@.tmp
119 %.adoc
: ${DGDIR}/gen-
%-adoc.pl
120 ${DGDIR}/gen-
$*-adoc.pl
>$@.tmp
124 perl
-I.
-e
"use PVE::CLI::$(subst -,_,$*);print PVE::CLI::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
128 perl
-I.
-e
"use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
132 %.adoc
: ${DGDIR}/%.adoc
137 A2X_MAN_COMMON_OPTIONS
=-a docinfo1
-a
"manversion=Release ${DOCRELEASE}" -f manpage
138 A2X_MAN1_OPTIONS
=${A2X_MAN_COMMON_OPTIONS} -a
"manvolnum=1"
139 A2X_MAN5_OPTIONS
=${A2X_MAN_COMMON_OPTIONS} -a
"manvolnum=5"
140 A2X_MAN8_OPTIONS
=${A2X_MAN_COMMON_OPTIONS} -a
"manvolnum=8"
142 pve-firewall
.8: ${PVE_FIREWALL_MAN8_SOURCES}
143 a2x
${A2X_MAN8_OPTIONS} pve-firewall.adoc
144 test -n
"$${NOVIEW}" || man
-l
$@
146 pvesm
.1: ${PVESM_MAN1_SOURCES}
147 a2x
${A2X_MAN1_OPTIONS} pvesm.adoc
148 test -n
"$${NOVIEW}" || man
-l
$@
150 pct
.1: ${PCT_MAN1_SOURCES}
151 a2x
${A2X_MAN1_OPTIONS} pct.adoc
152 test -n
"$${NOVIEW}" || man
-l
$@
154 qm
.1: ${QM_MAN1_SOURCES}
155 a2x
${A2X_MAN1_OPTIONS} qm.adoc
156 test -n
"$${NOVIEW}" || man
-l
$@
158 qmrestore
.1: ${QMRESTORE_MAN1_SOURCES}
159 a2x
${A2X_MAN1_OPTIONS} qmrestore.adoc
160 test -n
"$${NOVIEW}" || man
-l
$@
162 pvecm
.1: ${PVECM_MAN1_SOURCES}
163 a2x
${A2X_MAN1_OPTIONS} pvecm.adoc
164 test -n
"$${NOVIEW}" || man
-l
$@
166 pveum
.1: ${PVEUM_MAN1_SOURCES}
167 a2x
${A2X_MAN1_OPTIONS} pveum.adoc
168 test -n
"$${NOVIEW}" || man
-l
$@
170 ha-manager
.1: ${HA_MANAGER_MAN1_SOURCES}
171 a2x
${A2X_MAN1_OPTIONS} ha-manager.adoc
172 test -n
"$${NOVIEW}" || man
-l
$@
174 pve-ha-crm
.8: ${PVE_HA_CRM_MAN8_SOURCES}
175 a2x
${A2X_MAN8_OPTIONS} manpage pve-ha-crm.adoc
176 test -n
"$${NOVIEW}" || man
-l
$@
178 pve-ha-lrm
.8: ${PVE_HA_LRM_MAN8_SOURCES}
179 a2x
${A2X_MAN8_OPTIONS} pve-ha-lrm.adoc
180 test -n
"$${NOVIEW}" || man
-l
$@
182 pvestatd
.8: ${PVESTATD_MAN8_SOURCES}
183 a2x
${A2X_MAN8_OPTIONS} pvestatd.adoc
184 test -n
"$${NOVIEW}" || man
-l
$@
186 pvedaemon
.8: ${PVEDAEMON_MAN8_SOURCES}
187 a2x
${A2X_MAN8_OPTIONS} pvedaemon.adoc
188 test -n
"$${NOVIEW}" || man
-l
$@
190 pveproxy
.8: ${PVEPROXY_MAN8_SOURCES}
191 a2x
${A2X_MAN8_OPTIONS} pveproxy.adoc
192 test -n
"$${NOVIEW}" || man
-l
$@
194 pmxcfs
.8: ${PMXCFS_MAN8_SOURCES}
195 a2x
${A2X_MAN8_OPTIONS} pmxcfs.adoc
196 test -n
"$${NOVIEW}" || man
-l
$@
198 qm.conf
.5: ${QM_CONF_MAN5_SOURCES}
200 pct.conf
.5: ${PCT_CONF_MAN5_SOURCES}
202 datacenter.cfg
.5: ${DATACENTER_CONF_MAN5_SOURCES}
204 %.5: %.adoc
%.5-opts.adoc
${PVE_COMMON_DOC_SOURCES}
205 a2x
${A2X_MAN5_OPTIONS} $*.adoc
206 test -n
"$${NOVIEW}" || man
-l
$@
208 .PHONY
: cleanup-docgen
210 rm -f
*.1 *.5 *.8 *.adoc attributes.txt docinfo.xml