]> git.proxmox.com Git - pve-qemu-kvm.git/blob - Makefile
fix query-balloon
[pve-qemu-kvm.git] / Makefile
1 RELEASE=2.3
2
3 # also update debian/changelog
4 KVMVER=1.3
5 KVMPKGREL=9
6
7 KVMPACKAGE=pve-qemu-kvm
8 KVMDIR=qemu-kvm
9 KVMSRC=${KVMDIR}-src.tar.gz
10
11 ARCH=amd64
12
13 KVM_DEB=${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
14
15 all: ${KVM_DEB} ${KVMSRC}
16
17 .PHONY: download
18 download:
19 rm -rf ${KVMDIR} ${KVMSRC}
20 git clone git://git.qemu-project.org/qemu.git -b master ${KVMDIR}
21 cd ${KVMDIR}; git checkout -b local v1.3.0
22 cd ${KVMDIR}; git am ../seabios-update.patch
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 cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
30 lintian ${KVM_DEB} || true
31
32 .PHONY: upload
33 upload: ${KVM_DEB} ${KVMDIR}-src.tar.gz
34 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
35 mkdir -p /pve/${RELEASE}/extra
36 rm -rf /pve/${RELEASE}/extra/Packages*
37 rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}_*.deb
38 cp ${KVM_DEB} /pve/${RELEASE}/extra
39 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
40 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
41
42 .PHONY: distclean
43 distclean: clean
44
45
46 .PHONY: clean
47 clean:
48 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_*
49
50 .PHONY: dinstall
51 dinstall: ${KVM_DEB}
52 dpkg -i ${KVM_DEB}