aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-23 17:57:59 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-23 17:57:59 +0000
commitcc8ae6de58eb6cd8748197442bbcdc165b5f87a2 (patch)
treee565deddd2339eb6e59e51261928522a720a7d35 /Makefile
parentd0ecd2aaf9ecc2c434eed4c5de7917787476223e (diff)
Autodetect tools neccessary for building documentation.
Make distclean remove generated documentation files. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1834 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0c2ab09dd3..ff60329ad7 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,11 @@ TOOLS=qemu-img$(EXESUF)
ifdef CONFIG_STATIC
LDFLAGS+=-static
endif
+ifdef BUILD_DOCS
DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1
+else
+DOCS=
+endif
all: dyngen$(EXESUF) $(TOOLS) $(DOCS)
for d in $(TARGET_DIRS); do \
@@ -34,7 +38,7 @@ clean:
done
distclean: clean
- rm -f config-host.mak config-host.h
+ rm -f config-host.mak config-host.h $(DOCS)
for d in $(TARGET_DIRS); do \
rm -rf $$d || exit 1 ; \
done