pve-http-server/Makefile
Dietmar Maurer d82180013b initial import
The PVE/AsyncHTTPServer.pm code is copied from the pve-manager
package (PVE/HTTPServer.pm) and renamed.
2017-01-13 12:57:46 +01:00

39 lines
690 B
Makefile

PACKAGE=libpve-http-server-perl
PKGVER=1.0
PKGREL=1
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
DESTDIR=
PERL5DIR=${DESTDIR}/usr/share/perl5
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
all: ${DEB}
.PHONY: deb
deb ${DEB}:
rm -rf build
rsync -a debian build
make DESTDIR=./build install
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
lintian ${DEB}
install:
install -d -m 755 ${PERL5DIR}/PVE/
install -m 0644 PVE/AsyncHTTPServer.pm ${PERL5DIR}/PVE
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
distclean: clean
clean:
rm -rf ./build *.deb *.changes
find . -name '*~' -exec rm {} ';'
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}