home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / gdb-4.12-src.lha / src / build / gdb-4.12 / gdb / doc / Makefile < prev   
Encoding:
Makefile  |  1994-02-22  |  10.7 KB  |  344 lines

  1. # This file was generated automatically by configure.  Do not edit.
  2. VPATH = /ISO/gdb/gdb-4.12-amiga/gdb/doc
  3. links = 
  4. host_alias = amigados
  5. host_cpu = m68k
  6. host_vendor = cbm
  7. host_os = amigados
  8. host_canonical = m68k-cbm-amigados
  9. target_alias = amigados
  10. target_cpu = m68k
  11. target_vendor = cbm
  12. target_os = amigados
  13. target_canonical = m68k-cbm-amigados
  14. ##Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  15.  
  16. # Makefile for GDB documentation.
  17. # This file is part of GDB.
  18.  
  19. # This program is free software; you can redistribute it and/or modify
  20. # it under the terms of the GNU General Public License as published by
  21. # the Free Software Foundation; either version 2 of the License, or
  22. # (at your option) any later version.
  23. # This program is distributed in the hope that it will be useful,
  24. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  26. # GNU General Public License for more details.
  27. # You should have received a copy of the GNU General Public License
  28. # along with this program; if not, write to the Free Software
  29. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  30.  
  31. srcdir = /ISO/gdb/gdb-4.12-amiga/gdb/doc
  32.  
  33. prefix = /gnu
  34.  
  35. infodir = $(prefix)/info
  36.  
  37. SHELL = /bin/sh
  38.  
  39. INSTALL = install -c
  40. INSTALL_PROGRAM = $(INSTALL)
  41. INSTALL_DATA = $(INSTALL)
  42.  
  43. # main GDB source directory
  44. gdbdir = $(srcdir)/..
  45.  
  46. # where to find texinfo; GDB dist should include a recent one
  47. TEXIDIR=${gdbdir}/../texinfo
  48.  
  49. # where to find makeinfo, preferably one designed for texinfo-2
  50. MAKEINFO=makeinfo
  51.  
  52. # where to find texi2roff, ditto
  53. TEXI2ROFF=texi2roff
  54.  
  55. # Where is the source dir for the READLINE library doc?  
  56. # Traditionally readline is in .. or .
  57. READLINE_DIR = ${gdbdir}/../readline/doc
  58.  
  59. SET_TEXINPUTS = TEXINPUTS=${TEXIDIR}:.:$(srcdir):$(READLINE_DIR):$$TEXINPUTS
  60.  
  61. # There may be alternate predefined collections of switches to configure
  62. # the GDB manual.  Normally this is not done in synch with the software
  63. # config system, since this choice tends to be independent; most people
  64. # want a doc config of `all' for a generic manual, regardless of sw config.
  65. DOC_CONFIG = all
  66.  
  67. # This list of sed edits will edit the GDB reference card
  68. # for what fonts and what papersize to use.
  69. # By default (NO edits applied), the refcard uses:
  70. #    - Computer Modern (CM) fonts
  71. #    - US letter paper (8.5x11in)
  72. # List some of the following files for alternative fonts and paper:
  73. #  a4rc.sed     use A4 paper (297 x 210 mm)
  74. #  psrc.sed     use PostScript fonts (Karl Berry short TeX names)
  75. # lpsrc.sed     use PostScript fonts (full PostScript names in TeX)
  76. # e.g. for A4, Postscript:  REFEDITS = a4rc.sed psrc.sed
  77. #      for A4, CM fonts:    REFEDITS = a4rc.sed
  78. #      for US, PS fonts:    REFEDITS = psrc.sed
  79. #      for default:
  80. REFEDITS =
  81.  
  82. # Don Knuth's TeX formatter
  83. TEX = tex
  84.  
  85. # auxiliary program for sorting Texinfo indices
  86. TEXINDEX = texindex
  87.  
  88. # Main GDB manual's source files
  89. SFILES_INCLUDED = gdb-cfg.texi $(srcdir)/remote.texi
  90.  
  91. SFILES_LOCAL = $(srcdir)/gdb.texinfo GDBvn.texi $(SFILES_INCLUDED)
  92.  
  93. SFILES_DOC = $(SFILES_LOCAL) \
  94.                 $(READLINE_DIR)/rluser.texinfo $(READLINE_DIR)/inc-hist.texi
  95.  
  96. #### Host, target, and site specific Makefile fragments come in here.
  97. ###
  98.  
  99. all install:
  100.  
  101. info: gdb.info gdbint.info stabs.info
  102. dvi: gdb.dvi refcard.dvi gdbint.dvi
  103. all-doc: gdb.info gdb.dvi refcard.dvi gdb-internals gdbint.dvi
  104.  
  105. install-info: info
  106.     for i in *.info* ; do \
  107.         $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  108.     done
  109.  
  110. STAGESTUFF = *.info* gdb-all.texi GDBvn.texi
  111.  
  112. # Copy the object files from a particular stage into a subdirectory.
  113. stage1: force
  114.     -mkdir stage1
  115.     -mv $(STAGESTUFF) stage1
  116.  
  117. stage2: force
  118.     -mkdir stage2
  119.     -mv $(STAGESTUFF) stage2
  120.  
  121. stage3: force
  122.     -mkdir stage3
  123.     -mv $(STAGESTUFF) stage3
  124.  
  125. against=stage2
  126.  
  127. comparison: force
  128.     for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
  129.  
  130. de-stage1: force
  131.     -(cd stage1 ; mv -f * ..)
  132.     -rmdir stage1
  133.  
  134. de-stage2: force
  135.     -(cd stage2 ; mv -f * ..)
  136.     -rmdir stage2
  137.  
  138. de-stage3: force
  139.     -(cd stage3 ; mv -f * ..)
  140.     -rmdir stage3
  141.  
  142. clean-info:
  143.     rm -f gdb.info* gdbint.info* stabs.info*
  144.  
  145. clean-dvi:
  146.     rm -f gdb.dvi gdbint.dvi stabs.dvi sedref.dvi
  147.  
  148. mostlyclean: clean-info clean-dvi
  149.     rm -f gdb.?? gdb.??? gdb.mm gdb.ms gdb.me
  150.     rm -f links2roff
  151.     rm -f refcard.ps lrefcard.ps refcard.log sedref.* *~
  152.     rm -f gdbint.?? gdbint.??? stabs.?? stabs.???
  153.  
  154. clean: mostlyclean
  155.     rm -f GDBvn.texi rluser.texinfo inc-hist.texi
  156.  
  157. distclean: clean
  158.     rm -f Makefile config.status
  159.  
  160. # GDBvn.texi and refcard.dvi are distributed, so they should not be
  161. # removed by "clean" or "distclean".
  162. realclean: distclean clean-dvi clean-info
  163.     rm -f GDBvn.texi refcard.dvi
  164.  
  165. # GDB QUICK REFERENCE (dvi output)
  166. refcard.dvi : refcard.tex $(REFEDITS)
  167.     if [ -z "$(REFEDITS)" ]; then \
  168.         cp $(srcdir)/refcard.tex sedref.tex ; \
  169.     else \
  170.         echo > tmp.sed ; \
  171.         for f in "$(REFEDITS)" ; do \
  172.             cat $(srcdir)/$$f >>tmp.sed ; done ; \
  173.         sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex ; \
  174.     fi
  175.     $(SET_TEXINPUTS) $(TEX) sedref.tex
  176.     mv sedref.dvi refcard.dvi
  177.     rm -f sedref.log sedref.tex tmp.sed
  178.  
  179. refcard.ps : refcard.dvi
  180.     dvips -t landscape refcard.dvi -o
  181.  
  182. # File to record current GDB version number (copied from main dir Makefile.in)
  183. GDBvn.texi : ${gdbdir}/Makefile.in
  184.     echo "@set GDBVN `sed <$(srcdir)/../Makefile.in -n 's/VERSION = //p'`" > ./GDBvn.new
  185.     mv GDBvn.new GDBvn.texi
  186.  
  187. # Updated atomically
  188. .PRECIOUS: GDBvn.texi
  189.  
  190. # Choose configuration for GDB manual (normally `all'; normally not tied into
  191. # `configure' script because most users prefer generic version of manual,
  192. # not one for their binary config---which may not be specifically
  193. # defined anyways).
  194. gdb-cfg.texi: ${srcdir}/${DOC_CONFIG}-cfg.texi
  195.     ln -s ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \
  196.     ln ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \
  197.     cp ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi
  198.  
  199. # GDB MANUAL: texinfo source, using @set/@clear/@value/@ifset/@ifclear
  200. # If your texinfo or makeinfo don't support these, get a new texinfo release
  201. #
  202. # The nonsense with GDBvn.texi gets this to run with both Sun and GNU make.
  203. #   Note that we can *generate* GDBvn.texi, but since we distribute one in the
  204. #   source directory for the benefit of people who *don't* use this makefile,
  205. #   VPATH will often tell make not to bother building it, because the one
  206. #   in the srcdir is up to date.  (if not, then make should build one here).
  207.  
  208. # GDB MANUAL: TeX dvi file
  209. gdb.dvi: ${SFILES_DOC}
  210.     if [ ! -f ./GDBvn.texi ]; then \
  211.         ln -s $(srcdir)/GDBvn.texi . || \
  212.         ln $(srcdir)/GDBvn.texi . || \
  213.         cp $(srcdir)/GDBvn.texi . ; else true; fi
  214.     $(SET_TEXINPUTS) $(TEX) gdb.texinfo
  215.     $(SET_TEXINPUTS) $(TEX) gdb.texinfo
  216.     $(TEXINDEX) gdb.??
  217.     $(SET_TEXINPUTS) $(TEX) gdb.texinfo
  218.     rm -f gdb.?? gdb.log gdb.aux gdb.toc gdb.??s
  219.  
  220. # GDB MANUAL: info file
  221. # We're using texinfo2, and older makeinfo's may not be able to
  222. # cope with all the markup.  
  223. gdb.info: ${SFILES_DOC}
  224.     $(MAKEINFO) -I ${READLINE_DIR} -I $(srcdir) -o ./gdb.info gdb.texinfo
  225.  
  226. # GDB MANUAL: roff translations
  227. # Try to use a recent texi2roff.  v2 was put on prep in jan91.
  228. # If you want an index, see texi2roff doc for postprocessing 
  229. # and add -i to texi2roff invocations below.
  230. # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
  231. #    corresponding -e lines when later texi2roff's are current)
  232. # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
  233. # + @c's deleted explicitly because texi2roff sees texinfo commands in them
  234. # + @   (that's at-BLANK) not recognized by texi2roff, turned into blank
  235. # + @alphaenumerate is ridiculously new, turned into @enumerate
  236.  
  237. # texi2roff doesn't have a notion of include dirs, so we have to fake 
  238. # it out for gdb manual's include files---but only if not configured
  239. # in main sourcedir.
  240. links2roff: $(SFILES_INCLUDED)
  241.     if [ ! -f gdb.texinfo ]; then \
  242.         ln -s $(SFILES_INCLUDED) . || \
  243.         ln $(SFILES_INCLUDED)    . || \
  244.         cp $(SFILES_INCLUDED)    . ; \
  245.     fi
  246.     touch links2roff
  247.  
  248. #  "Readline" appendices.  Get them also due to lack of includes, 
  249. # regardless of whether or not configuring in main sourcedir.
  250. # @ftable removed due to bug in texi2roff-2; if your texi2roff
  251. # is newer, try just ln or cp
  252. rluser.texinfo: ${READLINE_DIR}/rluser.texinfo
  253.         sed -e 's/^@ftable/@table/g' \
  254.         -e 's/^@end ftable/@end table/g' \
  255.         ${READLINE_DIR}/rluser.texinfo > ./rluser.texinfo
  256.  
  257. inc-hist.texi: ${READLINE_DIR}/inc-hist.texi
  258.     ln -s ${READLINE_DIR}/inc-hist.texi . || \
  259.     ln ${READLINE_DIR}/inc-hist.texi . || \
  260.     cp ${READLINE_DIR}/inc-hist.texi .
  261.  
  262. # gdb manual suitable for [gtn]roff -me
  263. gdb.me: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texi
  264.     sed -e '/\\input texinfo/d' \
  265.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  266.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  267.         -e '/^@c /d' \
  268.         -e 's/{.*,,/{/' \
  269.         -e 's/@ / /g' \
  270.         -e 's/^@alphaenumerate/@enumerate/g' \
  271.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  272.         $(srcdir)/gdb.texinfo | \
  273.     $(TEXI2ROFF) -me | \
  274.     sed -e 's/---/\\(em/g' \
  275.     >gdb.me 
  276.  
  277. # gdb manual suitable for [gtn]roff -ms
  278. gdb.ms: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texi
  279.     sed -e '/\\input texinfo/d' \
  280.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  281.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  282.         -e '/^@c /d' \
  283.         -e 's/{.*,,/{/' \
  284.         -e 's/@ / /g' \
  285.         -e 's/^@alphaenumerate/@enumerate/g' \
  286.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  287.         $(srcdir)/gdb.texinfo | \
  288.     $(TEXI2ROFF) -ms | \
  289.     sed -e 's/---/\\(em/g' \
  290.     >gdb.ms 
  291.  
  292. # gdb manual suitable for [tn]roff -mm
  293. # '@noindent's removed due to texi2roff-2 mm bug; if yours is newer, 
  294. #   try leaving them in
  295. gdb.mm: $(SFILES_LOCAL) links2roff rluser.texinfo inc-hist.texi
  296.     sed -e '/\\input texinfo/d' \
  297.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  298.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  299.         -e '/^@c /d' \
  300.         -e 's/{.*,,/{/' \
  301.         -e '/@noindent/d' \
  302.         -e 's/@ / /g' \
  303.         -e 's/^@alphaenumerate/@enumerate/g' \
  304.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  305.         $(srcdir)/gdb.texinfo | \
  306.     $(TEXI2ROFF) -mm | \
  307.     sed -e 's/---/\\(em/g' \
  308.     >gdb.mm 
  309.  
  310. # GDB INTERNALS MANUAL: TeX dvi file
  311. gdbint.dvi : gdbint.texinfo
  312.     $(SET_TEXINPUTS) $(TEX) gdbint.texinfo
  313.     $(TEXINDEX) gdbint.??
  314.     $(SET_TEXINPUTS) $(TEX) gdbint.texinfo
  315.     rm -f gdbint.?? gdbint.aux gdbint.cps gdbint.fns gdbint.kys \
  316.         gdbint.log gdbint.pgs gdbint.toc gdbint.tps gdbint.vrs
  317.  
  318. # GDB INTERNALS MANUAL: info file
  319. gdb-internals: gdbint.info
  320.  
  321. gdbint.info: gdbint.texinfo
  322.     $(MAKEINFO) -o gdbint.info $(srcdir)/gdbint.texinfo
  323.  
  324. stabs.info: stabs.texinfo
  325.     $(MAKEINFO) -o stabs.info $(srcdir)/stabs.texinfo
  326.  
  327. # STABS DOCUMENTATION: TeX dvi file
  328. stabs.dvi : stabs.texinfo
  329.     $(SET_TEXINPUTS) $(TEX) stabs.texinfo
  330.     $(TEXINDEX) stabs.??
  331.     $(SET_TEXINPUTS) $(TEX) stabs.texinfo
  332.     rm -f stabs.?? stabs.aux stabs.cps stabs.fns stabs.kys \
  333.         stabs.log stabs.pgs stabs.toc stabs.tps stabs.vrs
  334.  
  335. stabs.ps: stabs.dvi
  336.     dvips -o stabs.ps stabs
  337.  
  338. force:
  339.  
  340. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  341.     $(SHELL) ./config.status
  342.