remove calls to PVE::RPCEnvironment
[pve-common.git] / Makefile
1 VERSION=4.0
2 PKGREL=85
3
4 PACKAGE=libpve-common-perl
5
6 PREFIX=/usr
7 BINDIR=${PREFIX}/bin
8 MANDIR=${PREFIX}/share/man
9 DOCDIR=${PREFIX}/share/doc
10 MAN1DIR=${MANDIR}/man1/
11 PERLDIR=${PREFIX}/share/perl5
12
13 ARCH=all
14 GITVERSION:=$(shell cat .git/refs/heads/master)
15
16 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
17
18 all: ${DEB}
19
20 .PHONY: dinstall
21 dinstall: deb
22 dpkg -i ${DEB}
23
24
25 .PHONY: deb
26 deb ${DEB}:
27 $(MAKE) -C test check
28 rm -rf build
29 rsync -a src/ build
30 rsync -a debian/ build/debian
31 echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
32 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
33 lintian ${DEB}
34
35 .PHONY: clean
36 clean:
37 rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz
38
39 .PHONY: distclean
40 distclean: clean
41
42 .PHONY: check
43 check:
44 $(MAKE) -C test check
45
46 .PHONY: upload
47 upload: ${DEB}
48 tar cf - ${DEB}|ssh repoman@repo.proxmox.com upload
49