1 # also update debian/changelog
4 DGDIR?
=/usr
/share
/pve-doc-generator
8 PVE_COMMON_DOC_SOURCES
= \
13 PVE_FIREWALL_MAN8_SOURCES
= \
15 pve-firewall
.8-synopsis.adoc \
16 pve-firewall-cluster-opts.adoc \
17 pve-firewall-host-opts.adoc \
18 pve-firewall-vm-opts.adoc \
19 pve-firewall-rules-opts.adoc \
20 pve-firewall-macros.adoc \
21 ${PVE_COMMON_DOC_SOURCES}
25 pvesm
.1-synopsis.adoc \
26 pve-storage-dir.adoc \
27 pve-storage-glusterfs.adoc \
28 pve-storage-iscsi.adoc \
29 pve-storage-iscsidirect.adoc \
30 pve-storage-lvm.adoc \
31 pve-storage-nfs.adoc \
32 pve-storage-rbd.adoc \
33 pve-storage-zfspool.adoc \
34 ${PVE_COMMON_DOC_SOURCES}
36 attributes.txt docinfo.xml
:
40 %-opts.adoc
: ${DGDIR}/gen-
%-opts.pl
44 %.adoc
: ${DGDIR}/gen-
%-adoc.pl
49 perl
-I.
-e
"use PVE::CLI::$(subst -,_,$*);print PVE::CLI::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
53 perl
-I.
-e
"use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
56 %.adoc
: ${DGDIR}/%.adoc
60 pve-firewall
.8: ${PVE_FIREWALL_MAN8_SOURCES}
61 a2x
-a docinfo1
-a
"manvolnum=8" -a
"manversion=Release ${DOCRELEASE}" -f manpage pve-firewall.adoc
62 test -n
"$${NOVIEW}" || man
-l
$@
64 pvesm
.1: ${PVESM_MAN1_SOURCES}
65 a2x
-a docinfo1
-a
"manvolnum=1" -a
"manversion=Release ${DOCRELEASE}" -f manpage pvesm.adoc
66 test -n
"$${NOVIEW}" || man
-l
$@
69 .PHONY
: cleanup-docgen
71 rm -f
*.1 *.8 *.adoc attributes.txt docinfo.xml