]> git.proxmox.com Git - criu.git/commitdiff
buildsys: make job safety
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 7 Feb 2017 12:47:34 +0000 (13:47 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 7 Feb 2017 12:47:34 +0000 (13:47 +0100)
Makefile

index 3966bdc1a3f7703dd8623f2bbfac51798f3c0b18..9069e53aa3a43a9f17b2268ba26b2e0127c3e717 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,14 +10,16 @@ SRCTAR=${SRCDIR}.tgz
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
 
-DEBS=                                  \
-${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb                       \
-${PACKAGE}-dbg_${PKGVER}-${DEBREL}_amd64.deb
+DEB1=${PACKAGE}_${PKGVER}-${DEBREL}_amd64.deb
+DEB_DBG=${PACKAGE}-dbg_${PKGVER}-${DEBREL}_amd64.deb
+DEBS=$(DEB1) $(DEB_DBG)
 
 all: ${DEBS}
        echo ${DEBS}
 
-deb ${DEBS}: ${SRCTAR}
+.PHONY: deb
+deb $(DEB_DBG): $(DEB1)
+$(DEB1): $(SRCTAR)
        rm -rf ${SRCDIR}
        tar xf ${SRCTAR}
        cp -a debian ${SRCDIR}/debian