summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMagnus Damm2009-11-13 10:51:05 +0100
committerAurelien Jarno2009-11-14 01:23:02 +0100
commitfc8e320ef5831dc0b0d744e369537893a4379753 (patch)
treef6fa4679bc771374e39ef72bc23b3b73b48d709b /Makefile
parentsh4 disasm fixes (diff)
downloadqemu-fc8e320ef5831dc0b0d744e369537893a4379753.tar.gz
qemu-fc8e320ef5831dc0b0d744e369537893a4379753.tar.xz
qemu-fc8e320ef5831dc0b0d744e369537893a4379753.zip
fix make clean targets
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 <damm@opensource.se> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7be0a15dbd..fe5d868e58 100644
--- a/Makefile
+++ b/Makefile
@@ -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 ; \