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}
49 ${PVE_COMMON_DOC_SOURCES}
51 QMRESTORE_MAN1_SOURCES
= \
53 qmrestore
.1-synopsis.adoc \
54 ${PVE_COMMON_DOC_SOURCES}
58 pveum
.1-synopsis.adoc \
59 ${PVE_COMMON_DOC_SOURCES}
61 HA_MANAGER_MAN1_SOURCES
= \
63 ha-manager
.1-synopsis.adoc \
64 ${PVE_COMMON_DOC_SOURCES}
66 PVE_HA_CRM_MAN8_SOURCES
= \
68 pve-ha-crm
.8-synopsis.adoc \
69 ${PVE_COMMON_DOC_SOURCES}
71 PVE_HA_LRM_MAN8_SOURCES
= \
73 pve-ha-lrm
.8-synopsis.adoc \
74 ${PVE_COMMON_DOC_SOURCES}
76 attributes.txt docinfo.xml
:
80 %-opts.adoc
: ${DGDIR}/gen-
%-opts.pl
81 ${DGDIR}/gen-
$*-opts.pl
>$@.tmp
84 %.adoc
: ${DGDIR}/gen-
%-adoc.pl
85 ${DGDIR}/gen-
$*-adoc.pl
>$@.tmp
89 perl
-I.
-e
"use PVE::CLI::$(subst -,_,$*);print PVE::CLI::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
93 perl
-I.
-e
"use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
97 %.adoc
: ${DGDIR}/%.adoc
102 pve-firewall
.8: ${PVE_FIREWALL_MAN8_SOURCES}
103 a2x
-a docinfo1
-a
"manvolnum=8" -a
"manversion=Release ${DOCRELEASE}" -f manpage pve-firewall.adoc
104 test -n
"$${NOVIEW}" || man
-l
$@
106 pvesm
.1: ${PVESM_MAN1_SOURCES}
107 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage pvesm.adoc
108 test -n
"$${NOVIEW}" || man
-l
$@
110 pct
.1: ${PCT_MAN1_SOURCES}
111 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage pct.adoc
112 test -n
"$${NOVIEW}" || man
-l
$@
114 qm
.1: ${QM_MAN1_SOURCES}
115 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage qm.adoc
116 test -n
"$${NOVIEW}" || man
-l
$@
118 qmrestore
.1: ${QMRESTORE_MAN1_SOURCES}
119 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage qmrestore.adoc
120 test -n
"$${NOVIEW}" || man
-l
$@
122 pvecm
.1: ${PVECM_MAN1_SOURCES}
123 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage pvecm.adoc
124 test -n
"$${NOVIEW}" || man
-l
$@
126 pveum
.1: ${PVEUM_MAN1_SOURCES}
127 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage pveum.adoc
128 test -n
"$${NOVIEW}" || man
-l
$@
130 ha-manager
.1: ${HA_MANAGER_MAN1_SOURCES}
131 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage ha-manager.adoc
132 test -n
"$${NOVIEW}" || man
-l
$@
134 pve-ha-crm
.8: ${PVE_HA_CRM_MAN8_SOURCES}
135 a2x
-a docinfo1
-a
"manvolnum=8" -a
"manversion=Release ${DOCRELEASE}" -f manpage pve-ha-crm.adoc
136 test -n
"$${NOVIEW}" || man
-l
$@
138 pve-ha-lrm
.8: ${PVE_HA_LRM_MAN8_SOURCES}
139 a2x
-a docinfo1
-a
"manvolnum=8" -a
"manversion=Release ${DOCRELEASE}" -f manpage pve-ha-lrm.adoc
140 test -n
"$${NOVIEW}" || man
-l
$@
142 %.5: %.adoc
%.5-opts.adoc
${PVE_COMMON_DOC_SOURCES}
143 a2x
-a docinfo1
-a
"manvolnum=5" -a
"manversion=Release ${DOCRELEASE}" -f manpage
$*.adoc
144 test -n
"$${NOVIEW}" || man
-l
$@
146 .PHONY
: cleanup-docgen
148 rm -f
*.1 *.8 *.adoc attributes.txt docinfo.xml