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 / doc / Makefile.in next >
Makefile  |  1996-09-28  |  3KB  |  105 lines

  1. # Makefile for GNU shell utilities documentation.
  2. # Copyright (C) 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. INSTALL = @INSTALL@
  24. INSTALL_DATA = @INSTALL_DATA@
  25. MAKEINFO = makeinfo
  26. TEXI2DVI = texi2dvi
  27.  
  28. prefix = @prefix@
  29. infodir = @infodir@
  30. guidedir = @guidedir@
  31.  
  32. .SUFFIXES:
  33.  
  34. DISTFILES = Makefile.in sh-utils.texi texinfo.tex sh-utils.info version.texi
  35.  
  36. all: sh-utils.info sh-utils.guide
  37.  
  38. info: sh-utils.info
  39.  
  40. guide: sh-utils.guide
  41.  
  42. version.texi: ../src/version.c
  43.     sed -e '/version_string/!d' \
  44.         -e 's/[^"]*"\([^"]*\)".*/@set VERSION \1/' \
  45.         -e q $(srcdir)/../src/version.c \
  46.       > $@-t
  47.     echo '@set RELEASEDATE '`date '+%B %Y'` >> $@-t
  48.     mv $@-t $@
  49.  
  50. sh-utils.info: sh-utils.texi version.texi
  51.     $(MAKEINFO) -I$(srcdir) --no-split sh-utils.texi --output=$@
  52.  
  53. sh-utils.guide: sh-utils.texi version.texi
  54.     $(MAKEINFO) -I$(srcdir) --amiga-39 $(srcdir)/sh-utils.texi -o $@
  55.  
  56. dvi: sh-utils.dvi
  57.  
  58. sh-utils.dvi: sh-utils.texi version.texi
  59.     $(TEXI2DVI) $(srcdir)/sh-utils.texi
  60.  
  61. installdirs:
  62.     $(srcdir)/../mkinstalldirs $(infodir) $(guidedir)
  63.  
  64. install: all installdirs
  65.     for file in sh-utils.info*; do \
  66.       $(INSTALL_DATA) $$file $(infodir)/$$file; \
  67.     done
  68.     for file in sh-utils.guide; do \
  69.       $(INSTALL_DATA) $$file $(guidedir)/$$file; \
  70.     done
  71.  
  72. uninstall:
  73.     rm -f $(infodir)/sh-utils.info* $(guidedir)/sh-utils.guide
  74.  
  75. check:
  76.  
  77. texclean:
  78.     rm -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr \
  79.         *.fl *.cm *.op *.cps
  80.  
  81. mostlyclean: texclean
  82.  
  83. clean: mostlyclean
  84.  
  85. distclean: clean
  86.     rm -f Makefile
  87.  
  88. realclean: distclean
  89.     rm -f sh-utils.info sh-utils.guide version.texi
  90.  
  91. distdir = ../`cat ../distname`/$(subdir)
  92. dist: $(DISTFILES)
  93.     for file in $(DISTFILES); do \
  94.       ln $$file $(distdir) \
  95.         || { echo copying $$file instead; cp -p $$file $(distdir);}; \
  96.     done
  97.  
  98. subdir = doc
  99. Makefile: ../config.status Makefile.in
  100.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  101.  
  102. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  103. # Otherwise a system limit (for SysV at least) may be exceeded.
  104. .NOEXPORT:
  105.