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 attributes.txt docinfo.xml
:
50 %-opts.adoc
: ${DGDIR}/gen-
%-opts.pl
51 ${DGDIR}/gen-
$*-opts.pl
>$@.tmp
54 %.adoc
: ${DGDIR}/gen-
%-adoc.pl
55 ${DGDIR}/gen-
$*-adoc.pl
>$@.tmp
59 perl
-I.
-e
"use PVE::CLI::$(subst -,_,$*);print PVE::CLI::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
63 perl
-I.
-e
"use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
67 %.adoc
: ${DGDIR}/%.adoc
72 pve-firewall
.8: ${PVE_FIREWALL_MAN8_SOURCES}
73 a2x
-a docinfo1
-a
"manvolnum=8" -a
"manversion=Release ${DOCRELEASE}" -f manpage pve-firewall.adoc
74 test -n
"$${NOVIEW}" || man
-l
$@
76 pvesm
.1: ${PVESM_MAN1_SOURCES}
77 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage pvesm.adoc
78 test -n
"$${NOVIEW}" || man
-l
$@
80 pct
.1: ${PCT_MAN1_SOURCES}
81 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage pct.adoc
82 test -n
"$${NOVIEW}" || man
-l
$@
84 pvecm
.1: ${PVECM_MAN1_SOURCES}
85 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage pvecm.adoc
86 test -n
"$${NOVIEW}" || man
-l
$@
88 %.5: %.adoc
%.5-opts.adoc
${PVE_COMMON_DOC_SOURCES}
89 a2x
-a docinfo1
-a
"manvolnum=5" -a
"manversion=Release ${DOCRELEASE}" -f manpage
$*.adoc
90 test -n
"$${NOVIEW}" || man
-l
$@
92 .PHONY
: cleanup-docgen
94 rm -f
*.1 *.8 *.adoc attributes.txt docinfo.xml