RELEASE=4.2 PACKAGE=libspice-protocol-dev PKGVERSION=0.12.11 PKGRELEASE=1 PKGDIR=spice-protocol-${PKGVERSION} PKGSRC=${PKGDIR}.tar.bz2 ARCH=all DEB=${PACKAGE}_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb all: ${DEB} .PHONY: deb deb: $(DEB) $(DEB): ${PKGSRC} rm -rf ${PKGDIR} tar xf ${PKGSRC} cp -a debian ${PKGDIR}/debian cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc .PHONY: upload upload: ${DEB} tar cf - ${DEB}|ssh repoman@repo.proxmox.com upload distclean: clean .PHONY: clean clean: rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.buildinfo *.dsc ${PKGDIR} .PHONY: dinstall dinstall: ${DEB} dpkg -i ${DEB}