]> git.proxmox.com Git - pve-container.git/blob - Makefile
bump version to 5.0.11
[pve-container.git] / Makefile
1 PACKAGE=pve-container
2 PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1
3 PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2
4
5 GITVERSION:=$(shell git rev-parse HEAD)
6 BUILDDIR ?= build
7
8 ARCH:=all
9
10 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
11 DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
12
13 all: ${DEB}
14
15 .PHONY: dinstall
16 dinstall: ${DEB}
17 dpkg -i ${DEB}
18
19 ${BUILDDIR}:
20 rm -rf ${BUILDDIR}
21 rsync -a src/ ${BUILDDIR}
22 rsync -a debian ${BUILDDIR}/
23 echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
24
25 .PHONY: deb
26 deb: ${DEB}
27 ${DEB}: ${BUILDDIR}
28 cd build; dpkg-buildpackage -b -us -uc
29 lintian ${DEB}
30
31
32 .PHONY: dsc
33 dsc: ${DSC}
34 ${DSC}: ${BUILDDIR}
35 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
36 lintian ${DSC}
37
38 .PHONY: clean
39 clean:
40 make -C src clean
41 rm -rf *.deb ${PACKAGE}*.tar.gz *.changes *.buildinfo ${DSC} ${BUILDDIR}
42 find . -name '*~' -exec rm {} ';'
43
44 .PHONY: distclean
45 distclean: clean
46
47 .PHONY: upload
48 upload: ${DEB}
49 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch