From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8stC-00087k-88 for qemu-devel@nongnu.org; Fri, 13 Nov 2009 04:56:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8st6-000825-OY for qemu-devel@nongnu.org; Fri, 13 Nov 2009 04:56:21 -0500 Received: from [199.232.76.173] (port=50483 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8st6-00081j-Ah for qemu-devel@nongnu.org; Fri, 13 Nov 2009 04:56:16 -0500 Received: from mail-yw0-f176.google.com ([209.85.211.176]:36018) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8st5-0005Zb-Vb for qemu-devel@nongnu.org; Fri, 13 Nov 2009 04:56:16 -0500 Received: by ywh6 with SMTP id 6so2728267ywh.4 for ; Fri, 13 Nov 2009 01:56:15 -0800 (PST) From: Magnus Damm Date: Fri, 13 Nov 2009 18:51:05 +0900 Message-Id: <20091113095105.29740.50318.sendpatchset@rxone.opensource.se> Subject: [Qemu-devel] [PATCH] fix make clean targets List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Magnus Damm This patch fixes clean in case of missing directories and also adds code to distclean that removes the following files: qemu-monitor.texi roms/seabios/config.mak roms/vgabios/config.mak Signed-off-by: Magnus Damm --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- 0001/Makefile +++ work/Makefile 2009-11-13 15:28:35.000000000 +0900 @@ -237,12 +237,13 @@ clean: rm -f qemu-img-cmds.h $(MAKE) -C tests clean for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser; do \ - $(MAKE) -C $$d $@ || exit 1 ; \ + if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \ done distclean: clean - rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi + rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi rm -f config-all-devices.mak config-all-devices.h* + rm -f roms/seabios/config.mak roms/vgabios/config.mak rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \ rm -rf $$d || exit 1 ; \