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 / Makefile < prev   
Encoding:
Makefile  |  1994-02-24  |  4.8 KB  |  163 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for Texinfo distribution.    -*- 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
  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.  
  37. 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
  38. LIBS = 
  39. LOADLIBES = $(LIBS)
  40.  
  41. ALLOCA = 
  42.  
  43. SHELL = /bin/sh
  44.  
  45. CFLAGS = -O2
  46. LDFLAGS =
  47.  
  48. prefix = /gnu
  49. exec_prefix = $(prefix)
  50. bindir = $(exec_prefix)/bin
  51. # Prefix for each installed program, normally empty or `g'.
  52. binprefix = 
  53. libdir = $(prefix)/lib
  54. # Prefix for each installed man page, normally empty or `g'.
  55. manprefix = 
  56. mandir = $(prefix)/man/man1
  57. manext = 1
  58. infodir = $(prefix)/info
  59.  
  60. # For info program. 
  61. DEFAULT_INFOPATH = $(infodir):.
  62.  
  63. #### End of system configuration section. ####
  64.  
  65. VERSION = 3.1
  66. DISTNAME = texinfo-$(VERSION)
  67.  
  68. # Subdirectories that have makefiles
  69. SUBDIRS = libtxi makeinfo info util
  70.  
  71. # All subdirectories that go into a distribution
  72. ALL_SUBDIRS = $(SUBDIRS) emacs
  73.  
  74. MDEFINES = bindir='$(bindir)' mandir='$(mandir)' manext='$(manext)' \
  75.     prefix='$(prefix)' binprefix='$(binprefix)' \
  76.     manprefix='$(manprefix)' infodir='$(infodir)' CFLAGS='$(CFLAGS)' \
  77.     CC='$(CC)' ALLOCA='$(ALLOCA)' LDFLAGS='$(LDFLAGS)' \
  78.     DEFAULT_INFOPATH='$(DEFAULT_INFOPATH)'
  79.  
  80. all: sub-all texi.info
  81.  
  82. install: all installdirs
  83.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  84.     d=$(srcdir); test -f ./texi.info && d=.; \
  85.     cd $$d; for f in texi.info* ; do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  86.  
  87. installdirs:
  88.     -sh $(srcdir)/util/mkinstalldirs $(bindir) $(datadir) $(libdir) $(infodir) $(mandir)
  89.  
  90. uninstall:
  91.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  92.     rm -f $(infodir)/texi.info*
  93.  
  94. Makefile: Makefile.in config.status
  95.     sh ./config.status
  96.  
  97. config.status: configure
  98.     $(srcdir)/configure --srcdir=$(srcdir) --no-create
  99.  
  100. configure: configure.in
  101.     cd $(srcdir); autoconf
  102.  
  103. sub-all TAGS:
  104.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  105.  
  106. clean mostlyclean:
  107.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  108.  
  109. distclean: clean
  110.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  111.     rm -f Makefile config.status
  112.  
  113. realclean: 
  114.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) realclean; cd ..; done
  115.     rm -f TAGS texi.info* Makefile config.status configure
  116.  
  117. texi.info:
  118.     ./makeinfo/makeinfo -I$(srcdir) texi.texi
  119.  
  120. texinfo.dvi:
  121.     PATH="$(srcdir)/util:$${PATH}" TEXINPUTS="$(srcdir):$(common):$${TEXINPUTS}" texi2dvi $(srcdir)/texi.texi
  122.  
  123. dist: DISTFILES
  124.     rm -rf $(DISTNAME)
  125.     mkdir $(DISTNAME)
  126.     for d in $(ALL_SUBDIRS); do mkdir $(DISTNAME)/$$d; done
  127.     for f in `cat DISTFILES`; do \
  128.        ln $(srcdir)/$$f $(DISTNAME)/$$f || { echo copying $$f; cp -p $(srcdir)/$$f $(DISTNAME)/$$f ; } \
  129.     done
  130.     tar --gzip -chvf $(DISTNAME).tar.z $(DISTNAME)
  131.     rm -rf $(DISTNAME)
  132.  
  133. # Gets rid of most of the unwanted files.  Verify manually (if necessary)
  134. # that this produces a list of all the files desired in the distribution. 
  135. DISTFILES: force
  136.     (cd $(srcdir); find . $(ALL_SUBDIRS) ! -type d -print) \
  137.     | sed  '/\/RCS\//d; \
  138.            /\.tar.*/d; \
  139.            /~$$/d; /\.o$$/d; \
  140.            /\/config\.status$$/d; \
  141.            /\/Makefile$$/d;    \
  142.            /\/.*\.BAK$$/d; \
  143.            /\/core$$/d; \
  144.            /\/a.out$$/d; \
  145.            /\/=/d; \
  146.            /\/conftest\.c$$/d; \
  147.            /\/DISTFILES$$/d; \
  148.            /\.toc$$/d; \
  149.            /\.aux$$/d; /\.log$$/d; \
  150.            /\.cps$$/d; /\.cp$$/d; \
  151.            /\.fns$$/d; /\.fn$$/d; \
  152.            /\.tps$$/d; /\.tp$$/d; \
  153.            /\.vrs$$/d; /\.vr$$/d; \
  154.            /\.pgs$$/d; /\.pg$$/d; \
  155.            /\.kys$$/d; /\.ky$$/d; \
  156.            s/^.\///; /^\.$$/d;' \
  157.     | sort | uniq > DISTFILES
  158.  
  159. force:
  160.  
  161. # Prevent GNU make v3 from overflowing arg limit on SysV.
  162. .NOEXPORT:
  163.