bump version to 2.7.0-7
[pve-qemu-kvm.git] / Makefile
blob92113eabb5b3fa8126f0cd393f8fefdc637a0374
1 RELEASE=4.2
3 # also update debian/changelog
4 KVMVER=2.7.0
5 KVMPKGREL=7
7 KVMPACKAGE=pve-qemu-kvm
8 KVMDIR=qemu-kvm
9 KVMSRC=${KVMDIR}-src.tar.gz
11 ARCH=amd64
12 GITVERSION:=$(shell git rev-parse master)
14 DEBS= \
15 ${KVMPACKAGE}-dbg_${KVMVER}-${KVMPKGREL}_${ARCH}.deb \
16 ${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
19 all: ${DEBS}
21 .PHONY: download
22 download:
23 @echo "--- ---"
24 @echo "--- TODO when updating to a new release: ---"
25 @echo "--- Check if efi-roms-1182.tar.xz is still required. ---"
26 @echo "--- ---"
27 @false
28 rm -rf ${KVMDIR} ${KVMSRC}
29 git clone --depth=1 git://git.qemu-project.org/qemu.git -b v${KVMVER} ${KVMDIR}
30 tar czf ${KVMSRC} --exclude CVS --exclude .git --exclude .svn ${KVMDIR}
32 .PHONY: deb
33 deb ${DEBS} kvm: ${KVMSRC}
34 rm -f *.deb
35 rm -rf ${KVMDIR}
36 tar xf ${KVMSRC}
37 tar -C ${KVMDIR} -xJf efi-roms-1182.tar.xz
38 cp -a debian ${KVMDIR}/debian
39 echo "git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian/SOURCE
40 # set package version
41 sed -i 's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' ${KVMDIR}/configure
42 cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
43 lintian ${DEBS} || true
45 .PHONY: upload
46 upload: ${DEBS} ${KVMDIR}-src.tar.gz
47 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
49 .PHONY: distclean
50 distclean: clean
53 .PHONY: clean
54 clean:
55 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_* ${DEBS}
57 .PHONY: dinstall
58 dinstall: ${DEBS}
59 dpkg -i ${DEBS}