]> git.proxmox.com Git - pve2-api-doc.git/blame - data/Makefile
add pvesm
[pve2-api-doc.git] / data / Makefile
CommitLineData
b18ac5f8
DM
1PREFIX=/usr
2DOCDIR=${PREFIX}/share/pve2-api-doc/
d91b68dc
DM
3
4MANPAGES= \
5 pvecm.1.html \
6 qm.1.html \
d9aeaa14 7 pvesm.1.html \
d91b68dc
DM
8 datacenter.cfg.5.html \
9 vm.conf.5.html \
10 vzdump.1.html \
11 pvectl.1.html
12
b18ac5f8 13PVECLUSTERPODDIR=/usr/share/doc/pve-cluster/pod
d91b68dc 14PVEMANAGERPODDIR=/usr/share/doc/pve-manager/pod
b18ac5f8 15QEMUSERVERPODDIR=/usr/share/doc/qemu-server/pod
d9aeaa14 16PVESTORAGEPODDIR=/usr/share/doc/libpve-storage-perl/pod
b18ac5f8
DM
17
18all: ${MANPAGES} apidoc.js
19
20apidata.js: extractapi.pl
21 ./extractapi.pl >$@
22
23JSSRC= apidata.js PVEAPI.js
24
25apidoc.js: ${JSSRC}
26 cat ${JSSRC} >$@
27
28pvecm.1.html: ${PVECLUSTERPODDIR}/pvecm.1.pod
29 cat $<|pod2html --noindex > $@
30
31datacenter.cfg.5.html: ${PVECLUSTERPODDIR}/datacenter.cfg.5.pod
32 cat $<|pod2html --noindex > $@
33
34qm.1.html: ${QEMUSERVERPODDIR}/qm.1.pod
35 cat $<|pod2html --noindex > $@
36
d9aeaa14
DM
37pvesm.1.html: ${PVESTORAGEPODDIR}/pvesm.1.pod
38 cat $<|pod2html --noindex > $@
39
b18ac5f8
DM
40vm.conf.5.html: ${QEMUSERVERPODDIR}/vm.conf.5.pod
41 cat $<|pod2html --noindex > $@
42
d91b68dc
DM
43vzdump.1.html: ${PVEMANAGERPODDIR}/vzdump.1.pod
44 cat $<|pod2html --noindex > $@
45
46pvectl.1.html: ${PVEMANAGERPODDIR}/pvectl.1.pod
47 cat $<|pod2html --noindex > $@
48
b18ac5f8
DM
49.PHONY: install
50install: apidoc.js apidoc.html apidata.js ${MANPAGES}
51 install -d -m 0755 ${DESTDIR}${DOCDIR}
52 install -D -m 0644 apidoc.html ${DESTDIR}${DOCDIR}/index.html;
53 install -D -m 0644 apidoc.js ${DESTDIR}${DOCDIR}/apidoc.js;
54 install -D -m 0644 apidata.js ${DESTDIR}${DOCDIR}/apidata.js;
55 install -D -m 0644 pve-man-include.php ${DESTDIR}/etc/mediawiki-extensions/extensions-available/pve-man-include.php;
56 install -d -m 0755 ${DESTDIR}${DOCDIR}/man
57 install -m 0644 ${MANPAGES} ${DESTDIR}${DOCDIR}/man
58
59#pvelib_DATA = apidoc.js apidoc.html
60#pvelibdir = ${WWW_ROOTDIR}
61
62clean:
63 -rm -rf *~ apidata.js apidoc.js ${MANPAGES}
64
65