[pve-devel] [PATCH 2/2] buildsys: ad BUILDDIR variable

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jan 19 09:04:53 CET 2018


allows easier reading

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 Makefile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 06a08ec..17b9e22 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ VER=0.6
 PKGREL=4
 
 SRCDIR=novnc
+BUILDDIR=${SRCDIR}.tmp
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
@@ -17,11 +18,11 @@ all: ${DEB}
 .PHONY: deb
 deb: ${DEB}
 ${DEB}: | submodule
-	rm -rf ${SRCDIR}.tmp
-	cp -rpa ${SRCDIR} ${SRCDIR}.tmp
-	cp -a debian ${SRCDIR}.tmp/
-	echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}.tmp/debian/SOURCE
-	cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us
+	rm -rf ${BUILDDIR}
+	cp -rpa ${SRCDIR} ${BUILDDIR}
+	cp -a debian ${BUILDDIR}
+	echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
+	cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
 	lintian ${DEB}
 	@echo ${DEB}
 
@@ -42,7 +43,7 @@ distclean: clean
 
 .PHONY: clean
 clean:
-	rm -rf *~ debian/*~ *_${ARCH}.deb ${SRCDIR}.tmp *_all.deb *.changes *.dsc *.buildinfo
+	rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
 
 .PHONY: dinstall
 dinstall: deb
-- 
2.14.2





More information about the pve-devel mailing list