summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2012-10-22 16:36:03 +0800
committerPatrick Georgi <patrick@georgi-clan.de>2012-10-22 21:49:35 +0200
commit0fd93d62d232d22e4bbeeb272fb909f615076d2c (patch)
tree88567f90708f4b4c888513c9f397bb77c8f5af3d
parent50ad0950ae5c931e7e36460db009dd1692b3c4b8 (diff)
downloadcoreboot-0fd93d62d232d22e4bbeeb272fb909f615076d2c.tar.xz
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 <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/1602 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
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)