]> git.proxmox.com Git - novnc-pve.git/commitdiff
buildsys: refactor to align more with the rest of our makefiles
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Sep 2019 14:31:09 +0000 (16:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Sep 2019 14:31:09 +0000 (16:31 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 49890a07ffa91b870bc60845104a763f765f7544..2419beb4f2090245904ab1ae6f717e68d83274b0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,8 +10,7 @@ GITVERSION:=$(shell git rev-parse HEAD)
 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
-all: ${DEB}
-       @echo ${DEB}
+all:
 
 ${SRCDIR}/vnc.html: submodule
 ${BUILDDIR}: $(SRCDIR)/vnc.html
@@ -35,7 +34,7 @@ ${DSC}: ${BUILDDIR}
 
 .PHONY: submodule
 submodule:
-       git submodule update --init
+       test -f "${SRCDIR}/VERSION" || git submodule update --init
 
 .PHONY: download
 download ${SRCDIR}:
@@ -50,7 +49,7 @@ distclean: clean
 
 .PHONY: clean
 clean:
-       rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
+       rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo ${PACKAGE}*.tar.gz
 
 .PHONY: dinstall
 dinstall: deb