]> git.proxmox.com Git - pve-http-server.git/blame - Makefile
bump version to 3.2-2
[pve-http-server.git] / Makefile
CommitLineData
a9fc6893 1include /usr/share/dpkg/pkg-info.mk
a9fc6893 2
d8218001 3PACKAGE=libpve-http-server-perl
d8218001 4
a9fc6893
TL
5GITVERSION:=$(shell git rev-parse HEAD)
6BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
7
8DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
d8218001
DM
9
10DESTDIR=
11
12PERL5DIR=${DESTDIR}/usr/share/perl5
13DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
14
5a554403 15all:
d8218001
DM
16
17.PHONY: deb
e4bce23e
WB
18deb: ${DEB}
19${DEB}:
a9fc6893
TL
20 rm -rf ${BUILDDIR}
21 rsync -a * ${BUILDDIR}
22 echo "git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
23 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
d8218001
DM
24 lintian ${DEB}
25
88628fd1 26install: PVE
d08808bc
DM
27 install -d -m 755 ${PERL5DIR}/PVE/APIServer
28 install -m 0644 PVE/APIServer/AnyEvent.pm ${PERL5DIR}/PVE/APIServer
63307beb 29 install -m 0644 PVE/APIServer/Formatter.pm ${PERL5DIR}/PVE/APIServer
c610c859 30 install -m 0644 PVE/APIServer/Utils.pm ${PERL5DIR}/PVE/APIServer
63307beb
DM
31 install -d -m 755 ${PERL5DIR}/PVE/APIServer/Formatter
32 install -m 0644 PVE/APIServer/Formatter/Standard.pm ${PERL5DIR}/PVE/APIServer/Formatter
33 install -m 0644 PVE/APIServer/Formatter/Bootstrap.pm ${PERL5DIR}/PVE/APIServer/Formatter
34 install -m 0644 PVE/APIServer/Formatter/HTML.pm ${PERL5DIR}/PVE/APIServer/Formatter
d8218001
DM
35
36.PHONY: upload
37upload: ${DEB}
3396e081 38 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster
d8218001 39
584d34a7 40.PHONY: clean distclean
d8218001 41distclean: clean
fc75d786 42 rm -f examples/simple-demo.pem
d8218001
DM
43
44clean:
8a29f1fc 45 rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo ${BTDIR} examples/simple-demo.lck
d8218001
DM
46 find . -name '*~' -exec rm {} ';'
47
48.PHONY: dinstall
49dinstall: ${DEB}
50 dpkg -i ${DEB}