home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / textutils-1.9-src.lha / src / amiga / textutils-1.9 / Makefile.in < prev    next >
Makefile  |  1994-02-21  |  3KB  |  114 lines

  1. # Master Makefile for the GNU text utilities.
  2. # Copyright (C) 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 mkinstalldirs
  39.  
  40. # Redundant stuff for making only selected programs.
  41. PROGS = cat cksum comm csplit cut expand fold head join nl od \
  42. paste pr sort split sum tac tail tr unexpand uniq wc
  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.  
  66. stamp-config: config.status $(srcdir)/config.h.in
  67.     $(SHELL) config.status
  68.     touch stamp-config
  69.  
  70. Makefile: config.status $(srcdir)/Makefile.in $(srcdir)/lib/Makefile.in \
  71.         $(srcdir)/man/Makefile.in $(srcdir)/src/Makefile.in
  72.     $(SHELL) config.status
  73.  
  74. config.status: configure
  75.     $(SHELL) config.status --recheck
  76. configure: configure.in
  77.     cd $(srcdir); autoconf
  78. config.h.in: configure.in
  79.     cd $(srcdir); autoheader
  80.  
  81. # Make sure all installation directories, e.g. $(bindir) actually exist by
  82. # making them if necessary.
  83. installdirs:
  84.     $(SHELL) $(srcdir)/mkinstalldirs \
  85.       $(bindir) $(datadir) $(libdir) $(infodir) $(mandir)
  86.  
  87. install:: installdirs
  88.  
  89. install uninstall TAGS clean mostlyclean distclean realclean::
  90.     for dir in $(SUBDIRS); do \
  91.       echo making $@ in $$dir ; \
  92.       (cd $$dir; $(MAKE) $@) ; \
  93.     done
  94.  
  95. distclean realclean::
  96.     rm -f Makefile config.status config.h stamp-config
  97.  
  98. dist: $(DISTFILES)
  99.     echo textutils-`sed -e '/version_string/!d' \
  100.         -e 's/[^0-9.]*\([0-9.a-z]*\).*/\1/' -e q src/version.c` > .fname
  101.     rm -rf `cat .fname`
  102.     mkdir `cat .fname`
  103.     ln $(DISTFILES) `cat .fname`
  104.     for dir in $(SUBDIRS); do \
  105.       mkdir `cat .fname`/$$dir; \
  106.       (cd $$dir; $(MAKE) $@); \
  107.     done
  108.     tar --gzip -chvf `cat .fname`.tar.gz `cat .fname`
  109.     rm -rf `cat .fname` .fname
  110.  
  111. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  112. # Otherwise a system limit (for SysV at least) may be exceeded.
  113. .NOEXPORT:
  114.