]> git.proxmox.com Git - pve-http-server.git/blob - Makefile
AsyncHTTPServer.pm: fix dependencies, remove handler implementation
[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/
24 install -m 0644 PVE/AsyncHTTPServer.pm ${PERL5DIR}/PVE
25
26 .PHONY: upload
27 upload: ${DEB}
28 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
29
30 distclean: clean
31
32 clean:
33 rm -rf ./build *.deb *.changes
34 find . -name '*~' -exec rm {} ';'
35
36 .PHONY: dinstall
37 dinstall: ${DEB}
38 dpkg -i ${DEB}