]> git.proxmox.com Git - pve-qemu-kvm.git/blob - Makefile
vmstate snapshot : implement cancelled state V2
[pve-qemu-kvm.git] / Makefile
1 RELEASE=3.3
2
3 # also update debian/changelog
4 KVMVER=2.1
5 KVMPKGREL=12
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.1 ${KVMDIR}
22 cd ${KVMDIR}; git checkout v2.1.3
23 tar czf ${KVMSRC} --exclude CVS --exclude .git --exclude .svn ${KVMDIR}
24
25 ${KVM_DEB} kvm: ${KVMSRC}
26 rm -rf ${KVMDIR}
27 tar xf ${KVMSRC}
28 cp -a debian ${KVMDIR}/debian
29 echo "git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian/SOURCE
30 cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
31 lintian ${KVM_DEB} || true
32
33 .PHONY: upload
34 upload: ${KVM_DEB} ${KVMDIR}-src.tar.gz
35 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
36 mkdir -p /pve/${RELEASE}/extra
37 rm -rf /pve/${RELEASE}/extra/Packages*
38 rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}_*.deb
39 cp ${KVM_DEB} /pve/${RELEASE}/extra
40 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
41 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
42
43 .PHONY: distclean
44 distclean: clean
45
46
47 .PHONY: clean
48 clean:
49 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_*
50
51 .PHONY: dinstall
52 dinstall: ${KVM_DEB}
53 dpkg -i ${KVM_DEB}