]>
Commit | Line | Data |
---|---|---|
b18ac5f8 DM |
1 | PREFIX=/usr |
2 | DOCDIR=${PREFIX}/share/pve2-api-doc/ | |
d91b68dc | 3 | |
3b0d584c DM |
4 | MAN1PAGES=$(subst .pm,.1.html,$(subst _,-,$(shell cd /usr/share/perl5/PVE/CLI; ls *.pm))) |
5 | ||
6 | # we currently do not generate manpages for service | |
7 | #MAN8PAGES=$(subst .pm,.8.html,$(subst _,-,$(shell cd /usr/share/perl5/PVE/Service; ls *.pm))) | |
8 | ||
d91b68dc | 9 | MANPAGES= \ |
3b0d584c | 10 | ${MAN1PAGES} \ |
c4817fd4 | 11 | dab.1.html \ |
3b0d584c | 12 | pve-firewall.8.html \ |
d91b68dc DM |
13 | datacenter.cfg.5.html \ |
14 | vm.conf.5.html \ | |
3b0d584c | 15 | pct.conf.5.html |
d91b68dc | 16 | |
b18ac5f8 | 17 | PVECLUSTERPODDIR=/usr/share/doc/pve-cluster/pod |
d91b68dc | 18 | PVEMANAGERPODDIR=/usr/share/doc/pve-manager/pod |
b18ac5f8 | 19 | QEMUSERVERPODDIR=/usr/share/doc/qemu-server/pod |
cdd76a83 | 20 | PVECONTAINERPODDIR=/usr/share/doc/pve-container/pod |
d9aeaa14 | 21 | PVESTORAGEPODDIR=/usr/share/doc/libpve-storage-perl/pod |
2e3b2e21 | 22 | PVEACCESSPODDIR=/usr/share/doc/libpve-access-control/pod |
cdd76a83 DM |
23 | PVEFIREWALLPODDIR=/usr/share/doc/pve-firewall/pod |
24 | PVEHAMANAGERPODDIR=/usr/share/doc/pve-ha-manager/pod | |
c4817fd4 | 25 | DABPODDIR=/usr/share/doc/dab/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 | ||
c4817fd4 DM |
37 | dab.1.html: ${DABPODDIR}/dab.1.pod |
38 | cat $<|pod2html --noindex > $@ | |
39 | ||
5985f5d4 DM |
40 | pvecm.1.html: ${PVECLUSTERPODDIR}/pvecm.1.pod.gz |
41 | zcat $<|pod2html --noindex > $@ | |
b18ac5f8 | 42 | |
2e3b2e21 DM |
43 | pveum.1.html: ${PVEACCESSPODDIR}/pveum.1.pod |
44 | cat $<|pod2html --noindex > $@ | |
45 | ||
b18ac5f8 DM |
46 | datacenter.cfg.5.html: ${PVECLUSTERPODDIR}/datacenter.cfg.5.pod |
47 | cat $<|pod2html --noindex > $@ | |
48 | ||
49 | qm.1.html: ${QEMUSERVERPODDIR}/qm.1.pod | |
50 | cat $<|pod2html --noindex > $@ | |
51 | ||
3b0d584c DM |
52 | qmrestore.1.html: ${QEMUSERVERPODDIR}/qmrestore.1.pod |
53 | cat $<|pod2html --noindex > $@ | |
54 | ||
cdd76a83 DM |
55 | pct.1.html: ${PVECONTAINERPODDIR}/pct.1.pod.gz |
56 | zcat $<|pod2html --noindex > $@ | |
57 | ||
01369a2c DM |
58 | pct.conf.5.html: ${PVECONTAINERPODDIR}/pct.conf.5.pod.gz |
59 | zcat $<|pod2html --noindex > $@ | |
e9888345 | 60 | |
01369a2c | 61 | pve-firewall.8.html: ${PVEFIREWALLPODDIR}/pve-firewall.8.pod |
cdd76a83 DM |
62 | cat $<|pod2html --noindex > $@ |
63 | ||
3b0d584c DM |
64 | #pve-ha-lrm.1.html: ${PVEHAMANAGERPODDIR}/pve-ha-lrm.1.pod |
65 | # cat $<|pod2html --noindex > $@ | |
cdd76a83 | 66 | |
3b0d584c DM |
67 | #pve-ha-crm.1.html: ${PVEHAMANAGERPODDIR}/pve-ha-crm.1.pod |
68 | # cat $<|pod2html --noindex > $@ | |
cdd76a83 DM |
69 | |
70 | ha-manager.1.html: ${PVEHAMANAGERPODDIR}/ha-manager.1.pod.gz | |
71 | zcat $<|pod2html --noindex > $@ | |
72 | ||
d9aeaa14 DM |
73 | pvesm.1.html: ${PVESTORAGEPODDIR}/pvesm.1.pod |
74 | cat $<|pod2html --noindex > $@ | |
75 | ||
b18ac5f8 DM |
76 | vm.conf.5.html: ${QEMUSERVERPODDIR}/vm.conf.5.pod |
77 | cat $<|pod2html --noindex > $@ | |
78 | ||
d91b68dc DM |
79 | vzdump.1.html: ${PVEMANAGERPODDIR}/vzdump.1.pod |
80 | cat $<|pod2html --noindex > $@ | |
81 | ||
3b0d584c DM |
82 | pveceph.1.html: ${PVEMANAGERPODDIR}/pveceph.1.pod |
83 | cat $<|pod2html --noindex > $@ | |
84 | ||
85 | pvesubscription.1.html: ${PVEMANAGERPODDIR}/pvesubscription.1.pod | |
86 | cat $<|pod2html --noindex > $@ | |
87 | ||
b18ac5f8 DM |
88 | .PHONY: install |
89 | install: apidoc.js apidoc.html apidata.js ${MANPAGES} | |
90 | install -d -m 0755 ${DESTDIR}${DOCDIR} | |
91 | install -D -m 0644 apidoc.html ${DESTDIR}${DOCDIR}/index.html; | |
92 | install -D -m 0644 apidoc.js ${DESTDIR}${DOCDIR}/apidoc.js; | |
93 | install -D -m 0644 apidata.js ${DESTDIR}${DOCDIR}/apidata.js; | |
94 | install -D -m 0644 pve-man-include.php ${DESTDIR}/etc/mediawiki-extensions/extensions-available/pve-man-include.php; | |
95 | install -d -m 0755 ${DESTDIR}${DOCDIR}/man | |
96 | install -m 0644 ${MANPAGES} ${DESTDIR}${DOCDIR}/man | |
97 | ||
98 | #pvelib_DATA = apidoc.js apidoc.html | |
99 | #pvelibdir = ${WWW_ROOTDIR} | |
100 | ||
101 | clean: | |
102 | -rm -rf *~ apidata.js apidoc.js ${MANPAGES} | |
103 | ||
104 |