]> git.proxmox.com Git - pve-container.git/blame - Makefile
start: use root cpuset cgroup if the lxc one fails
[pve-container.git] / Makefile
CommitLineData
de81c147 1VERSION=1.0
f76a2828 2PACKAGE=pve-container
fb33c6f4 3PKGREL=84
f76a2828
DM
4
5GITVERSION:=$(shell cat .git/refs/heads/master)
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
f76a2828
DM
18deb ${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
28clean:
29 make -C src clean
30 rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes
31 find . -name '*~' -exec rm {} ';'
32
33.PHONY: distclean
34distclean: clean
35
36.PHONY: upload
37upload: ${DEB}
c9c3758d 38 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload