[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 007/150] build-sys hack: ensure target directory is there
From: |
Paolo Bonzini |
Subject: |
[PATCH 007/150] build-sys hack: ensure target directory is there |
Date: |
Fri, 14 Aug 2020 05:11:03 -0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
By removing some unnest-vars calls, we miss some directory creation
that may be required by some/dir/object.d.
This will go away once everything is converted to Meson.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
rules.mak | 1 +
1 file changed, 1 insertion(+)
diff --git a/rules.mak b/rules.mak
index 694865b63e..56ba540a32 100644
--- a/rules.mak
+++ b/rules.mak
@@ -66,6 +66,7 @@ expand-objs = $(strip $(sort $(filter %.o,$1)) \
$(filter-out %.o %.mo,$1))
%.o: %.c
+ @mkdir -p $(dir $@)
$(call quiet-command,$(CC) $(QEMU_LOCAL_INCLUDES) $(QEMU_INCLUDES) \
$(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) $($@-cflags) \
-c -o $@ $<,"CC","$(TARGET_DIR)$@")
--
2.26.2
- [PATCH v2 000/150] Meson integration for 5.2, Paolo Bonzini, 2020/08/14
- [PATCH 001/150] oss-fuzz/build: remove LIB_FUZZING_ENGINE, Paolo Bonzini, 2020/08/14
- [PATCH 006/150] meson: rename .inc.h files to .h.inc, Paolo Bonzini, 2020/08/14
- [PATCH 003/150] pc-bios/s390-ccw: do not use rules.mak, Paolo Bonzini, 2020/08/14
- [PATCH 002/150] optionrom: simplify Makefile, Paolo Bonzini, 2020/08/14
- [PATCH 007/150] build-sys hack: ensure target directory is there,
Paolo Bonzini <=
- [PATCH 009/150] tests/vm: check for Python YAML parser in the Makefile, Paolo Bonzini, 2020/08/14
- [PATCH 008/150] tests/vm: do not pollute configure with --efi-aarch64, Paolo Bonzini, 2020/08/14
- [PATCH 010/150] tests/docker: add test script for static linux-user builds, Paolo Bonzini, 2020/08/14
- [PATCH 004/150] trace: switch position of headers to what Meson requires, Paolo Bonzini, 2020/08/14
- [PATCH 011/150] nsis: use "make DESTDIR=" instead of "make prefix=", Paolo Bonzini, 2020/08/14
- [PATCH 015/150] tests/vm: include setuptools, Paolo Bonzini, 2020/08/14
- [PATCH 013/150] configure: expand path variables for meson configure, Paolo Bonzini, 2020/08/14
- [PATCH 018/150] build-sys hack: link with whole .fa archives, Paolo Bonzini, 2020/08/14
- [PATCH 005/150] meson: rename included C source files to .c.inc, Paolo Bonzini, 2020/08/14
- [PATCH 014/150] configure: prepare CFLAGS/CXXFLAGS/LDFLAGS for Meson, Paolo Bonzini, 2020/08/14