the "all" lead to never satisfying the ${DEB} dependency
since it could not find pacakge_"all".deb
dinstall was defined two times
buildinfo was missing in the clean target
Acked-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PKGDIR=spice-protocol-${PKGVERSION}
PKGSRC=${PKGDIR}.tar.bz2
-ARCH:="all"
+ARCH=all
DEB=${PACKAGE}_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
all: ${DEB}
-.PHONY: dinstall
-dinstall: deb
- dpkg -i ${DEB}
-
.PHONY: deb
-${DEB} deb: ${PKGSRC}
+deb: $(DEB)
+$(DEB): ${PKGSRC}
rm -rf ${PKGDIR}
tar xf ${PKGSRC}
cp -a debian ${PKGDIR}/debian
.PHONY: clean
clean:
- rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.dsc ${PKGDIR}
+ rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.buildinfo *.dsc ${PKGDIR}
.PHONY: dinstall
dinstall: ${DEB}