Put dependency files in proper subdir
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 15 May 2010 11:03:28 +0000 (13:03 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 22 May 2010 08:31:20 +0000 (08:31 +0000)
commit44bc1c622782e7370ca14e6b09689a4c03b21b98
tree2fca9f126289b9bce9f374365f26422d23fefbbe
parent7ba422480d73d3235ff85de483d5fffb3deab3eb
Put dependency files in proper subdir

This seems to resolve subtle breakages of our build system:

Dependency files generated for targets like 'dir/foo.o' were saved as
'foo.d'. Now, if there was also a target 'foo.o', one of the dependency
file was overwritten. Concrete example: libhw*/macio.o vs.
libhw*/ide/macio.o. And this often left a segfaulting build result
behind when changing the "wrong" data structures".

Fix it by generating proper 'dir/foo.d'.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
rules.mak