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