]> git.proxmox.com Git - pve-http-server.git/blob - Makefile
add new hook function to generate CSRF token
[pve-http-server.git] / Makefile
1 PACKAGE=libpve-http-server-perl
2 PKGVER=1.0
3 PKGREL=1
4
5 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
6
7 DESTDIR=
8
9 PERL5DIR=${DESTDIR}/usr/share/perl5
10 DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
11
12 all: ${DEB}
13
14 .PHONY: deb
15 deb ${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
22 install:
23 install -d -m 755 ${PERL5DIR}/PVE/APIServer
24 install -m 0644 PVE/APIServer/AnyEvent.pm ${PERL5DIR}/PVE/APIServer
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
31
32 .PHONY: upload
33 upload: ${DEB}
34 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
35
36 distclean: clean
37
38 clean:
39 rm -rf ./build *.deb *.changes
40 find . -name '*~' -exec rm {} ';'
41
42 .PHONY: dinstall
43 dinstall: ${DEB}
44 dpkg -i ${DEB}