From: Glenn Morris Date: Fri, 11 Mar 2011 09:02:58 +0000 (-0800) Subject: Add Makefile rules for generating html version of Emacs FAQ. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~590^2~21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b740639e32c52d75ea93a2ac9c4b1c41257f3bb0;p=emacs.git Add Makefile rules for generating html version of Emacs FAQ. * doc/misc/Makefile.in (HTML_TARGETS): New. (clean): Delete $HTML_TARGETS. (emacs-faq.html): New, for use with the gnu.org Emacs webpage. --- diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 96a2576355a..59ad3076684 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,3 +1,9 @@ +2011-03-11 Glenn Morris + + * Makefile.in (HTML_TARGETS): New. + (clean): Delete $HTML_TARGETS. + (emacs-faq.html): New, for use with the gnu.org Emacs webpage. + 2011-03-08 Teodor Zlatanov * auth.texi (Help for developers): Show example of using diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in index 0a28d417c70..f429b6b2a91 100644 --- a/doc/misc/Makefile.in +++ b/doc/misc/Makefile.in @@ -197,6 +197,8 @@ PDF_TARGETS = \ widget.pdf \ woman.pdf +HTML_TARGETS = emacs-faq.html + TEXI2DVI = texi2dvi TEXI2PDF = texi2pdf @@ -401,6 +403,12 @@ faq.dvi: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi $(ENVADD) $(TEXI2DVI) $< faq.pdf: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi $(ENVADD) $(TEXI2PDF) $< +## This is the name used on the Emacs web-page. +## sed fixes up links to point to split version of the manual. +emacs-faq.html: ${srcdir}/faq.texi $(emacsdir)/emacsver.texi + cd $(srcdir); $(MAKEINFO) $(MAKEINFO_OPTS) --no-split \ + --css-ref='/layout.css' --html -o $@ $< + sed -i 's|a href="emacs.html#\([^"]*\)"|a href="manual/html_node/emacs/\1.html"|g' $@ flymake : $(infodir)/flymake $(infodir)/flymake: flymake.texi @@ -684,7 +692,7 @@ mostlyclean: rm -f gnustmp.* clean: mostlyclean - rm -f $(DVI_TARGETS) $(PDF_TARGETS) + rm -f $(DVI_TARGETS) $(PDF_TARGETS) $(HTML_TARGETS) distclean: clean # rm -f Makefile