X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Freadline%2Fdoc%2FMakefile;h=9dbab24ba8484ed20038c5ed7aead9d735417241;hb=ccc6cda312fea9f0468ee65b8f368e9653e1380b;hp=72b8ce776d400ed25d15cb405a4010ee672a4c2b;hpb=726f63884db0132f01745f1fb4465e6621088ccf;p=platform%2Fupstream%2Fbash.git diff --git a/lib/readline/doc/Makefile b/lib/readline/doc/Makefile index 72b8ce7..9dbab24 100644 --- a/lib/readline/doc/Makefile +++ b/lib/readline/doc/Makefile @@ -1,10 +1,11 @@ -# This makefile for History library documentation is in -*- text -*- mode. +# This makefile for Readline library documentation is in -*- text -*- mode. # Emacs likes it that way. +TEXI2DVI = texi2dvi -DOC_SUPPORT = ../../doc-support/ -TEXINDEX = $(DOC_SUPPORT)/texindex +RM = rm -f -TEX = tex +INSTALL_DATA = cp +infodir = /usr/local/info RLSRC = rlman.texinfo rluser.texinfo rltech.texinfo HISTSRC = hist.texinfo hsuser.texinfo hstech.texinfo @@ -12,26 +13,23 @@ HISTSRC = hist.texinfo hsuser.texinfo hstech.texinfo DVIOBJ = readline.dvi history.dvi INFOOBJ = readline.info history.info PSOBJ = readline.ps history.ps +HTMLOBJ = readline.html history.html -all: info dvi +all: info dvi html readline.dvi: $(RLSRC) - $(TEX) rlman.texinfo - $(TEXINDEX) rlman.?? - $(TEX) rlman.texinfo + $(TEXI2DVI) rlman.texinfo mv rlman.dvi readline.dvi readline.info: $(RLSRC) - makeinfo rlman.texinfo + makeinfo --no-split -o $@ rlman.texinfo history.dvi: ${HISTSRC} - $(TEX) hist.texinfo - $(TEXINDEX) hist.?? - $(TEX) hist.texinfo + $(TEXI2DVI) hist.texinfo mv hist.dvi history.dvi history.info: ${HISTSRC} - makeinfo hist.texinfo + makeinfo --no-split -o $@ hist.texinfo readline.ps: readline.dvi dvips -D 300 -o $@ readline.dvi @@ -39,17 +37,33 @@ readline.ps: readline.dvi history.ps: history.dvi dvips -D 300 -o $@ history.dvi +readline.html: ${RLSRC} + texi2html rlman.texinfo + sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman.html > readline.html + sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman_toc.html > readline_toc.html + rm -f rlman.html rlman_toc.html + +history.html: ${HISTSRC} + texi2html hist.texinfo + sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist.html > history.html + sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist_toc.html > history_toc.html + rm -f hist.html hist_toc.html + info: $(INFOOBJ) dvi: $(DVIOBJ) ps: $(PSOBJ) +html: $(HTMLOBJ) +clean: + $(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \ + *.fns *.kys *.tps *.vrs *.o core -$(TEXINDEX): - (cd $(DOC_SUPPORT); $(MAKE) $(MFLAGS) CFLAGS='$(CFLAGS)' texindex) +distclean: clean +mostlyclean: clean -distclean mostlyclean clean: - rm -f *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \ - *.fns *.kys *.tps *.vrs *.o core +maintainer-clean: clean + $(RM) *.dvi *.info *.info-* *.ps *.html -maintainer-clean realclean: clean - rm -f *.dvi *.info *.info-* *.ps +install: info + ${INSTALL_DATA} readline.info $(infodir)/readline.info + ${INSTALL_DATA} history.info $(infodir)/history.info