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
This commit is contained in:
pbrook 2006-04-23 17:57:59 +00:00
parent d0ecd2aaf9
commit cc8ae6de58
2 changed files with 15 additions and 1 deletions

View File

@ -11,7 +11,11 @@ TOOLS=qemu-img$(EXESUF)
ifdef CONFIG_STATIC ifdef CONFIG_STATIC
LDFLAGS+=-static LDFLAGS+=-static
endif endif
ifdef BUILD_DOCS
DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1
else
DOCS=
endif
all: dyngen$(EXESUF) $(TOOLS) $(DOCS) all: dyngen$(EXESUF) $(TOOLS) $(DOCS)
for d in $(TARGET_DIRS); do \ for d in $(TARGET_DIRS); do \
@ -34,7 +38,7 @@ clean:
done done
distclean: clean 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 \ for d in $(TARGET_DIRS); do \
rm -rf $$d || exit 1 ; \ rm -rf $$d || exit 1 ; \
done done

10
configure vendored
View File

@ -94,6 +94,7 @@ check_gfx="yes"
check_gcc="yes" check_gcc="yes"
softmmu="yes" softmmu="yes"
user="no" user="no"
build_docs="no"
# OS specific # OS specific
targetos=`uname -s` targetos=`uname -s`
@ -427,6 +428,11 @@ fi # sdl compile test
fi # cross compilation fi # cross compilation
fi # -z $sdl fi # -z $sdl
# Check if tools are available to build documentation.
if [ ! -z `which texi2html` ] && [ ! -z `which pod2man` ]; then
build_docs="yes"
fi
if test "$mingw32" = "yes" ; then if test "$mingw32" = "yes" ; then
if test -z "$prefix" ; then if test -z "$prefix" ; then
prefix="/c/Program Files/Qemu" prefix="/c/Program Files/Qemu"
@ -489,6 +495,7 @@ else
fi fi
echo "FMOD support $fmod $fmod_support" echo "FMOD support $fmod $fmod_support"
echo "kqemu support $kqemu" echo "kqemu support $kqemu"
echo "Documentation $build_docs"
if test $sdl_too_old = "yes"; then if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support" echo "-> Your SDL version is too old - please upgrade to have SDL support"
@ -632,6 +639,9 @@ if [ "$source_path_used" = "yes" ]; then
echo "VPATH=$source_path" >> $config_mak echo "VPATH=$source_path" >> $config_mak
fi fi
echo "TARGET_DIRS=$target_list" >> $config_mak echo "TARGET_DIRS=$target_list" >> $config_mak
if [ "$build_docs" = "yes" ] ; then
echo "BUILD_DOCS=yes" >> $config_mak
fi
# XXX: suppress that # XXX: suppress that
if [ "$bsd" = "yes" ] ; then if [ "$bsd" = "yes" ] ; then