home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / readline.zip / readline-2.1 / doc / Makefile < prev    next >
Makefile  |  1997-09-13  |  4KB  |  125 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # This makefile for Readline library documentation is in -*- text -*- mode.
  3. # Emacs likes it that way.
  4. top_srcdir = ..
  5. srcdir = .
  6.  
  7. prefix = /usr/local
  8. infodir = ${prefix}/info
  9.  
  10. mandir = ${prefix}/man
  11. man3dir = $(mandir)/man3
  12.  
  13. RM = rm -f
  14.  
  15. TEXINPUTDIR = $(srcdir)
  16.  
  17. MAKEINFO    = makeinfo
  18. TEXI2DVI    = $(srcdir)/texi2dvi
  19. TEXI2HTML   = $(srcdir)/texi2html
  20. QUIETPS     = #set this to -q to shut up dvips
  21. DVIPS       = dvips -D 300 $(QUIETPS) -o $@     # tricky
  22.  
  23. INSTALL = /usr/bin/X11/scoinst -c
  24. INSTALL_PROGRAM = ${INSTALL}
  25. INSTALL_DATA = ${INSTALL} -m 644
  26.  
  27. RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \
  28.     $(srcdir)/rltech.texinfo
  29. HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \
  30.       $(srcdir)/hstech.texinfo
  31.  
  32. # This should be a program that converts troff to an ascii-readable format
  33. NROFF       = groff -Tascii
  34.  
  35. # This should be a program that converts troff to postscript
  36. GROFF       = groff
  37.  
  38. DVIOBJ = readline.dvi history.dvi
  39. INFOOBJ = readline.info history.info
  40. PSOBJ = readline.ps history.ps
  41. HTMLOBJ = readline.html history.html
  42. TEXTOBJ = readline.0
  43.  
  44. CREATED_DOCS = $(DVIOBJ) $(INFOOBJ) $(PSOBJ) $(HTMLOBJ) $(TEXTOBJ)
  45.  
  46. .SUFFIXES:      .0 .3 .ps .txt .dvi
  47.  
  48. .3.0:
  49.     $(RM) $@
  50.     -${NROFF} -man $< > $@
  51.  
  52. all: info dvi html ps text
  53. nodvi: info html text
  54.  
  55. readline.dvi: $(RLSRC)
  56.     TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rlman.texinfo
  57.     mv rlman.dvi readline.dvi
  58.  
  59. readline.info: $(RLSRC)
  60.     $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rlman.texinfo
  61.  
  62. history.dvi: ${HISTSRC}
  63.     TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/hist.texinfo
  64.     mv hist.dvi history.dvi
  65.  
  66. history.info: ${HISTSRC}
  67.     $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/hist.texinfo
  68.  
  69. readline.ps:    readline.dvi
  70.     $(RM) $@
  71.     $(DVIPS) readline.dvi
  72.  
  73. history.ps:    history.dvi
  74.     $(RM) $@
  75.     $(DVIPS) history.dvi
  76.  
  77. readline.html:    ${RLSRC}
  78.     $(TEXI2HTML) -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo
  79.     sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman.html > readline.html
  80.     sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman_toc.html > readline_toc.html
  81.     $(RM) rlman.html rlman_toc.html
  82.  
  83. history.html:    ${HISTSRC}
  84.     $(TEXI2HTML) -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo
  85.     sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist.html > history.html
  86.     sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist_toc.html > history_toc.html
  87.     $(RM) hist.html hist_toc.html
  88.  
  89. info:    $(INFOOBJ)
  90. dvi:    $(DVIOBJ)
  91. ps:    $(PSOBJ)
  92. html:    $(HTMLOBJ)
  93. text:    $(TEXTOBJ)
  94.  
  95. readline.0: $(srcdir)/readline.3
  96.  
  97. clean:
  98.     $(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \
  99.           *.fns *.kys *.tps *.vrs *.o core
  100.  
  101. distclean: clean
  102.     $(RM) $(CREATED_DOCS)
  103.  
  104. mostlyclean: clean
  105.  
  106. maintainer-clean: clean
  107.     $(RM) $(CREATED_DOCS)
  108.  
  109. installdirs:    $(top_srcdir)/support/mkdirs
  110.     -$(SHELL) $(top_srcdir)/support/mkdirs $(infodir) $(man3dir)
  111.  
  112. install:    installdirs info
  113.     ${INSTALL_DATA} readline.info $(infodir)/readline.info
  114.     ${INSTALL_DATA} history.info $(infodir)/history.info
  115.     if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
  116.         install-info --dir-file=$(infodir)/dir $(infodir)/readline.info ; \
  117.         install-info --dir-file=$(infodir)/dir $(infodir)/history.info ; \
  118.     else true; fi
  119.     -${INSTALL_DATA} $(srcdir)/readline.3 $(man3dir)/readline.3
  120.  
  121. uninstall:
  122.     $(RM) $(infodir)/readline.info
  123.     $(RM) $(infodir)/history.info
  124.     $(RM) $(man3dir)/readline.3
  125.