]> git.proxmox.com Git - pve-container.git/blob - Makefile
bump version to 1.0-67
[pve-container.git] / Makefile
1 RELEASE=4.2
2
3 VERSION=1.0
4 PACKAGE=pve-container
5 PKGREL=67
6
7 GITVERSION:=$(shell cat .git/refs/heads/master)
8
9 ARCH:=all
10
11 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
12
13 all: ${DEB}
14
15 .PHONY: dinstall
16 dinstall: ${DEB}
17 dpkg -i ${DEB}
18
19 .PHONY: deb ${DEB}
20 deb ${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
30 clean:
31 make -C src clean
32 rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes
33 find . -name '*~' -exec rm {} ';'
34
35 .PHONY: distclean
36 distclean: clean
37
38 .PHONY: upload
39 upload: ${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