]> git.proxmox.com Git - pve-http-server.git/blame - Makefile
new helper add_dirs (copied from pveproxy.pm)
[pve-http-server.git] / Makefile
CommitLineData
d8218001
DM
1PACKAGE=libpve-http-server-perl
2PKGVER=1.0
3PKGREL=1
4
5DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
6
7DESTDIR=
8
9PERL5DIR=${DESTDIR}/usr/share/perl5
10DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
11
12all: ${DEB}
13
14.PHONY: deb
15deb ${DEB}:
16 rm -rf build
17 rsync -a debian build
18 make DESTDIR=./build install
19 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
20 lintian ${DEB}
21
22install:
d08808bc
DM
23 install -d -m 755 ${PERL5DIR}/PVE/APIServer
24 install -m 0644 PVE/APIServer/AnyEvent.pm ${PERL5DIR}/PVE/APIServer
63307beb
DM
25 install -m 0644 PVE/APIServer/Formatter.pm ${PERL5DIR}/PVE/APIServer
26 install -d -m 755 ${PERL5DIR}/PVE/APIServer/Formatter
27 install -m 0644 PVE/APIServer/Formatter/Standard.pm ${PERL5DIR}/PVE/APIServer/Formatter
28 install -m 0644 PVE/APIServer/Formatter/Bootstrap.pm ${PERL5DIR}/PVE/APIServer/Formatter
29 install -m 0644 PVE/APIServer/Formatter/HTML.pm ${PERL5DIR}/PVE/APIServer/Formatter
30
d8218001
DM
31
32.PHONY: upload
33upload: ${DEB}
34 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
35
36distclean: clean
37
38clean:
39 rm -rf ./build *.deb *.changes
40 find . -name '*~' -exec rm {} ';'
41
42.PHONY: dinstall
43dinstall: ${DEB}
44 dpkg -i ${DEB}