From 30da3479ce84f038bb27ca4b28fd4afcf1438780 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 9 Feb 2017 13:25:52 +0100 Subject: [PATCH] buildsys: job-safe deb target --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 03bdee3..12ba073 100644 --- 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 -- 2.39.2