buildsys: add libiscsi7 as alternative to libiscsi4
[pve-qemu-kvm.git] / Makefile
blobfc4a6e8449f678a8ae37da48d08ca8169316729e
1 RELEASE=4.4
3 # also update debian/changelog
4 KVMVER=2.7.1
5 KVMPKGREL=3
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 DEB=${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
15 DEB_DBG=${KVMPACKAGE}-dbg_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
16 DEBS=$(DEB) $(DEB_DBG)
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 kvm
33 deb kvm: $(DEBS)
34 $(DEB_DBG): $(DEB)
35 $(DEB): $(KVMSRC)
36 rm -f *.deb
37 rm -rf ${KVMDIR}
38 tar xf ${KVMSRC}
39 tar -C ${KVMDIR} -xJf efi-roms-1182.tar.xz
40 cp -a debian ${KVMDIR}/debian
41 echo "git clone git://git.proxmox.com/git/pve-qemu-kvm.git\\ngit checkout ${GITVERSION}" > ${KVMDIR}/debian/SOURCE
42 # set package version
43 sed -i 's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' ${KVMDIR}/configure
44 cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
45 lintian ${DEBS} || true
47 .PHONY: upload
48 upload: ${DEBS} ${KVMDIR}-src.tar.gz
49 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
51 .PHONY: distclean
52 distclean: clean
55 .PHONY: clean
56 clean:
57 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_* ${DEBS}
59 .PHONY: dinstall
60 dinstall: ${DEBS}
61 dpkg -i ${DEBS}