]> git.proxmox.com Git - lxc.git/commitdiff
buildsys: job-safe deb target
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 9 Feb 2017 12:25:52 +0000 (13:25 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 9 Feb 2017 12:25:52 +0000 (13:25 +0100)
Makefile

index 03bdee364f917fc45f3fe1d4fc09c11a2949124f..12ba0736f2a24e2c0948ad1884f3877a755bbee0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,17 +10,18 @@ SRCTAR=${SRCDIR}.tgz
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
 
-DEBS=                                  \
-${PACKAGE}_${LXCVER}-${DEBREL}_${ARCH}.deb                     \
-${PACKAGE}-dev_${LXCVER}-${DEBREL}_${ARCH}.deb                         \
-${PACKAGE}-dbg_${LXCVER}-${DEBREL}_${ARCH}.deb
+DEB1=${PACKAGE}_${LXCVER}-${DEBREL}_${ARCH}.deb
+DEB2=${PACKAGE}-dev_${LXCVER}-${DEBREL}_${ARCH}.deb \
+     ${PACKAGE}-dbg_${LXCVER}-${DEBREL}_${ARCH}.deb
+DEBS=$(DEB1) $(DEB2)
 
 all: ${DEBS}
        echo ${DEBS}
 
 .PHONY: deb
 deb: ${DEBS}
-${DEBS}: ${SRCTAR}
+$(DEB2): $(DEB1)
+$(DEB1): ${SRCTAR}
        rm -rf ${SRCDIR}
        tar xf ${SRCTAR}
        cp -a debian ${SRCDIR}/debian