Revision 1f3d3c8f Makefile

b/Makefile
33 33
endif
34 34

  
35 35
SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
36
SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
37

  
38
config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
39
	$(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep "=y$$" | sort -u > $@,"  GEN  $@")
40

  
41
-include config-all-devices.mak
36 42

  
37 43
build-all: config-host.h
38 44
	$(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) $(TOOLS) $(DOCS) recurse-all,)
......
203 209

  
204 210
distclean: clean
205 211
	rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi
212
	rm -f config-all-devices.mak config-all-devices.h*
206 213
	rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr}
207 214
	for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \
208 215
	rm -rf $$d || exit 1 ; \

Also available in: Unified diff