[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 <marianp@mellanox.com>
This commit is contained in:
Marian Pritsak 2017-07-27 07:52:12 +03:00 committed by GitHub
parent 987aec3565
commit 1c165067af

View File

@ -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);}')