home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / fileutils-3.9-src.lha / src / amiga / fileutils-3.9 / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-02-22  |  3.3 KB  |  113 lines

  1. # Master Makefile for the GNU file utilities.
  2. # Copyright (C) 1990, 1991, 1992, 1993 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.  
  28. prefix = /gnu
  29. exec_prefix = $(prefix)
  30. bindir = $(exec_prefix)/bin
  31. libdir = $(exec_prefix)/lib
  32. datadir = $(prefix)/lib
  33. mandir = $(prefix)/man/man1
  34.  
  35. SHELL = /bin/sh
  36.  
  37. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README INSTALL \
  38. NEWS configure configure.in config.h.in acconfig.h mkinstalldirs
  39.  
  40. # Redundant stuff for making only selected programs.
  41. PROGS = chgrp chmod chown cp dd dir du ginstall ln ls \
  42. mkdir mkfifo mknod mv rm rmdir touch vdir @PROGS@
  43.  
  44. # Subdirectories to run make in for the primary targets.
  45. SUBDIRS = lib src man
  46.  
  47. all:
  48.     for dir in $(SUBDIRS); do \
  49.       echo making $@ in $$dir ; \
  50.       (cd $$dir; $(MAKE) $@) ; \
  51.     done
  52.  
  53. info:
  54. install-info:
  55. dvi:
  56.  
  57. check:
  58. installcheck:
  59.  
  60. $(PROGS):
  61.     cd lib; $(MAKE) all
  62.     cd src; $(MAKE) $@
  63.  
  64. config.h: stamp-config ;
  65. stamp-config: config.status $(srcdir)/config.h.in
  66.     $(SHELL) config.status
  67.     touch stamp-config
  68.  
  69. Makefile: config.status $(srcdir)/Makefile.in $(srcdir)/lib/Makefile.in \
  70.         $(srcdir)/man/Makefile.in $(srcdir)/src/Makefile.in
  71.     $(SHELL) config.status
  72.  
  73. config.status: configure
  74.     $(SHELL) config.status --recheck
  75. configure: configure.in
  76.     cd $(srcdir); autoconf
  77. config.h.in: configure.in
  78.     cd $(srcdir); autoheader
  79.  
  80. # Make sure all installation directories, e.g. $(bindir) actually exist by
  81. # making them if necessary.
  82. installdirs:
  83.     $(SHELL) $(srcdir)/mkinstalldirs \
  84.       $(bindir) $(datadir) $(libdir) $(infodir) $(mandir)
  85.  
  86. install:: installdirs
  87.  
  88. install uninstall TAGS clean mostlyclean distclean realclean::
  89.     for dir in $(SUBDIRS); do \
  90.       echo making $@ in $$dir ; \
  91.       (cd $$dir; $(MAKE) $@) ; \
  92.     done
  93.  
  94. distclean realclean::
  95.     rm -f Makefile config.status config.h stamp-config
  96.  
  97. dist: $(DISTFILES)
  98.     echo fileutils-`sed -e '/version_string/!d' \
  99.         -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' -e q src/version.c` > .fname
  100.     rm -rf `cat .fname`
  101.     mkdir `cat .fname`
  102.     ln $(DISTFILES) `cat .fname`
  103.     for dir in $(SUBDIRS); do \
  104.       mkdir `cat .fname`/$$dir; \
  105.       (cd $$dir; $(MAKE) $@); \
  106.     done
  107.     tar --gzip -chvf `cat .fname`.tar.gz `cat .fname`
  108.     rm -rf `cat .fname` .fname
  109.  
  110. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  111. # Otherwise a system limit (for SysV at least) may be exceeded.
  112. .NOEXPORT:
  113.