Makefile: Fix broken build
authorStefan Weil <weil@mail.berlios.de>
Fri, 16 Sep 2011 19:50:43 +0000 (21:50 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 17 Sep 2011 14:37:23 +0000 (14:37 +0000)
commitb1cdc367226e803112161bb2d9274ee315759ace
treeca0faa68612c069cdc12dc25b0208de623c2e4e2
parentd41fb4367f05b446fb6b5b255815044b4baa481b
Makefile: Fix broken build

make -C mybuilddir no longer works (regression caused by commit)
388d475815c23901010a25c845eb078d47ee0740.

PWD is the directory of the caller (not mybuilddir),
so BUILD_DIR is set to the wrong value.

GNU make sets CURDIR to the correct value.
Use this macro instead of PWD.

Cc: LluĂ­s Vilanova <vilanova@ac.upc.edu>
Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Makefile