home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / texinfo-3.1-src.lha / src / build / texinfo-3.1 / info / Makefile
Encoding:
Makefile  |  1994-02-24  |  6.2 KB  |  213 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for texinfo/info.    -*- Indented-Text -*-
  3. # Copyright (C) 1993 Free Software Foundation, Inc.
  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, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #### Start of system configuration section. ####
  20.  
  21. srcdir = /ISO/texinfo/texinfo-3.1-amiga/info
  22. VPATH  = $(srcdir):$(common)
  23.  
  24. common = $(srcdir)/../libtxi
  25.  
  26. CC = gcc
  27.  
  28. INSTALL = /bin/install -c
  29. INSTALL_PROGRAM = $(INSTALL)
  30. INSTALL_DATA = $(INSTALL) -m 644
  31.  
  32. LN    = ln
  33. RM    = rm -f
  34. TAR    = tar
  35. MKDIR    = mkdir
  36. MAKEINFO= ../makeinfo/makeinfo
  37. COMPRESS= compress
  38.  
  39. DEFS = -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SETVBUF=1 -DHAVE_GETCWD=1 -DHAVE_BZERO=1 -DHAVE_RINDEX=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1
  40.  
  41. LDEFS = -DNAMED_FUNCTIONS=1 -DDEFAULT_INFOPATH='"$(DEFAULT_INFOPATH)"'
  42.  
  43. TERMLIBS =  -ltermcap
  44. LIBS = $(TERMLIBS) -L../libtxi -ltxi 
  45. LOADLIBES = $(LIBS)
  46.  
  47. SHELL = /bin/sh
  48.  
  49. CFLAGS = -O2
  50. LDFLAGS =
  51.  
  52. prefix = /gnu
  53. exec_prefix = $(prefix)
  54. bindir = $(exec_prefix)/bin
  55. # Prefix for each installed program, normally empty or `g'.
  56. binprefix = 
  57. libdir = $(prefix)/lib
  58. # Prefix for each installed man page, normally empty or `g'.
  59. manprefix = 
  60. mandir = $(prefix)/man/man1
  61. manext = 1
  62. infodir = $(prefix)/info
  63.  
  64. #### End of system configuration section. ####
  65.  
  66. SRCS =    dir.c        display.c    echo_area.c    filesys.c \
  67.     info-utils.c    info.c        infodoc.c    infomap.c \
  68.     m-x.c        nodes.c        search.c    session.c \
  69.     signals.c    terminal.c    tilde.c        window.c \
  70.     xmalloc.c    indices.c    makedoc.c    nodemenu.c \
  71.     footnotes.c    dribble.c    variables.c    gc.c
  72.  
  73. HDRS =    display.h    doc.h        echo_area.h    filesys.h \
  74.     general.h    getopt.h    info-utils.h    info.h \
  75.     infomap.h    nodes.h        search.h     session.h \
  76.     signals.h    termdep.h    terminal.h    tilde.h \
  77.     indices.h    window.h    footnotes.h    dribble.h \
  78.     variables.h    gc.h
  79.  
  80. OBJS =    dir.o display.o doc.o echo_area.o filesys.o info-utils.o info.o \
  81.     infodoc.o infomap.o m-x.o nodes.o search.o session.o signals.o \
  82.     terminal.o tilde.o window.o indices.o xmalloc.o nodemenu.o \
  83.     footnotes.o dribble.o variables.o gc.o 
  84.  
  85. # The names of files which declare info commands.
  86. CMDFILES = $(srcdir)/session.c $(srcdir)/echo_area.c $(srcdir)/infodoc.c \
  87.        $(srcdir)/m-x.c $(srcdir)/indices.c $(srcdir)/nodemenu.c \
  88.        $(srcdir)/footnotes.c $(srcdir)/variables.c
  89.  
  90. # The name of the program which builds documentation structure from CMDFILES.
  91. MAKEDOC_OBJECTS = makedoc.o xmalloc.o
  92. MAKEDOC_SOURCE = makedoc.c xmalloc.c
  93.  
  94. .c.o:
  95.     $(CC) -c $(CPPFLAGS) $(LDEFS) $(DEFS) -I. -I$(srcdir) -I$(common) $(CFLAGS) $<
  96.  
  97. all: info info.info info-stnd.info
  98. sub-all: all
  99.  
  100. install: all
  101.     $(INSTALL_PROGRAM) info $(bindir)/info
  102.     -d=$(srcdir); test -f ./info.info && d=.; $(INSTALL_DATA) $$d/info.info $(infodir)/info.info
  103.     -d=$(srcdir); test -f ./info-stnd.info && d=.; $(INSTALL_DATA) $$d/info-stnd.info $(infodir)/info-stnd.info
  104.     -$(INSTALL_DATA) $(srcdir)/info.1 $(mandir)/info.$(manext)
  105.  
  106. uninstall:
  107.     rm -f $(bindir)/info
  108.     rm -f $(infodir)/info.info
  109.     rm -f $(infodir)/info-stnd.info
  110.     rm -f $(mandir)/info.$(manext)
  111.  
  112. info: $(OBJS) ../libtxi/libtxi.a
  113.     $(CC) $(LDFLAGS) -o info $(OBJS) $(LOADLIBES)
  114.  
  115. info.info: info.texi
  116.     $(MAKEINFO) --no-split -I$(srcdir) info.texi
  117.  
  118. info-stnd.info: info-stnd.texi
  119.     $(MAKEINFO) --no-split -I$(srcdir) info-stnd.texi
  120.  
  121. makedoc: $(MAKEDOC_OBJECTS) ../libtxi/libtxi.a
  122.     $(CC) $(LDFLAGS) -o makedoc $(MAKEDOC_OBJECTS) $(LOADLIBES)
  123.  
  124. Makefile: $(srcdir)/Makefile.in ../config.status
  125.     cd ..; sh config.status
  126.  
  127. clean:
  128.     rm -f info funs.h doc.c makedoc $(OBJS) $(MAKEDOC_OBJECTS)
  129.  
  130. distclean: clean texclean
  131.     rm -f Makefile config.status *~ core core.* *.BAK TAGS
  132.  
  133. mostlyclean: clean
  134.  
  135. realclean: distclean
  136.     rm -f funs.h doc.c
  137.     rm -f info.info info-stnd.info
  138.  
  139. TAGS: $(SRCS) makedoc-TAGS
  140.     etags $(SRCS)
  141.     cat makedoc-TAGS >>TAGS && rm -f makedoc-TAGS
  142.  
  143. makedoc-TAGS: $(CMDFILES)
  144.     ./makedoc -tags $(CMDFILES) >makedoc-TAGS
  145.  
  146. texclean:
  147.     rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.cps \
  148.     *.tps *.fns *.kys *.pgs *.vrs
  149.  
  150. check: info
  151.  
  152. # The files `doc.c' and `funs.h' are created by ./makedoc run over the source
  153. # files which contain DECLARE_INFO_COMMAND.  `funs.h' is a header file
  154. # listing the functions found.  `doc.c' is a structure containing pointers
  155. # to those functions along with completable names and documentation strings.
  156. funs.h: makedoc $(CMDFILES)
  157.     -@if test -f funs.h; then mv -f funs.h old-funs.h; fi; :
  158.     -@if test -f doc.c; then mv -f doc.c old-doc.c; fi; :
  159.     ./makedoc $(CMDFILES)
  160.     -@if cmp -s old-funs.h funs.h; then mv old-funs.h funs.h; \
  161.       else rm -f old-funs.h; fi; :
  162.     -@if cmp -s old-doc.c doc.c; then mv old-doc.c doc.c; \
  163.       else rm -f old-doc.c; fi; :
  164.  
  165. doc.c:         funs.h
  166. dribble.o:    dribble.c dribble.h
  167. display.o:    display.c
  168. echo_area.o:    echo_area.c
  169. filesys.o:    filesys.c
  170. info-utils.o:    info-utils.c
  171. info.o:        info.c
  172. infodoc.o:    infodoc.c
  173. infomap.o:    infomap.c
  174. m-x.o:        m-x.c
  175. nodes.o:    nodes.c
  176. search.o:    search.c
  177. session.o:    session.c
  178. signals.o:    signals.c
  179. terminal.o:    terminal.c
  180. tilde.o:    tilde.c
  181. window.o:    window.c
  182. xmalloc.o:    xmalloc.c
  183. indices.o:    indices.c
  184. makedoc.o:    makedoc.c
  185.  
  186. dir.o:         dir.c
  187. display.o:     nodes.h info-utils.h search.h
  188. display.o:     terminal.h window.h display.h
  189. echo_area.o:     info.h
  190. filesys.o:     general.h tilde.h filesys.h
  191. footnotes.o:     footnotes.h
  192. info-utils.o:     info-utils.h nodes.h search.h
  193. info.o:     info.h $(common)/getopt.h
  194. infodoc.o:     info.h doc.h
  195. infomap.o:     infomap.h funs.h
  196. gc.o:        info.h
  197. m-x.o:         info.h
  198. nodes.o:     search.h filesys.h
  199. nodes.o:     nodes.h info-utils.h
  200. search.o:     general.h search.h nodes.h
  201. session.o:     info.h
  202. signals.o:     info.h signals.h
  203. terminal.o:     terminal.h termdep.h
  204. tilde.o:     tilde.h
  205. variables.c:     variables.h
  206. window.o:     nodes.h window.h display.h
  207. window.o:     info-utils.h search.h infomap.h
  208.  
  209. # Prevent GNU make v3 from overflowing arg limit on SysV.
  210. .NOEXPORT:
  211.  
  212. # eof
  213.