home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / shellutils-1.9.4-src.lha / src / build / shellutils-1.9.4 / Makefile < prev   
Encoding:
Makefile  |  1994-02-22  |  3.8 KB  |  117 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Master Makefile for the GNU shell programming utilities.
  3. # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. # This directory's subdirectories are mostly independent; you can cd
  20. # into them and run `make' without going through this Makefile.
  21. # To change the values of `make' variables: instead of editing Makefiles,
  22. # (1) if the variable is set in `config.status', edit `config.status'
  23. #     (which will cause the Makefiles to be regenerated when you run `make');
  24. # (2) otherwise, pass the desired values on the `make' command line.
  25.  
  26. srcdir = /ISO/shellutils/shellutils-1.9.4-amiga
  27. VPATH = /ISO/shellutils/shellutils-1.9.4-amiga
  28.  
  29. prefix = /gnu
  30. exec_prefix = $(prefix)
  31. bindir = $(exec_prefix)/bin
  32. libdir = $(exec_prefix)/lib
  33. datadir = $(prefix)/lib
  34. mandir = $(prefix)/man/man1
  35.  
  36. SHELL = /bin/sh
  37.  
  38. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README INSTALL \
  39. NEWS configure configure.in config.h.in acconfig.h mkinstalldirs install.sh
  40.  
  41. # Redundant stuff for making only selected programs.
  42. PROGS = basename date dirname echo env expr id logname \
  43. pathchk printenv printf sleep tee test whoami yes  nice
  44.  
  45. # Subdirectories to run make in for the primary targets.
  46. SUBDIRS = lib src man
  47.  
  48. all:
  49.     for dir in $(SUBDIRS); do \
  50.       echo making $@ in $$dir ; \
  51.       (cd $$dir; $(MAKE) $@) ; \
  52.     done
  53.  
  54. info:
  55. install-info:
  56. dvi:
  57.  
  58. check:
  59. installcheck:
  60.  
  61. $(PROGS):
  62.     cd lib; $(MAKE) all
  63.     cd src; $(MAKE) $@
  64.  
  65. config.h: stamp-config ;
  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            ## Comment-me-out in distribution
  77. #    cd $(srcdir); autoconf     ## Comment-me-out in distribution
  78. #config.h.in: configure.in          ## Comment-me-out in distribution
  79. #    cd $(srcdir); autoheader   ## Comment-me-out in distribution
  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 shellutils-`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.     rm -f `cat .fname`/Makefile.in
  105.     sed 's/^.*#$(empty)# Comment.*/#&/' Makefile.in \
  106.         > `cat .fname`/Makefile.in
  107.     for dir in $(SUBDIRS); do \
  108.       mkdir `cat .fname`/$$dir; \
  109.       (cd $$dir; $(MAKE) $@); \
  110.     done
  111.     tar --gzip -chvf `cat .fname`.tar.gz `cat .fname`
  112.     rm -rf `cat .fname` .fname
  113.  
  114. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  115. # Otherwise a system limit (for SysV at least) may be exceeded.
  116. .NOEXPORT:
  117.