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 \
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
check_gcc="yes"
softmmu="yes"
user="no"
+build_docs="no"
# OS specific
targetos=`uname -s`
fi # cross compilation
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 -z "$prefix" ; then
prefix="/c/Program Files/Qemu"
fi
echo "FMOD support $fmod $fmod_support"
echo "kqemu support $kqemu"
+echo "Documentation $build_docs"
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
echo "VPATH=$source_path" >> $config_mak
fi
echo "TARGET_DIRS=$target_list" >> $config_mak
+if [ "$build_docs" = "yes" ] ; then
+ echo "BUILD_DOCS=yes" >> $config_mak
+fi
# XXX: suppress that
if [ "$bsd" = "yes" ] ; then