]>
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 \ |
2e3b2e21 | 8 | pveum.1.html \ |
d91b68dc DM |
9 | datacenter.cfg.5.html \ |
10 | vm.conf.5.html \ | |
11 | vzdump.1.html \ | |
cdd76a83 DM |
12 | pve-firewall.1.html \ |
13 | pve-ha-lrm.1.html \ | |
14 | pve-ha-crm.1.html \ | |
15 | ha-manager.1.html \ | |
16 | pct.1.html | |
d91b68dc | 17 | |
b18ac5f8 | 18 | PVECLUSTERPODDIR=/usr/share/doc/pve-cluster/pod |
d91b68dc | 19 | PVEMANAGERPODDIR=/usr/share/doc/pve-manager/pod |
b18ac5f8 | 20 | QEMUSERVERPODDIR=/usr/share/doc/qemu-server/pod |
cdd76a83 | 21 | PVECONTAINERPODDIR=/usr/share/doc/pve-container/pod |
d9aeaa14 | 22 | PVESTORAGEPODDIR=/usr/share/doc/libpve-storage-perl/pod |
2e3b2e21 | 23 | PVEACCESSPODDIR=/usr/share/doc/libpve-access-control/pod |
cdd76a83 DM |
24 | PVEFIREWALLPODDIR=/usr/share/doc/pve-firewall/pod |
25 | PVEHAMANAGERPODDIR=/usr/share/doc/pve-ha-manager/pod | |
b18ac5f8 DM |
26 | |
27 | all: ${MANPAGES} apidoc.js | |
28 | ||
29 | apidata.js: extractapi.pl | |
30 | ./extractapi.pl >$@ | |
31 | ||
32 | JSSRC= apidata.js PVEAPI.js | |
33 | ||
34 | apidoc.js: ${JSSRC} | |
35 | cat ${JSSRC} >$@ | |
36 | ||
37 | pvecm.1.html: ${PVECLUSTERPODDIR}/pvecm.1.pod | |
38 | cat $<|pod2html --noindex > $@ | |
39 | ||
2e3b2e21 DM |
40 | pveum.1.html: ${PVEACCESSPODDIR}/pveum.1.pod |
41 | cat $<|pod2html --noindex > $@ | |
42 | ||
b18ac5f8 DM |
43 | datacenter.cfg.5.html: ${PVECLUSTERPODDIR}/datacenter.cfg.5.pod |
44 | cat $<|pod2html --noindex > $@ | |
45 | ||
46 | qm.1.html: ${QEMUSERVERPODDIR}/qm.1.pod | |
47 | cat $<|pod2html --noindex > $@ | |
48 | ||
cdd76a83 DM |
49 | pct.1.html: ${PVECONTAINERPODDIR}/pct.1.pod.gz |
50 | zcat $<|pod2html --noindex > $@ | |
51 | ||
52 | pve-firewall.1.html: ${PVEFIREWALLPODDIR}/pve-firewall.1.pod | |
53 | cat $<|pod2html --noindex > $@ | |
54 | ||
55 | pve-ha-lrm.1.html: ${PVEHAMANAGERPODDIR}/pve-ha-lrm.1.pod | |
56 | cat $<|pod2html --noindex > $@ | |
57 | ||
58 | pve-ha-crm.1.html: ${PVEHAMANAGERPODDIR}/pve-ha-crm.1.pod | |
59 | cat $<|pod2html --noindex > $@ | |
60 | ||
61 | ha-manager.1.html: ${PVEHAMANAGERPODDIR}/ha-manager.1.pod.gz | |
62 | zcat $<|pod2html --noindex > $@ | |
63 | ||
d9aeaa14 DM |
64 | pvesm.1.html: ${PVESTORAGEPODDIR}/pvesm.1.pod |
65 | cat $<|pod2html --noindex > $@ | |
66 | ||
b18ac5f8 DM |
67 | vm.conf.5.html: ${QEMUSERVERPODDIR}/vm.conf.5.pod |
68 | cat $<|pod2html --noindex > $@ | |
69 | ||
d91b68dc DM |
70 | vzdump.1.html: ${PVEMANAGERPODDIR}/vzdump.1.pod |
71 | cat $<|pod2html --noindex > $@ | |
72 | ||
73 | pvectl.1.html: ${PVEMANAGERPODDIR}/pvectl.1.pod | |
74 | cat $<|pod2html --noindex > $@ | |
75 | ||
b18ac5f8 DM |
76 | .PHONY: install |
77 | install: apidoc.js apidoc.html apidata.js ${MANPAGES} | |
78 | install -d -m 0755 ${DESTDIR}${DOCDIR} | |
79 | install -D -m 0644 apidoc.html ${DESTDIR}${DOCDIR}/index.html; | |
80 | install -D -m 0644 apidoc.js ${DESTDIR}${DOCDIR}/apidoc.js; | |
81 | install -D -m 0644 apidata.js ${DESTDIR}${DOCDIR}/apidata.js; | |
82 | install -D -m 0644 pve-man-include.php ${DESTDIR}/etc/mediawiki-extensions/extensions-available/pve-man-include.php; | |
83 | install -d -m 0755 ${DESTDIR}${DOCDIR}/man | |
84 | install -m 0644 ${MANPAGES} ${DESTDIR}${DOCDIR}/man | |
85 | ||
86 | #pvelib_DATA = apidoc.js apidoc.html | |
87 | #pvelibdir = ${WWW_ROOTDIR} | |
88 | ||
89 | clean: | |
90 | -rm -rf *~ apidata.js apidoc.js ${MANPAGES} | |
91 | ||
92 |