mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-02 21:30:17 +00:00
39 lines
712 B
Makefile
39 lines
712 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/APIServer
|
|
install -m 0644 PVE/APIServer/AnyEvent.pm ${PERL5DIR}/PVE/APIServer
|
|
|
|
.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}
|