]> git.proxmox.com Git - pve-spice-protocol.git/commitdiff
fix Makefile
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 26 Sep 2018 13:09:30 +0000 (15:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 28 Sep 2018 11:13:21 +0000 (13:13 +0200)
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>
Makefile

index cb657bc9d575295c8aae3c8d85a4bda9615efc40..9c43b3033cb07d07df048599810615671fd058b6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,19 +7,16 @@ PKGRELEASE=1
 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
@@ -33,7 +30,7 @@ distclean: clean
 
 .PHONY: clean
 clean:
-       rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.dsc ${PKGDIR}
+       rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.buildinfo *.dsc ${PKGDIR}
 
 .PHONY: dinstall
 dinstall: ${DEB}