]> git.proxmox.com Git - pve-qemu-kvm.git/blob - Makefile
bump version to 2.2-28
[pve-qemu-kvm.git] / Makefile
1 RELEASE=3.4
2
3 # also update debian/changelog
4 KVMVER=2.2
5 KVMPKGREL=28
6
7 KVMPACKAGE=pve-qemu-kvm
8 KVMDIR=qemu-kvm
9 KVMSRC=${KVMDIR}-src.tar.gz
10
11 ARCH=amd64
12 GITVERSION:=$(shell cat .git/refs/heads/master)
13
14 KVM_DEB=${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
15
16 all: ${KVM_DEB} ${KVMSRC}
17
18 .PHONY: download
19 download:
20 rm -rf ${KVMDIR} ${KVMSRC}
21 git clone git://git.qemu-project.org/qemu.git -b stable-2.2 ${KVMDIR}
22 #git clone git://git.qemu-project.org/qemu.git ${KVMDIR}
23 cd ${KVMDIR}; git checkout v2.2.1
24 tar czf ${KVMSRC} --exclude CVS --exclude .git --exclude .svn ${KVMDIR}
25
26 ${KVM_DEB} kvm: ${KVMSRC}
27 rm -rf ${KVMDIR}
28 tar xf ${KVMSRC}
29 cp -a debian ${KVMDIR}/debian
30 echo "git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian/SOURCE
31 cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
32 lintian ${KVM_DEB} || true
33
34 .PHONY: upload
35 upload: ${KVM_DEB} ${KVMDIR}-src.tar.gz
36 tar -cf - ${KVM_DEB} | ssh repoman@repo.proxmox.com upload --dist wheezy
37
38 .PHONY: distclean
39 distclean: clean
40
41
42 .PHONY: clean
43 clean:
44 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_*
45
46 .PHONY: dinstall
47 dinstall: ${KVM_DEB}
48 dpkg -i ${KVM_DEB}