home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / gdb-4.12.tar.gz / gdb-4.12.tar / gdb-4.12 / readline / doc / Makefile.in < prev    next >
Makefile  |  1994-02-03  |  3KB  |  95 lines

  1. ## Copyright (C) 1993 Free Software Foundation, Inc.
  2.  
  3. # Makefile for Readline documentation.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. srcdir = .
  18.  
  19. prefix = /usr/local
  20.  
  21. infodir = $(prefix)/info
  22.  
  23. SHELL = /bin/sh
  24.  
  25. INSTALL = install -c
  26. INSTALL_DATA = $(INSTALL)
  27.  
  28. # where to find texinfo
  29. TEXIDIR=$(srcdir)/../../texinfo
  30.  
  31. # where to find makeinfo, preferably one designed for texinfo-2
  32. MAKEINFO=makeinfo
  33.  
  34. # auxiliary program for sorting Texinfo indices
  35. TEXINDEX=texindex
  36.  
  37. # Don Knuth's TeX formatter
  38. TEX=tex
  39.  
  40. #### Host, target, and site specific Makefile fragments come in here.
  41. ###
  42.  
  43. all: info dvi
  44.  
  45. install: install-info
  46.  
  47. info: history.info readline.info
  48.  
  49. dvi: history.dvi readline.dvi
  50.  
  51. install-info: info
  52.     -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
  53.     if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
  54.     -if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
  55.     for i in *.info* ; do \
  56.         $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  57.     done
  58.  
  59. history.info: hist.texinfo hsuser.texinfo hstech.texinfo
  60.     $(MAKEINFO) -I $(srcdir) -o ./history.info $(srcdir)/hist.texinfo
  61.  
  62. history.dvi: hist.texinfo hsuser.texinfo hstech.texinfo $(TEXIDIR)/texinfo.tex
  63.     TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) hist.texinfo
  64.     $(TEXINDEX) hist.??
  65.     TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) hist.texinfo
  66.  
  67. readline.info: rlman.texinfo rluser.texinfo rltech.texinfo
  68.     $(MAKEINFO) -I $(srcdir) -o ./readline.info $(srcdir)/rlman.texinfo
  69.  
  70. readline.dvi: rlman.texinfo rluser.texinfo rltech.texinfo
  71.     TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) rlman.texinfo
  72.     $(TEXINDEX) rlman.??
  73.     TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) rlman.texinfo
  74.  
  75. distclean: clean
  76.     rm -f Makefile config.status
  77.  
  78. mostlyclean: clean
  79.  
  80. realclean: distclean
  81.  
  82. clean: clean-info clean-dvi
  83.  
  84. clean-info:
  85.     rm -f history.info* readline.info*
  86.  
  87. clean-dvi:
  88.     rm -f hist.?? hist.???
  89.     rm -f rlman.?? rlman.???
  90.  
  91. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  92.     $(SHELL) ./config.status
  93.