home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / fileutils-3.12-src.lha / fileutils-3.12 / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-11-12  |  3.9 KB  |  131 lines

  1. # Master Makefile for the GNU file utilities.
  2. # Copyright (C) 1990, 1991, 1992, 1993, 1994 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. # This directory's subdirectories are mostly independent; you can cd
  19. # into them and run `make' without going through this Makefile.
  20. # To change the values of `make' variables: instead of editing Makefiles,
  21. # (1) if the variable is set in `config.status', edit `config.status'
  22. #     (which will cause the Makefiles to be regenerated when you run `make');
  23. # (2) otherwise, pass the desired values on the `make' command line.
  24.  
  25. srcdir = @srcdir@
  26. VPATH = @srcdir@
  27. @SET_MAKE@
  28.  
  29. SHELL = /bin/sh
  30.  
  31. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README INSTALL \
  32. NEWS configure configure.in config.h.in mkinstalldirs install-sh \
  33. stamp-h.in acconfig.h
  34.  
  35. # Redundant stuff for making only selected programs.
  36. PROGS = chgrp chmod chown cp dd dir du ginstall ln ls \
  37. mkdir mkfifo mknod mv rm rmdir sync touch vdir @PROGS@
  38.  
  39. # Subdirectories to run make in for the primary targets.
  40. SUBDIRS = lib src man doc
  41.  
  42. .SUFFIXES:
  43.  
  44. all install uninstall: config.h Makefile
  45.     for subdir in $(SUBDIRS); do \
  46.       echo making $@ in $$subdir; \
  47.       (cd $$subdir && $(MAKE) $@) || exit 1; \
  48.     done
  49.  
  50. info dvi:
  51.     cd doc && $(MAKE) $@
  52.  
  53. check:
  54. installcheck:
  55.  
  56. $(PROGS):
  57.     cd lib && $(MAKE) all
  58.     cd src && $(MAKE) $@
  59.  
  60. mostlyclean: mostlyclean-recursive mostlyclean-local
  61.  
  62. clean: clean-recursive clean-local
  63.  
  64. distclean: distclean-recursive distclean-local
  65.     rm config.status
  66.  
  67. realclean: realclean-recursive realclean-local
  68.     rm config.status
  69.  
  70. TAGS clean-recursive distclean-recursive \
  71.         mostlyclean-recursive realclean-recursive:
  72.     for subdir in $(SUBDIRS); do \
  73.       target=`echo $@|sed 's/-recursive//'`; \
  74.       echo making $$target in $$subdir; \
  75.       (cd $$subdir && $(MAKE) $$target) || exit 1; \
  76.     done
  77.  
  78. mostlyclean-local:
  79.  
  80. clean-local: mostlyclean-local
  81.  
  82. distclean-local: clean-local
  83.     rm -f Makefile config.cache config.h config.log stamp-h distname
  84.  
  85. realclean-local: distclean-local
  86.  
  87. distname: src/version.c
  88.     echo fileutils-`sed -e '/version_string/!d' \
  89.         -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' -e q src/version.c` > $@-tmp
  90.     mv $@-tmp $@
  91.  
  92. distdir = `cat distname`
  93. dist: $(DISTFILES) distname
  94.     rm -rf $(distdir)
  95.     mkdir $(distdir)
  96.     for file in $(DISTFILES); do \
  97.       ln $$file $(distdir) \
  98.         || { echo copying $$file instead; cp -p $$file $(distdir);}; \
  99.     done
  100.     for subdir in $(SUBDIRS); do \
  101.       mkdir $(distdir)/$$subdir || exit 1; \
  102.       (cd $$subdir && $(MAKE) $@) || exit 1; \
  103.     done
  104.     tar --gzip -chvf $(distdir).tar.gz $(distdir)
  105.     rm -rf $(distdir) distname
  106.  
  107. # For the justification of the following Makefile rules, see node
  108. # `Automatic Remaking' in GNU Autoconf documentation.
  109.  
  110. Makefile: config.status Makefile.in
  111.     CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
  112.  
  113. config.h: stamp-h
  114. stamp-h: config.status $(srcdir)/config.h.in
  115.     CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
  116.  
  117. config.status: configure
  118.     ./config.status --recheck
  119. configure: configure.in
  120.     cd $(srcdir) && autoconf
  121. config.h.in: stamp-h.in
  122. stamp-h.in: configure.in
  123.     cd $(srcdir) && autoheader
  124. # Use echo instead of date to avoid spurious conflicts for
  125. # people who use CVS, since stamp-h.in is distributed.
  126.     echo > $(srcdir)/$@
  127.  
  128. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  129. # Otherwise a system limit (for SysV at least) may be exceeded.
  130. .NOEXPORT:
  131.