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>
This commit is contained in:
Zheng Bao 2012-10-22 16:36:03 +08:00 committed by Patrick Georgi
parent 50ad0950ae
commit 0fd93d62d2
1 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,9 @@ ifneq ($(MAKECMDGOALS),)
ifneq ($(filter %config distclean,$(MAKECMDGOALS)),) ifneq ($(filter %config distclean,$(MAKECMDGOALS)),)
NOCOMPILE:=1 NOCOMPILE:=1
endif endif
ifeq ($(MAKECMDGOALS), distclean)
NOMKDIR:=1
endif
endif endif
ifeq ($(NOCOMPILE),1) ifeq ($(NOCOMPILE),1)