Fix #1178: bring back glusterfs-daemonize patch
[pve-qemu-kvm.git] / Makefile
blob6e1966c2b178a61c509cfd45ed244923cf27c7d1
1 RELEASE=4.2
3 # also update debian/changelog
4 KVMVER=2.7.0
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 DEBS= \
15 ${KVMPACKAGE}-dbg_${KVMVER}-${KVMPKGREL}_${ARCH}.deb \
16 ${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}_${ARCH}.deb
19 all: ${DEBS}
21 .PHONY: download
22 download:
23 rm -rf ${KVMDIR} ${KVMSRC}
24 git clone --depth=1 git://git.qemu-project.org/qemu.git -b v${KVMVER} ${KVMDIR}
25 tar czf ${KVMSRC} --exclude CVS --exclude .git --exclude .svn ${KVMDIR}
27 .PHONY: deb
28 deb ${DEBS} kvm: ${KVMSRC}
29 rm -f *.deb
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 # set package version
35 sed -i 's/^pkgversion="".*/pkgversion="${KVMPACKAGE}_${KVMVER}-${KVMPKGREL}"/' ${KVMDIR}/configure
36 cd ${KVMDIR}; dpkg-buildpackage -b -rfakeroot -us -uc
37 lintian ${DEBS} || true
39 .PHONY: upload
40 upload: ${DEBS} ${KVMDIR}-src.tar.gz
41 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
43 .PHONY: distclean
44 distclean: clean
47 .PHONY: clean
48 clean:
49 rm -rf *~ ${KVMDIR} ${KVMPACKAGE}_* ${DEBS}
51 .PHONY: dinstall
52 dinstall: ${DEBS}
53 dpkg -i ${DEBS}