3 PVESM_SOURCES
=attributes.txt pvesm.adoc pvesm
.1-synopsis.adoc
$(shell ls pve-storage-
*.adoc
)
4 PVEUM_SOURCES
=attributes.txt pveum.adoc pveum
.1-synopsis.adoc
5 VZDUMP_SOURCES
=attributes.txt vzdump.adoc vzdump
.1-synopsis.adoc
6 PVEFW_SOURCES
=attributes.txt pve-firewall.adoc pve-firewall
.8-synopsis.adoc
7 QM_SOURCES
=attributes.txt qm.adoc qm
.1-synopsis.adoc
8 PCT_SOURCES
=attributes.txt pct.adoc pct
.1-synopsis.adoc
10 PVE_ADMIN_GUIDE_SOURCES
= \
12 pve-admin-guide.adoc \
22 images
/cluster-nwdiag.svg \
23 images
/node-nwdiag.svg \
24 pve-bibliography.adoc \
28 ADOC_STDARG
= -a icons
-a data-uri
-a
"date=$(shell date)"
29 ADOC_MAN1_HTML_ARGS
=-a
"manvolnum=1" ${ADOC_STDARG}
30 ADOC_MAN8_HTML_ARGS
=-a
"manvolnum=8" ${ADOC_STDARG}
32 %-nwdiag.svg
: %.nwdiag
33 nwdiag
-T svg
$*.nwdiag
-o
$@
;
36 perl
-e
"use PVE::CLI::$(subst -,_,$*);print PVE::CLI::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
39 %.1: %.adoc
%.1-synopsis.adoc docinfo.xml
40 a2x
-a docinfo1
-a
"manvolnum=1" -f manpage
$*.adoc
41 test -z
"$${NOVIEW}" && man
-l
$@
43 %.1.html
: %.adoc
%.1-synopsis.adoc docinfo.xml
44 asciidoc
${ADOC_MAN1_HTML_ARGS} -o
$@
$*.adoc
45 test -z
"$${NOVIEW}" && iceweasel
$@
&
49 perl
-e
"use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
52 %.8: %.adoc
%.8-synopsis.adoc docinfo.xml
53 a2x
-a docinfo1
-a
"manvolnum=1" -f manpage
$*.adoc
54 test -z
"$${NOVIEW}" && man
-l
$@
56 %.8.html
: %.adoc
%.8-synopsis.adoc docinfo.xml
57 asciidoc
${ADOC_MAN8_HTML_ARGS} -o
$@
$*.adoc
58 test -z
"$${NOVIEW}" && iceweasel
$@
&
61 all: pve-admin-guide.html
63 index.html
: index.adoc
${PVE_ADMIN_GUIDE_SOURCES}
64 $(MAKE
) NOVIEW
=1 pve-admin-guide.pdf pve-admin-guide.html pve-admin-guide.epub
65 $(MAKE
) NOVIEW
=1 qm
.1.html pct
.1.html pvesm
.1.html pveum
.1.html vzdump
.1.html pve-firewall
.8.html
66 asciidoc
-a
"date=$(shell date)" index.adoc
67 iceweasel index.html
&
69 pve-admin-guide.html
: ${PVE_ADMIN_GUIDE_SOURCES}
70 asciidoc
-a
"date=$(shell date)" pve-admin-guide.adoc
71 test -z
"$${NOVIEW}" && iceweasel
$@
&
73 pve-admin-guide.pdf
: ${PVE_ADMIN_GUIDE_SOURCES} docinfo.xml pve-admin-guide-docinfo.xml
74 a2x
-a docinfo
-a docinfo1
-f pdf
-L
--dblatex-opts
"-P latex.output.revhistory=0" pve-admin-guide.adoc
75 test -z
"$${NOVIEW}" && iceweasel
$@
&
77 pve-admin-guide.epub
: ${PVE_ADMIN_GUIDE_SOURCES}
78 a2x
-f epub pve-admin-guide.adoc
79 test -z
"$${NOVIEW}" && iceweasel
$@
&
83 rm -rf
*~
*.html
*.pdf
*.epub
*.1 *.8