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