summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2015-12-22 22:46:05 +0100
committerAndrea Canciani <ranma42@gmail.com>2015-12-23 21:24:06 +0100
commit93b876c11063f58c87fd93ed41e4d3f483bf59ab (patch)
treec0a4becb82890d08ab0afba5573763cdf4adc287
parentcc35d01980df2e2d686568ef7f1216bcc809b5aa (diff)
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 <ranma42@gmail.com> Acked-by: Oded Gabbay <oded.gabbay@gmail.com>
-rw-r--r--Makefile.win32.common5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.win32.common b/Makefile.win32.common
index b498c2f6..a759ddc8 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