]> git.proxmox.com Git - pve-container.git/blame - Makefile
fix #1874: autodev hook: setup devices cgroup
[pve-container.git] / Makefile
CommitLineData
967e5acd 1VERSION=2.0
f76a2828 2PACKAGE=pve-container
dee24ffb 3PKGREL=26
f76a2828 4
0717611b 5GITVERSION:=$(shell git rev-parse HEAD)
f76a2828
DM
6
7ARCH:=all
8
9DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
10
11all: ${DEB}
12
13.PHONY: dinstall
14dinstall: ${DEB}
15 dpkg -i ${DEB}
16
6535fcdb 17.PHONY: deb
a3fe0ccf
WB
18deb: ${DEB}
19${DEB}:
f76a2828
DM
20 rm -rf build
21 mkdir build
22 rsync -a src/ build
23 rsync -a debian/ build/debian
24 echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
7ddb81c4 25 cd build; dpkg-buildpackage -b -us -uc
f76a2828
DM
26 lintian ${DEB}
27
28.PHONY: clean
29clean:
30 make -C src clean
5c1520bc 31 rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo
f76a2828
DM
32 find . -name '*~' -exec rm {} ';'
33
34.PHONY: distclean
35distclean: clean
36
37.PHONY: upload
38upload: ${DEB}
3e32cfe7 39 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch