mirror of
https://github.com/SwallowOS/image_pixman
synced 2025-11-06 15:12:55 +08:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user