From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnITl-0002E3-AI for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:21:09 -0500 Received: from [199.232.76.173] (port=42555 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnITk-0002DY-Pw for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:21:08 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NnITj-0001rx-Ex for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:21:08 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:61685) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NnITi-0001rr-Uz for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:21:07 -0500 From: Stefan Weil Date: Thu, 4 Mar 2010 22:21:02 +0100 Message-Id: <1267737662-26669-1-git-send-email-weil@mail.berlios.de> In-Reply-To: <20100228190141.GT10291@volta.aurel32.net> References: <20100228190141.GT10291@volta.aurel32.net> Subject: [Qemu-devel] [PATCH] Documentation: Modify rule for html output (better looking output format) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers To create html output from texi input, texi2html was used. Output from makeinfo looks cleaner, so replace the old rule and use makeinfo now. For those who want to use their own variant of html output, the macros MAKEINFO and MAKEINFOFLAGS allow customisation. Option "-I ." is not needed (the current directory is searched by default), so remove it. Please note that the build requirements changed, too: makeinfo is required for doc builds. texi2html is no longer used. Signed-off-by: Stefan Weil --- Makefile | 7 +++++-- configure | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1f6c3ea..bf2cef2 100644 --- a/Makefile +++ b/Makefile @@ -230,15 +230,18 @@ cscope: cscope -b # documentation +MAKEINFO=makeinfo +MAKEINFOFLAGS=--no-headers --no-split --number-sections TEXIFLAG=$(if $(V),,--quiet) %.dvi: %.texi $(call quiet-command,texi2dvi $(TEXIFLAG) -I . $<," GEN $@") %.html: %.texi - $(call quiet-command,texi2html -I=. -monolithic -number $<," GEN $@") + $(call quiet-command,$(MAKEINFO) $(MAKEINFOFLAGS) --html $< -o $@, \ + " GEN $@") %.info: %.texi - $(call quiet-command,makeinfo -I . $< -o $@," GEN $@") + $(call quiet-command,$(MAKEINFO) $< -o $@," GEN $@") %.pdf: %.texi $(call quiet-command,texi2pdf $(TEXIFLAG) -I . $<," GEN $@") diff --git a/configure b/configure index b4db650..19eb620 100755 --- a/configure +++ b/configure @@ -1759,7 +1759,7 @@ fi # Check if tools are available to build documentation. if test "$docs" != "no" ; then - if has texi2html && has pod2man; then + if has makeinfo && has pod2man; then docs=yes else if test "$docs" = "yes" ; then -- 1.7.0