home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / fileutils-3.12-src.lha / fileutils-3.12 / doc / Makefile.in < prev    next >
Encoding:
Makefile  |  1994-11-04  |  2.4 KB  |  97 lines

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