]> git.proxmox.com Git - pve-http-server.git/blame_incremental - Makefile
access control: also include ipv6 in 'all'
[pve-http-server.git] / Makefile
... / ...
CommitLineData
1include /usr/share/dpkg/pkg-info.mk
2
3PACKAGE=libpve-http-server-perl
4
5GITVERSION:=$(shell git rev-parse HEAD)
6BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
7
8DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
9
10DESTDIR=
11
12PERL5DIR=${DESTDIR}/usr/share/perl5
13DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
14
15all:
16
17.PHONY: deb
18deb: ${DEB}
19${DEB}:
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
24 lintian ${DEB}
25
26install: PVE
27 install -d -m 755 ${PERL5DIR}/PVE/APIServer
28 install -m 0644 PVE/APIServer/AnyEvent.pm ${PERL5DIR}/PVE/APIServer
29 install -m 0644 PVE/APIServer/Formatter.pm ${PERL5DIR}/PVE/APIServer
30 install -m 0644 PVE/APIServer/Utils.pm ${PERL5DIR}/PVE/APIServer
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
35
36.PHONY: upload
37upload: ${DEB}
38 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster
39
40.PHONY: clean distclean
41distclean: clean
42 rm -f examples/simple-demo.pem
43
44clean:
45 rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo ${BTDIR} examples/simple-demo.lck
46 find . -name '*~' -exec rm {} ';'
47
48.PHONY: dinstall
49dinstall: ${DEB}
50 dpkg -i ${DEB}