From: Andrea Canciani Date: Tue, 22 Dec 2015 21:46:05 +0000 (+0100) Subject: build: Do not use `mkdir -p` on Windows X-Git-Tag: pixman-0.36.0~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93b876c11063f58c87fd93ed41e4d3f483bf59ab;p=platform%2Fupstream%2Fpixman.git build: Do not use `mkdir -p` on Windows When the build is performed using `cmd.exe` as shell, the `mkdir` command does not support the `-p` flag. The ability to create multiple netsted folder is not used, hence it can be easily replaced by only creating the directory if it does not exist. This makes the build work on the `cmd.exe` shell, except for the `clean` targets. Signed-off-by: Andrea Canciani Acked-by: Oded Gabbay --- diff --git a/Makefile.win32.common b/Makefile.win32.common index b498c2f..a759ddc 100644 --- a/Makefile.win32.common +++ b/Makefile.win32.common @@ -45,9 +45,10 @@ endif endif endif +$(CFG_VAR): + @mkdir $@ -$(CFG_VAR)/%.obj: %.c $(libpixman_headers) - @mkdir -p $(CFG_VAR) +$(CFG_VAR)/%.obj: %.c $(libpixman_headers) | $(CFG_VAR) @$(CC) -c $(PIXMAN_CFLAGS) -Fo"$@" $< clean: inform