home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / f / find37.zip / find-3.7 / Makefile.in < prev    next >
Makefile  |  1992-07-23  |  6KB  |  158 lines

  1. # Master Makefile for GNU find, xargs, and locate.
  2. # Copyright (C) 1987, 1990, 1991 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir = @srcdir@
  23. VPATH = @srcdir@
  24.  
  25. CC = @CC@
  26. AR = ar
  27. # Set RANLIB = echo if your system doesn't have or need ranlib.
  28. RANLIB = @RANLIB@
  29. # Use cp if you don't have install.
  30. INSTALL = @INSTALL@
  31. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  32. INSTALL_DATA = @INSTALL_DATA@
  33.  
  34. # Things you might add to DEFS:
  35. # -DCACHE_IDS        If you want find -nouser and -nogroup to make
  36. #            tables of used UIDs and GIDs at startup
  37. #            instead of using getpwuid or getgrgid when
  38. #            needed.  Speeds up -nouser and -nogroup unless
  39. #            you are running NIS or Hesiod, which make
  40. #            password and group calls very expensive. 
  41. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  42. # -DHAVE_UNISTD_H    If you have unistd.h.
  43. # -DUSG            If you have System V/ANSI C string headers and
  44. #            functions, and ndir.h. 
  45. # -DDIRENT        If you have dirent.h.
  46. # -DSYSNDIR        Old Xenix systems (selects sys/ndir.h).
  47. # -DVOID_CLOSEDIR    If your closedir function returns void, not int.
  48. # -DMAJOR_IN_MKDEV    If major, minor, makedev defined in sys/mkdev.h.
  49. # -DMAJOR_IN_SYSMACROS    If major, minor, makedev defined in sys/sysmacros.h.
  50. # -DHAVE_LIMITS_H    If you have limits.h; otherwise uses sys/param.h.
  51. # -DHAVE_ST_BLOCKS    If your `struct stat' has st_blocks and st_blksize.
  52. # -DHAVE_ST_RDEV    If your `struct stat' has st_rdev.
  53. # -DHAVE_STRERROR    If you have strerror function.
  54. # -DHAVE_VPRINTF    If you have vprintf function.
  55. # -DHAVE_DOPRNT        If you have _doprnt function (but lack vprintf).
  56. # -DHAVE_TM_ZONE    If you have tm_zone in struct tm; otherwise
  57. #            uses tm_isdst and tzname.
  58. # -DHAVE_TZNAME        If you have tm_zone and tzname but not tm_zone;
  59. #            otherwise uses tm_isdst and timezone.
  60. # Define zero or one of the following:
  61. # If no FSTYPE_* is defined, -fstype treats every filesystem as type "unknown".
  62. # -DFSTYPE_MNTENT    Use 4.3BSD getmntent to get filesystem type.
  63. # -DFSTYPE_GETMNT    Use Ultrix getmnt to get filesystem type.
  64. # -DFSTYPE_STATFS    Use 4.4BSD statfs to get filesystem type.
  65. # -DFSTYPE_USG_STATFS    Use SVR3.2 statfs to get filesystem type.
  66. # -DFSTYPE_AIX_STATFS    Use AIX3 statfs to get filesystem type.
  67. # -DFSTYPE_STATVFS    Use SVR4 statvfs to get filesystem type.
  68.  
  69. DEFS = @DEFS@
  70.  
  71. CFLAGS = -g
  72. LDFLAGS = -g
  73. LIBS = @LIBS@
  74.  
  75. prefix = /usr/local
  76. exec_prefix = $(prefix)
  77.  
  78. # Prefix for each installed program, normally empty or `g'.
  79. binprefix = 
  80. # Prefix for each installed man page, normally empty or `g'.
  81. manprefix = 
  82.  
  83. # Where to install `find' and `locate'.
  84. bindir = $(exec_prefix)/bin
  85.  
  86. # Where to install programs to create the `locate' database.
  87. libdir = $(exec_prefix)/lib/locate
  88.  
  89. # Where to install the `locate' database.
  90. datadir = $(prefix)/lib/locate
  91.  
  92. # Name of the `locate' database file.
  93. LOCATE_DB = $(datadir)/find.codes
  94.  
  95. # Where to install manual pages.
  96. mandir = $(prefix)/man/man1
  97. # Extension (not including `.') for the installed manual page filenames.
  98. manext = 1
  99.  
  100. #### End of system configuration section. ####
  101.  
  102. # Arguments to pass to subdirectory makes.
  103. MDEFINES = bindir='$(bindir)' libdir='$(libdir)' datadir='$(datadir)' \
  104. binprefix='$(binprefix)' manprefix='$(manprefix)' \
  105. mandir='$(mandir)' manext='$(manext)' LOCATE_DB='$(LOCATE_DB)' \
  106. INSTALL_PROGRAM='$(INSTALL_PROGRAM)' INSTALL_DATA='$(INSTALL_DATA)' \
  107. AR='$(AR)' RANLIB='$(RANLIB)' DEFS='$(DEFS)' \
  108. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
  109.  
  110. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README INSTALL \
  111. NEWS configure configure.in
  112.  
  113. # Subdirectories to run make in for the primary targets.
  114. SUBDIRS = lib find xargs locate man
  115.  
  116. all:
  117.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  118. .PHONY: all
  119.  
  120. install:
  121.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  122. .PHONY: install
  123.  
  124. TAGS:
  125.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  126. .PHONY: TAGS
  127.  
  128. clean:
  129.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  130. .PHONY: clean
  131.  
  132. mostlyclean:
  133.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  134. .PHONY: mostlyclean
  135.  
  136. distclean:
  137.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  138.     rm -f Makefile config.status
  139. .PHONY: distclean
  140.  
  141. realclean:
  142.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  143.     rm -f Makefile config.status
  144. .PHONY: realclean
  145.  
  146. dist:
  147.     echo find-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q find/version.c` > .fname
  148.     rm -rf `cat .fname`
  149.     mkdir `cat .fname`
  150.     ln $(DISTFILES) `cat .fname`
  151.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  152.     tar chZf `cat .fname`.tar.Z `cat .fname`
  153.     rm -rf `cat .fname` .fname
  154. .PHONY: dist
  155.  
  156. # Prevent GNU make v3 from overflowing arg limit on SysV.
  157. .NOEXPORT:
  158.