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