]> git.proxmox.com Git - pve-container.git/blame - Makefile
debian: support containers upgraded to use systemd
[pve-container.git] / Makefile
CommitLineData
b945fc89 1RELEASE=4.1
f76a2828 2
de81c147 3VERSION=1.0
f76a2828 4PACKAGE=pve-container
5bdebcfa 5PKGREL=58
f76a2828
DM
6
7GITVERSION:=$(shell cat .git/refs/heads/master)
8
9ARCH:=all
10
11DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
12
13all: ${DEB}
14
15.PHONY: dinstall
16dinstall: ${DEB}
17 dpkg -i ${DEB}
18
9c2d4ce9 19.PHONY: deb ${DEB}
f76a2828
DM
20deb ${DEB}:
21 rm -rf build
22 mkdir build
23 rsync -a src/ build
24 rsync -a debian/ build/debian
25 echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
26 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
27 lintian ${DEB}
28
29.PHONY: clean
30clean:
31 make -C src clean
32 rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes
33 find . -name '*~' -exec rm {} ';'
34
35.PHONY: distclean
36distclean: clean
37
38.PHONY: upload
39upload: ${DEB}
40 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
41 mkdir -p /pve/${RELEASE}/extra
42 rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
43 rm -f /pve/${RELEASE}/extra/Packages*
44 cp ${DEB} /pve/${RELEASE}/extra
45 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
46 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
47