]> git.proxmox.com Git - pve-container.git/blob - Makefile
bump version to 1.0-91
[pve-container.git] / Makefile
1 VERSION=1.0
2 PACKAGE=pve-container
3 PKGREL=91
4
5 GITVERSION:=$(shell cat .git/refs/heads/master)
6
7 ARCH:=all
8
9 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
10
11 all: ${DEB}
12
13 .PHONY: dinstall
14 dinstall: ${DEB}
15 dpkg -i ${DEB}
16
17 .PHONY: deb
18 deb ${DEB}:
19 rm -rf build
20 mkdir build
21 rsync -a src/ build
22 rsync -a debian/ build/debian
23 echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
24 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
25 lintian ${DEB}
26
27 .PHONY: clean
28 clean:
29 make -C src clean
30 rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes
31 find . -name '*~' -exec rm {} ';'
32
33 .PHONY: distclean
34 distclean: clean
35
36 .PHONY: upload
37 upload: ${DEB}
38 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload