]> git.proxmox.com Git - pve-spice-protocol.git/blob - Makefile
fix Makefile
[pve-spice-protocol.git] / Makefile
1 RELEASE=4.2
2
3 PACKAGE=libspice-protocol-dev
4 PKGVERSION=0.12.11
5 PKGRELEASE=1
6
7 PKGDIR=spice-protocol-${PKGVERSION}
8 PKGSRC=${PKGDIR}.tar.bz2
9
10 ARCH=all
11
12 DEB=${PACKAGE}_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
13
14
15 all: ${DEB}
16
17 .PHONY: deb
18 deb: $(DEB)
19 $(DEB): ${PKGSRC}
20 rm -rf ${PKGDIR}
21 tar xf ${PKGSRC}
22 cp -a debian ${PKGDIR}/debian
23 cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
24
25 .PHONY: upload
26 upload: ${DEB}
27 tar cf - ${DEB}|ssh repoman@repo.proxmox.com upload
28
29 distclean: clean
30
31 .PHONY: clean
32 clean:
33 rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.buildinfo *.dsc ${PKGDIR}
34
35 .PHONY: dinstall
36 dinstall: ${DEB}
37 dpkg -i ${DEB}