From 0fd93d62d232d22e4bbeeb272fb909f615076d2c Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Mon, 22 Oct 2012 16:36:03 +0800 Subject: Makefile: No need to mkdir when distclean make distclean causes error on mingw: ------- rm: cannot lstat `build/util': Permission denied make: *** [distclean] Error 1 ------- Guess, When the distclean is made by multi-process, the mkdir in the Makefile will execute when build is removed. That causes conflicts. Change-Id: Ia41ecc5d1db2fa9d3328c81ac1d33fa94779492d Signed-off-by: Zheng Bao Signed-off-by: Zheng Bao Reviewed-on: http://review.coreboot.org/1602 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 44fd62f148..b40574b75a 100644 --- a/Makefile +++ b/Makefile @@ -101,6 +101,9 @@ ifneq ($(MAKECMDGOALS),) ifneq ($(filter %config distclean,$(MAKECMDGOALS)),) NOCOMPILE:=1 endif +ifeq ($(MAKECMDGOALS), distclean) +NOMKDIR:=1 +endif endif ifeq ($(NOCOMPILE),1) -- cgit v1.2.3