]> Git Repo - qemu.git/commitdiff
Makefile: Fix broken build
authorStefan Weil <[email protected]>
Fri, 16 Sep 2011 19:50:43 +0000 (21:50 +0200)
committerBlue Swirl <[email protected]>
Sat, 17 Sep 2011 14:37:23 +0000 (14:37 +0000)
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 <[email protected]>
Cc: Anthony Liguori <[email protected]>
Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
Makefile

index 57cc3997e5ad1906f3606a3bbc2070bd0fe13441..a211158e2d5058a571a9063d00696f22421cb292 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # Makefile for QEMU.
 
-# Always point to the root of the build tree
-BUILD_DIR=$(PWD)
+# Always point to the root of the build tree (needs GNU make).
+BUILD_DIR=$(CURDIR)
 
 GENERATED_HEADERS = config-host.h trace.h qemu-options.def
 ifeq ($(TRACE_BACKEND),dtrace)
This page took 0.027359 seconds and 4 git commands to generate.