From 1c165067af72e4e972ad683af1e9112e1f790483 Mon Sep 17 00:00:00 2001 From: Marian Pritsak Date: Thu, 27 Jul 2017 07:52:12 +0300 Subject: [PATCH] [Makefile]: Remove lockfile before build (#847) In case previous build was forcefully stopped, we need to remove screen lock so that build won't be stuck. Signed-off-by: marian-pritsak --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 8742e329f0..ee3c292732 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ SHELL = /bin/bash USER := $(shell id -un) PWD := $(shell pwd) +# Remove lock file in case previous run was forcefully stopped +$(shell rm -f .screen) + MAKEFLAGS += -B SLAVE_TAG = $(shell shasum sonic-slave/Dockerfile | awk '{print substr($$1,0,11);}')