pve-faq.adoc: Q: what is QEMU?
[pve-docs.git] / Makefile
CommitLineData
a4346554 1RELEASE=4.1
deb7f2ea
DM
2
3PVESM_SOURCES=attributes.txt pvesm.adoc pvesm.1-synopsis.adoc $(shell ls pve-storage-*.adoc)
4PVEUM_SOURCES=attributes.txt pveum.adoc pveum.1-synopsis.adoc
5VZDUMP_SOURCES=attributes.txt vzdump.adoc vzdump.1-synopsis.adoc
6PVEFW_SOURCES=attributes.txt pve-firewall.adoc pve-firewall.8-synopsis.adoc
7QM_SOURCES=attributes.txt qm.adoc qm.1-synopsis.adoc
8PCT_SOURCES=attributes.txt pct.adoc pct.1-synopsis.adoc
9
10PVE_ADMIN_GUIDE_SOURCES= \
11 sysadmin.adoc \
12 pve-admin-guide.adoc \
13 pve-intro.adoc \
14 pmxcfs.adoc \
15 pve-faq.adoc \
16 ${QM_SOURCES} \
17 ${PCT_SOURCES} \
18 ${PVEFW_SOURCES} \
19 ${PVEUM_SOURCES} \
20 ${PVESM_SOURCES} \
21 ${VZDUMP_SOURCES} \
22 images/cluster-nwdiag.svg \
23 images/node-nwdiag.svg \
24 pve-bibliography.adoc \
caf01dfc 25 GFDL.adoc \
deb7f2ea
DM
26 attributes.txt
27
28ADOC_STDARG= -a icons -a data-uri -a "date=$(shell date)"
db3cc8fc
DM
29ADOC_MAN1_HTML_ARGS=-a "manvolnum=1" ${ADOC_STDARG} -a "revnumber=${RELEASE}"
30ADOC_MAN8_HTML_ARGS=-a "manvolnum=8" ${ADOC_STDARG} -a "revnumber=${RELEASE}"
deb7f2ea
DM
31
32%-nwdiag.svg: %.nwdiag
33 nwdiag -T svg $*.nwdiag -o $@;
34
35%.1-synopsis.adoc:
36 perl -e "use PVE::CLI::$(subst -,_,$*);print PVE::CLI::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
37 mv $@.tmp $@
38
39%.1: %.adoc %.1-synopsis.adoc docinfo.xml
db3cc8fc 40 a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${RELEASE}" -f manpage $*.adoc
deb7f2ea
DM
41 test -z "$${NOVIEW}" && man -l $@
42
43%.1.html: %.adoc %.1-synopsis.adoc docinfo.xml
44 asciidoc ${ADOC_MAN1_HTML_ARGS} -o $@ $*.adoc
45 test -z "$${NOVIEW}" && iceweasel $@ &
46
47
48%.8-synopsis.adoc:
49 perl -e "use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
50 mv $@.tmp $@
51
52%.8: %.adoc %.8-synopsis.adoc docinfo.xml
db3cc8fc 53 a2x -a docinfo1 -a "manvolnum=8" -a "manversion=Release ${RELEASE}" -f manpage $*.adoc
deb7f2ea
DM
54 test -z "$${NOVIEW}" && man -l $@
55
56%.8.html: %.adoc %.8-synopsis.adoc docinfo.xml
57 asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ $*.adoc
58 test -z "$${NOVIEW}" && iceweasel $@ &
59
60
61all: pve-admin-guide.html
62
63index.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
db3cc8fc 66 asciidoc -a "date=$(shell date)" -a "revnumber=${RELEASE}" index.adoc
deb7f2ea
DM
67 iceweasel index.html &
68
69pve-admin-guide.html: ${PVE_ADMIN_GUIDE_SOURCES}
a4346554 70 asciidoc -a "revnumber=${RELEASE}" -a "date=$(shell date)" pve-admin-guide.adoc
deb7f2ea
DM
71 test -z "$${NOVIEW}" && iceweasel $@ &
72
2296c490 73pve-admin-guide.pdf: ${PVE_ADMIN_GUIDE_SOURCES} docinfo.xml pve-admin-guide-docinfo.xml
8f13ba5f 74 grep ">Release ${RELEASE}<" pve-admin-guide-docinfo.xml || (echo "wrong release in pve-admin-guide-docinfo.xml" && false);
2296c490 75 a2x -a docinfo -a docinfo1 -f pdf -L --dblatex-opts "-P latex.output.revhistory=0" pve-admin-guide.adoc
deb7f2ea
DM
76 test -z "$${NOVIEW}" && iceweasel $@ &
77
78pve-admin-guide.epub: ${PVE_ADMIN_GUIDE_SOURCES}
79 a2x -f epub pve-admin-guide.adoc
80 test -z "$${NOVIEW}" && iceweasel $@ &
81
82
83clean:
84 rm -rf *~ *.html *.pdf *.epub *.1 *.8