home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / find-3.8-src.lha / src / build / find-3.8 / locate / Makefile
Makefile  |  1994-02-23  |  2KB  |  88 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for GNU locate.
  3. # Do not use this makefile directly, but only from `../Makefile'.
  4. # Copyright (C) 1990 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. SHELL = /bin/sh
  21.  
  22. srcdir = /ISO/find/find-3.8-amiga/locate
  23. VPATH = /ISO/find/find-3.8-amiga/locate
  24.  
  25. LIBPROGS = updatedb bigram code
  26. SOURCES = locate.c bigram.c code.c
  27. DISTFILES = Makefile.in updatedb.sh $(SOURCES)
  28.  
  29. all: locate $(LIBPROGS)
  30.  
  31. .c.o:
  32.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir)/../lib $<
  33.  
  34. install: all
  35.     $(INSTALL_PROGRAM) locate $(bindir)/$(binprefix)locate
  36.     -mkdir $(libdir)
  37.     -mkdir $(datadir)
  38.     for f in $(LIBPROGS); do $(INSTALL_PROGRAM) $$f $(libdir)/$$f; done
  39.  
  40. uninstall:
  41.     rm -f $(bindir)/$(binprefix)locate
  42.     for f in $(LIBPROGS); do rm -f $(libdir)/$$f; done
  43.     -rmdir $(libdir)
  44.     -rmdir $(datadir)
  45.  
  46. TAGS: $(SOURCES)
  47.     etags $(SOURCES)
  48.  
  49. clean:
  50.     rm -f locate $(LIBPROGS) *.o core
  51. .PHONEY: clean
  52.  
  53. mostlyclean: clean
  54.  
  55. distclean: clean
  56.     rm -f Makefile
  57.  
  58. realclean: distclean
  59.     rm -f TAGS
  60.  
  61. dist:
  62.     ln $(DISTFILES) ../`cat ../.fname`/locate
  63.  
  64. locate:    locate.o ../lib/libfind.a
  65.     $(CC) -o $@ $(LDFLAGS) locate.o ../lib/libfind.a $(LIBS)
  66.  
  67. locate.o: locate.c
  68.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I$(srcdir)/../lib -DLOCATE_DB=\"$(LOCATE_DB)\" $(srcdir)/locate.c
  69.  
  70. bigram: bigram.o ../lib/libfind.a
  71.     $(CC) -o $@ $(LDFLAGS) bigram.o ../lib/libfind.a $(LIBS)
  72.  
  73. code: code.o ../lib/libfind.a
  74.     $(CC) -o $@ $(LDFLAGS) code.o ../lib/libfind.a $(LIBS)
  75.  
  76. updatedb: updatedb.sh
  77.     rm -f $@
  78.     sed -e "s,@libdir@,$(libdir)," -e "s,@LOCATE_DB@,$(LOCATE_DB)," \
  79.     -e "s,@bindir@,$(bindir)," -e "s,@binprefix@,$(binprefix)," \
  80.     $(srcdir)/updatedb.sh > $@
  81.     chmod +x $@
  82.  
  83. bigram.o code.o locate.o: ../lib/pathmax.h
  84. locate.o: ../lib/fnmatch.h ../lib/getopt.h
  85.  
  86. # Prevent GNU make v3 from overflowing arg limit on SysV.
  87. .NOEXPORT:
  88.