Revision 1215c6e7 Makefile
b/Makefile | ||
---|---|---|
29 | 29 |
DOCS= |
30 | 30 |
endif |
31 | 31 |
|
32 |
build-all: $(TOOLS) $(DOCS) recurse-all |
|
32 |
SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) |
|
33 |
|
|
34 |
build-all: config-host.h |
|
35 |
$(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) $(TOOLS) $(DOCS) recurse-all,) |
|
33 | 36 |
|
34 | 37 |
config-host.mak: configure |
35 | 38 |
ifneq ($(wildcard config-host.mak),) |
... | ... | |
37 | 40 |
@sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh |
38 | 41 |
endif |
39 | 42 |
|
40 |
SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) |
|
43 |
config-host.h: config-host.h-timestamp |
|
44 |
config-host.h-timestamp: config-host.mak |
|
45 |
|
|
41 | 46 |
SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) |
42 | 47 |
|
43 |
subdir-%: |
|
48 |
subdir-%: config-host.h
|
|
44 | 49 |
$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) |
45 | 50 |
|
46 | 51 |
$(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a |
... | ... | |
200 | 205 |
done |
201 | 206 |
|
202 | 207 |
distclean: clean |
203 |
rm -f config-host.mak config-host.h config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi |
|
208 |
rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi
|
|
204 | 209 |
rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} |
205 | 210 |
for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \ |
206 | 211 |
rm -rf $$d || exit 1 ; \ |
Also available in: Unified diff