1 DGDIR?
=/usr
/share
/pve-doc-generator
5 PVE_FIREWALL_MAN8_SOURCES
= \
7 pve-firewall
.8-synopsis.adoc \
8 pve-firewall-cluster-opts.adoc \
9 pve-firewall-host-opts.adoc \
10 pve-firewall-vm-opts.adoc \
11 pve-firewall-rules-opts.adoc \
12 pve-firewall-macros.adoc \
16 attributes.txt docinfo.xml
:
20 %-opts.adoc
: ${DGDIR}/gen-
%-opts.pl
24 %.adoc
: ${DGDIR}/gen-
%-adoc.pl
29 perl
-I.
-e
"use PVE::CLI::$(subst -,_,$*);print PVE::CLI::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
33 perl
-I.
-e
"use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
36 %.adoc
: ${DGDIR}/%.adoc
40 pve-firewall
.8: ${PVE_FIREWALL_MAN8_SOURCES}
41 a2x
-a docinfo1
-a
"manvolnum=8" -a
"manversion=Release ${RELEASE}" -f manpage pve-firewall.adoc
42 test -n
"$${NOVIEW}" || man
-l
$@
45 .PHONY
: cleanup-docgen
47 rm -f
*.1 *.8 *.adoc attributes.txt docinfo.xml