home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / sh-utils-1.12-src.tgz / tar.out / fsf / sh-utils / man / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  3KB  |  98 lines

  1. # Makefile for GNU shell utilities documentation.
  2. # Copyright (C) 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. SHELL = /bin/sh
  19.  
  20. srcdir = @srcdir@
  21. VPATH = @srcdir@
  22.  
  23. prefix = @prefix@
  24. mandir = $(prefix)/man/man1
  25. manext = 1
  26. INSTALL = @INSTALL@
  27. INSTALL_DATA = @INSTALL_DATA@
  28. RM = rm
  29.  
  30. # Files to install on all systems
  31. MANFILES1 = basename.1 date.1 dirname.1 echo.1 env.1 expr.1 false.1 groups.1 \
  32. hostname.1 id.1 logname.1 pathchk.1 printenv.1 printf.1 pwd.1 sleep.1 \
  33. tee.1 test.1 true.1 tty.1 users.1 who.1 whoami.1 yes.1
  34.  
  35. # Files to install if configure determines we can build the corresponding
  36. # executables.
  37. MANFILES2 = nice.1 nohup.1 su.1 stty.1 uname.1
  38.  
  39. # Files to install.
  40. MANFILES = $(MANFILES1) @MAN@
  41.  
  42. DISTFILES = Makefile.in $(MANFILES1) $(MANFILES2)
  43.  
  44. all:
  45.  
  46. .SUFFIXES:
  47.  
  48. subdir = man
  49. Makefile: ../config.status Makefile.in
  50.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  51.  
  52. installdirs:
  53.     $(srcdir)/../mkinstalldirs $(mandir)
  54.  
  55. transform = @program_transform_name@
  56. install: $(MANFILES) installdirs
  57.     for f in $(MANFILES); do \
  58.       name=`basename $$f 1`; \
  59.       $(INSTALL_DATA) $(srcdir)/$$f \
  60.           $(mandir)/`echo $$name|sed '$(transform)'`$(manext); \
  61.     done
  62.     @if test `../src/id -u` = 0; then \
  63.       echo you are root, so installing su.1; \
  64.       $(INSTALL_DATA) $(srcdir)/su.1 \
  65.           $(mandir)/`echo su|sed '$(transform)'`.$(manext); \
  66.     else echo WARNING: you are not root, so not installing su.1; fi
  67.  
  68. uninstall:
  69.     for f in $(MANFILES) su.1; do \
  70.       name=`basename $$f 1`; \
  71.       $(RM) -f $(mandir)/`echo $$name|sed '$(transform)'`$(manext); \
  72.     done
  73.  
  74. TAGS:
  75.  
  76. check:
  77.  
  78. clean:
  79.  
  80. mostlyclean: clean
  81.  
  82. distclean: clean
  83.     $(RM) -f Makefile
  84.  
  85. realclean: distclean
  86.     $(RM) -f TAGS
  87.  
  88. distdir = ../`cat ../distname`/$(subdir)
  89. dist:
  90.     for file in $(DISTFILES); do \
  91.       ln $$file $(distdir) \
  92.         || { echo copying $$file instead; cp -p $$file $(distdir);}; \
  93.     done
  94.  
  95. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  96. # Otherwise a system limit (for SysV at least) may be exceeded.
  97. .NOEXPORT:
  98.