]>
Commit | Line | Data |
---|---|---|
b18ac5f8 DM |
1 | PREFIX=/usr |
2 | DOCDIR=${PREFIX}/share/pve2-api-doc/ | |
d91b68dc DM |
3 | |
4 | MANPAGES= \ | |
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 | 13 | PVECLUSTERPODDIR=/usr/share/doc/pve-cluster/pod |
d91b68dc | 14 | PVEMANAGERPODDIR=/usr/share/doc/pve-manager/pod |
b18ac5f8 | 15 | QEMUSERVERPODDIR=/usr/share/doc/qemu-server/pod |
d9aeaa14 | 16 | PVESTORAGEPODDIR=/usr/share/doc/libpve-storage-perl/pod |
b18ac5f8 DM |
17 | |
18 | all: ${MANPAGES} apidoc.js | |
19 | ||
20 | apidata.js: extractapi.pl | |
21 | ./extractapi.pl >$@ | |
22 | ||
23 | JSSRC= apidata.js PVEAPI.js | |
24 | ||
25 | apidoc.js: ${JSSRC} | |
26 | cat ${JSSRC} >$@ | |
27 | ||
28 | pvecm.1.html: ${PVECLUSTERPODDIR}/pvecm.1.pod | |
29 | cat $<|pod2html --noindex > $@ | |
30 | ||
31 | datacenter.cfg.5.html: ${PVECLUSTERPODDIR}/datacenter.cfg.5.pod | |
32 | cat $<|pod2html --noindex > $@ | |
33 | ||
34 | qm.1.html: ${QEMUSERVERPODDIR}/qm.1.pod | |
35 | cat $<|pod2html --noindex > $@ | |
36 | ||
d9aeaa14 DM |
37 | pvesm.1.html: ${PVESTORAGEPODDIR}/pvesm.1.pod |
38 | cat $<|pod2html --noindex > $@ | |
39 | ||
b18ac5f8 DM |
40 | vm.conf.5.html: ${QEMUSERVERPODDIR}/vm.conf.5.pod |
41 | cat $<|pod2html --noindex > $@ | |
42 | ||
d91b68dc DM |
43 | vzdump.1.html: ${PVEMANAGERPODDIR}/vzdump.1.pod |
44 | cat $<|pod2html --noindex > $@ | |
45 | ||
46 | pvectl.1.html: ${PVEMANAGERPODDIR}/pvectl.1.pod | |
47 | cat $<|pod2html --noindex > $@ | |
48 | ||
b18ac5f8 DM |
49 | .PHONY: install |
50 | install: 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 | ||
62 | clean: | |
63 | -rm -rf *~ apidata.js apidoc.js ${MANPAGES} | |
64 | ||
65 |