Revision d1bd2423 Makefile
b/Makefile | ||
---|---|---|
8 | 8 |
# Put the all: rule here so that config-host.mak can contain dependencies. |
9 | 9 |
all: |
10 | 10 |
include config-host.mak |
11 |
|
|
12 |
# Check that we're not trying to do an out-of-tree build from |
|
13 |
# a tree that's been used for an in-tree build. |
|
14 |
ifneq ($(realpath $(SRC_PATH)),$(realpath .)) |
|
15 |
ifneq ($(wildcard $(SRC_PATH)/config-host.mak),) |
|
16 |
$(error This is an out of tree build but your source tree ($(SRC_PATH)) \ |
|
17 |
seems to have been used for an in-tree build. You can fix this by running \ |
|
18 |
"make distclean && rm -rf *-linux-user *-softmmu" in your source tree) |
|
19 |
endif |
|
20 |
endif |
|
21 |
|
|
11 | 22 |
include $(SRC_PATH)/rules.mak |
12 | 23 |
config-host.mak: $(SRC_PATH)/configure |
13 | 24 |
@echo $@ is out-of-date, running configure |
Also available in: Unified diff