home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / ispell-4.0-src.lha / src / build / ispell-4.0 / Makefile < prev   
Makefile  |  1994-02-24  |  7KB  |  223 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for GNU ispell.    -*- Indented-Text -*-
  3. # Copyright (C) 1992, 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/ispell/ispell-4.0-amiga
  22. VPATH = /ISO/ispell/ispell-4.0-amiga
  23.  
  24. CC = gcc
  25.  
  26. INSTALL = /bin/install -c
  27. INSTALL_PROGRAM = $(INSTALL)
  28. INSTALL_DATA = $(INSTALL) -m 644
  29.  
  30. DEFS = -DRETSIGTYPE=void -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1
  31. LIBS =  -ltermcap -lc
  32.  
  33. CHARSET = c-generic.c
  34. ALLOCA = 
  35.  
  36. CFLAGS = -O2
  37. LDFLAGS =
  38.  
  39. prefix = /gnu
  40. exec_prefix = $(prefix)
  41.  
  42. bindir = $(exec_prefix)/bin
  43. datadir = $(prefix)/lib/ispell
  44. libdir = $(prefix)/lib/emacs/site-lisp
  45. infodir = $(prefix)/info
  46.  
  47. # Where to install the manual pages.
  48. mandir = $(prefix)/man/man1
  49. # Prefix for each installed man page, normally empty or `g'.
  50. manprefix = 
  51. # Extension (not including `.') for the installed manual page filenames.
  52. manext = 1
  53.  
  54. #### End of system configuration section. ####
  55.  
  56. SHELL = /bin/sh
  57.  
  58. LOADLIBES = $(LIBS)
  59.  
  60. DISTNAME = ispell-$(VERSION)
  61. VERSION = `sed -e '/version/!d;s/[^0-9.]*\([0-9.]*\).*/\1/;q' version.c`
  62.  
  63. # All subdirectories that go into a distribution
  64. # There are none at the moment. 
  65. ALL_SUBDIRS = 
  66.  
  67. # charset.c is automatically generated from c-generic.c or c-ibmpc.c
  68. # during configuration.
  69. SRCS = access.c c-generic.c c-ibmpc.c charset.h ctbl.c downcase.c exp.c \
  70.           expand.c freq.c getopt.c getopt1.c getopt.h hash.c hash.h lexfsm.c \
  71.           look.c mapcase.c nextprime.c suf.c version.c  util.c
  72.  
  73. OBJS = access.o charset.o ctbl.o downcase.o exp.o getopt.o getopt1.o hash.o \
  74.           lexfsm.o nextprime.o suf.o version.o util.o $(ALLOCA)
  75.  
  76. SRCS_BUILD = build.c build.h mklextbl.c
  77. OBJS_BUILD = build.o mklextbl.o
  78.  
  79. SRCS_LOOK = look.c getopt.c getopt1.c util.c
  80. OBJS_LOOK = look.o getopt.o getopt1.o util.o $(ALLOCA)
  81.  
  82. SRCS_ISPELL = case.c gen.c good.c good.h ispell.c ispell.h priv.c screen.c term.c tex.c
  83. OBJS_ISPELL = ispell.o case.o gen.o good.o priv.o screen.o term.o tex.o
  84.  
  85. SRCS_ALL = $(SRCS) $(SRCS_BUILD) $(SRCS_ISPELL)
  86. OBJS_ALL = $(OBJS) $(OBJS_BUILD) $(OBJS_ISPELL)
  87.  
  88. DICT_LIB = $(datadir)
  89.  
  90. .c.o:
  91.     $(CC) -c -I$(srcdir) $(DEFS) -DDICT_LIB=\"$(DICT_LIB)\" $(CPPFLAGS) $(CFLAGS) $<
  92.  
  93. all: build look ispell ispell.dict ispell.words ispell.info
  94.  
  95. ### targets required by GNU Coding standards ###
  96.  
  97. Makefile: Makefile.in config.status
  98.     sh ./config.status
  99.  
  100. config.status: configure
  101.     $(srcdir)/configure --srcdir=$(srcdir) --no-create
  102.  
  103. configure: configure.in
  104.     cd $(srcdir); autoconf
  105.  
  106. TAGS: $(SRCS) $(SRCS_BUILD) $(SRCS_ISPELL)
  107.     cd $(srcdir); etags $(SRCS) $(SRCS_BUILD) $(SRCS_ISPELL)
  108.  
  109. clean:
  110.     rm -f *.o *.elc ispell build freq core ispell.a freqtbl expand look
  111.  
  112. mostlyclean: clean
  113.     rm -f ispell.dict ispell.words
  114.  
  115. distclean: clean
  116.     rm -f Makefile config.status charset.c
  117.  
  118. realclean: distclean mostlyclean
  119.     rm -f TAGS ispell.info configure
  120.  
  121. install: all ispell.info installdirs
  122.     $(INSTALL_PROGRAM) ispell $(bindir)/ispell
  123.     $(INSTALL_PROGRAM) look $(bindir)/look
  124.     $(INSTALL_DATA) ispell.dict $(datadir)/ispell.dict
  125.     $(INSTALL_DATA) ispell.words $(datadir)/ispell.words
  126.     -$(INSTALL_DATA) $(srcdir)/ispell.1 $(mandir)/ispell.$(manext)
  127.     -d=$(srcdir); test -f ./ispell.info && d=.; \
  128.     cd $$d; for f in ispell.info* ; do $(INSTALL_DATA) $$f $(infodir)/$$f; done
  129.     -$(INSTALL_DATA) $(srcdir)/ispell.el $(libdir)/ispell.el
  130.     -$(INSTALL_DATA) ispell.elc $(libdir)/ispell.elc
  131.  
  132. installdirs:
  133.     -sh $(srcdir)/mkinstalldirs $(bindir) $(datadir) $(libdir) $(infodir) $(mandir)
  134.  
  135. uninstall: force
  136.     -cd $(bindir); rm -f ispell look
  137.     -cd $(datadir); rm -f ispell.dict ispell.words 
  138.     -cd $(infodir); rm -f ispell.info
  139.     -cd $(mandir); rm -f ispell.$(manext)
  140.     -cd $(libdir); rm -f ispell.el ispell.elc
  141.  
  142. dist: DISTFILES
  143.     rm -rf $(DISTNAME)
  144.     mkdir $(DISTNAME)
  145.     for f in `cat DISTFILES`; do \
  146.        ln $(srcdir)/$$f $(DISTNAME)/$$f || { echo copying $$f; cp -p $(srcdir)/$$f $(DISTNAME)/$$f ; } \
  147.     done
  148.     tar --gzip -chvf $(DISTNAME).tar.z $(DISTNAME)
  149.     rm -rf $(DISTNAME)
  150.  
  151. # Gets rid of most of the unwanted files.  Verify manually (if necessary)
  152. # that this produces a list of all the files desired in the distribution. 
  153. DISTFILES: force
  154.     (cd $(srcdir); find . $(ALL_SUBDIRS) ! -type d -print) \
  155.     | sed  '/\/RCS\//d; \
  156.            /\.tar.*/d; \
  157.            /\/#.*#/d; /~$$/d; /\.o$$/d; \
  158.            /\/config\.status$$/d; \
  159.            /\/Makefile$$/d;    \
  160.            /\/.*\.BAK$$/d; \
  161.            /\/core$$/d; \
  162.            /\/a.out$$/d; \
  163.            /\/=/d; \
  164.            /\/conftest\.c$$/d; \
  165.            /\/DISTFILES$$/d; \
  166.            /\/charset\.c/d; \
  167.            /\.toc$$/d; \
  168.            /\.aux$$/d; /\.log$$/d; \
  169.            /\.cps$$/d; /\.cp$$/d; \
  170.            /\.fns$$/d; /\.fn$$/d; \
  171.            /\.tps$$/d; /\.tp$$/d; \
  172.            /\.vrs$$/d; /\.vr$$/d; \
  173.            /\.pgs$$/d; /\.pg$$/d; \
  174.            /\.kys$$/d; /\.ky$$/d; \
  175.            s/^.\///; /^\.$$/d;' \
  176.     | sort | uniq > DISTFILES
  177.  
  178. ### ispell-specific building targets ###
  179.  
  180. $(OBJS_ALL): ispell.h
  181.  
  182. build: $(OBJS_BUILD) $(OBJS)
  183.     $(CC) $(LDFLAGS) -o build $(OBJS_BUILD) $(OBJS) $(LOADLIBES)
  184.  
  185. expand: expand.o $(OBJS)
  186.     $(CC) $(LDFLAGS) -o expand expand.o $(OBJS) $(LOADLIBES)
  187.  
  188. freq: freq.o $(OBJS)
  189.     $(CC) $(LDFLAGS) -o freq freq.o $(OBJS) $(LOADLIBES)
  190.  
  191. freqtbl: freq dict
  192.     ./freq < $(srcdir)/dict > freqtbl
  193.  
  194. look: $(OBJS_LOOK)
  195.     $(CC) $(LDFLAGS) -o look $(OBJS_LOOK) $(LOADLIBES)
  196.  
  197. ispell: $(OBJS_ISPELL) $(OBJS)
  198.     $(CC) $(LDFLAGS) -o ispell $(OBJS_ISPELL) $(OBJS) $(LOADLIBES)
  199.  
  200. ispell.info: ispell.texi
  201.     makeinfo --no-split -I$(srcdir) ispell.texi
  202.  
  203. ispell.dvi: ispell.texi
  204.     texi2dvi $(srcdir)/ispell.texi
  205.  
  206. ispell.dict: build dict freqtbl
  207.     ./build -b -f freqtbl -o ispell.dict $(srcdir)/dict
  208.  
  209. ispell.words: dict expand
  210.     ./expand $(srcdir)/dict | sort | uniq > ispell.words
  211.  
  212. charset.c: $(CHARSET)
  213.     cp $(srcdir)/$(CHARSET) charset.c
  214.  
  215. ispell.elc: ispell.el
  216.     emacs -batch -l $(srcdir)/ispell.el -f batch-make-ispell
  217.  
  218.  
  219. force:
  220.  
  221. # Prevent GNU make v3 from overflowing arg limit on SysV.
  222. .NOEXPORT:
  223.