bump version to 5.0-44
[pve-common.git] / Makefile
1 VERSION=5.0
2 PKGREL=44
3
4 PACKAGE=libpve-common-perl
5
6 ARCH=all
7
8 BUILDDIR ?= ${PACKAGE}-${VERSION}
9
10 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
11 DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
12 TARGZ=${PACKAGE}_${VERSION}-${PKGREL}.tar.gz
13
14 all:
15         ${MAKE} -C src
16
17 .PHONY: dinstall
18 dinstall: deb
19         dpkg -i ${DEB}
20
21 ${BUILDDIR}: src debian
22         rm -rf ${BUILDDIR}
23         rsync -a * ${BUILDDIR}
24         echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}/debian/SOURCE
25
26 .PHONY: deb
27 deb: ${DEB}
28 ${DEB}: ${BUILDDIR}
29         cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
30         lintian ${DEB}
31
32 .PHONY: dsc
33 dsc ${TARGZ}: ${DSC}
34 ${DSC}: ${BUILDDIR}
35         cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
36         lintian ${DSC}
37
38 .PHONY: clean distclean
39 distclean: clean
40 clean:
41         rm -rf *~ *.deb *.changes ${BUILDDIR} *.buildinfo *.dsc *.tar.gz
42
43 .PHONY: check
44 check:
45         $(MAKE) -C test check
46
47 .PHONY: install
48 install:
49         ${MAKE} -C src install
50
51 .PHONY: upload
52 upload: ${DEB}
53         tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch
54