diff options
Diffstat (limited to 'doc/Makefile.in')
-rw-r--r-- | doc/Makefile.in | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/doc/Makefile.in b/doc/Makefile.in index 98f76b03..62e041d2 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -30,6 +30,8 @@ TEX = tex MAKEINFO = makeinfo TEXI2DVI = ${topdir}/support/texi2dvi TEXI2HTML = ${topdir}/support/texi2html +MAN2HTML = ${BUILD_DIR}/support/man2html +HTMLPOST = ${srcdir}/htmlpost.sh QUIETPS = #set this to -q to shut up dvips DVIPS = dvips -D 300 $(QUIETPS) -o $@ # tricky TEXINPUTDIR = $(RL_LIBDIR)/doc @@ -45,7 +47,7 @@ GROFF = groff HSUSER = $(RL_LIBDIR)/doc/hsuser.texinfo RLUSER = $(RL_LIBDIR)/doc/rluser.texinfo -.SUFFIXES: .0 .1 .3 .ms .ps .txt .dvi +.SUFFIXES: .0 .1 .3 .ms .ps .txt .dvi .html .1.ps: $(RM) $@ @@ -55,6 +57,10 @@ RLUSER = $(RL_LIBDIR)/doc/rluser.texinfo $(RM) $@ -${NROFF} -man $< > $@ +.1.html: + $(RM) $@ + -${MAN2HTML} $< | ${HTMLPOST} > $@ + .ms.ps: $(RM) $@ -${GROFF} -ms $< > $@ @@ -71,6 +77,10 @@ RLUSER = $(RL_LIBDIR)/doc/rluser.texinfo $(RM) $@ -${NROFF} -man $< > $@ +.3.html: + $(RM) $@ + -${MAN2HTML} $< > $@ + all: ps info dvi text html nodvi: ps info text html @@ -78,7 +88,7 @@ ps: bash.ps bashbug.ps readline.ps article.ps builtins.ps dvi: bashref.dvi bashref.ps info: bashref.info text: bash.0 bashbug.0 builtins.0 readline.0 -html: bashref.html +html: bashref.html bash.html bashref.dvi: $(srcdir)/bashref.texi $(HSUSER) $(RLUSER) TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/bashref.texi @@ -102,6 +112,7 @@ bashman.ps: bash.dvi bash.txt: bash.1 bash.ps: bash.1 +bash.html: bash.1 $(MAN2HTML) bashbug.ps: bashbug.1 builtins.ps: builtins.1 bash.1 bash.0: bash.1 @@ -111,6 +122,9 @@ readline.0: readline.3 readline.ps: readline.3 article.ps: article.ms +$(MAN2HTML): ${topdir}/support/man2html.c + -( cd ${BUILD_DIR}/support ; ${MAKE} ${MFLAGS} man2html) + faq: faq.news faq.news2 faq.mail faq.version faq.version: FAQ.version FAQ |