]> git.proxmox.com Git - pve-qemu-kvm.git/blob - Makefile
update qemu sources with reverted commit b8eb5512
[pve-qemu-kvm.git] / Makefile
1 RELEASE=4.0
2
3 # also update debian/changelog
4 KVMVER=2.4
5 KVMPKGREL=3
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 DEBS= \
15 ${KVMPACKAGE}-dbg_${KVMVER}-${KVMPKGREL}_${ARCH}.deb \
16 ${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
17
18
19 all: ${DEBS}
20
21 .PHONY: download
22 download:
23 rm -rf ${KVMDIR} ${KVMSRC}
24 #git clone git://git.qemu-project.org/qemu.git -b stable-2.2 ${KVMDIR}
25 git clone git://git.qemu-project.org/qemu.git ${KVMDIR}
26 cd ${KVMDIR}; git checkout v2.4.0; git revert --no-edit b8eb5512fd8a115f164edbbe897cdf8884920ccb
27 tar czf ${KVMSRC} --exclude CVS --exclude .git --exclude .svn ${KVMDIR}
28
29 ${DEBS} kvm: ${KVMSRC}
30 rm -rf ${KVMDIR}
31 tar xf ${KVMSRC}
32 cp -a debian ${KVMDIR}/debian
33 echo "git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian/SOURCE
34 cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
35 lintian ${DEBS} || true
36
37 .PHONY: upload
38 upload: ${DEBS} ${KVMDIR}-src.tar.gz
39 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
40 mkdir -p /pve/${RELEASE}/extra
41 rm -rf /pve/${RELEASE}/extra/Packages*
42 rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}_*.deb
43 rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}-dbg_*.deb
44 cp ${DEBS} /pve/${RELEASE}/extra
45 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
46 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
47
48 .PHONY: distclean
49 distclean: clean
50
51
52 .PHONY: clean
53 clean:
54 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_* ${DEBS}
55
56 .PHONY: dinstall
57 dinstall: ${DEBS}
58 dpkg -i ${DEBS}