]> git.proxmox.com Git - pve-qemu-kvm.git/blob - Makefile
bump version to 1.7-4, disable efi boot roms
[pve-qemu-kvm.git] / Makefile
1 RELEASE=3.1
2
3 # also update debian/changelog
4 KVMVER=1.7
5 KVMPKGREL=4
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 master ${KVMDIR}
22 cd ${KVMDIR}; git checkout v1.7.0
23 # git clone git://git.qemu-project.org/qemu-stable-1.7.git -b stable-1.7 ${KVMDIR}
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 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
37 mkdir -p /pve/${RELEASE}/extra
38 rm -rf /pve/${RELEASE}/extra/Packages*
39 rm -rf /pve/${RELEASE}/extra/${KVMPACKAGE}_*.deb
40 cp ${KVM_DEB} /pve/${RELEASE}/extra
41 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
42 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
43
44 .PHONY: distclean
45 distclean: clean
46
47
48 .PHONY: clean
49 clean:
50 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_*
51
52 .PHONY: dinstall
53 dinstall: ${KVM_DEB}
54 dpkg -i ${KVM_DEB}