From 93b876c11063f58c87fd93ed41e4d3f483bf59ab Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Tue, 22 Dec 2015 22:46:05 +0100 Subject: 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 --- Makefile.win32.common | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3