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

  1. # Makefile for GNU tar 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. PACKAGE = @PACKAGE@
  19. VERSION = @VERSION@
  20.  
  21. SHELL = /bin/sh
  22. VPATH = @srcdir@
  23. srcdir = @srcdir@
  24. subdir = doc
  25. top_srcdir = @top_srcdir@
  26.  
  27. INSTALL = @INSTALL@
  28. INSTALL_DATA = @INSTALL_DATA@
  29. MAKEINFO = makeinfo
  30. TEXI2DVI = texi2dvi
  31. TOUCH = echo timestamp >
  32.  
  33. prefix = @prefix@
  34. infodir = $(prefix)/info
  35.  
  36. .SUFFIXES:
  37.  
  38. DISTFILES = Makefile.in tar.texinfo docwarn.texi header.texi texinfo.tex \
  39. stamp-vti version.texi \
  40. tar.info tar.info-1 tar.info-2 tar.info-3 tar.info-4 tar.info-5 \
  41. tar.info-6 tar.info-7
  42.  
  43. all: tar.info tar.guide
  44.  
  45. info: tar.info
  46.  
  47. tar.info: tar.texinfo docwarn.texi header.texi version.texi
  48.     $(MAKEINFO) -I$(srcdir) $(srcdir)/tar.texinfo -o $@
  49.  
  50. guide: tar.guide
  51.  
  52. tar.guide: tar.texinfo
  53.     $(MAKEINFO) --amiga -I$(srcdir) $(srcdir)/tar.texinfo -o $@
  54.     
  55. dvi: tar.dvi
  56.  
  57. tar.dvi: tar.texinfo docwarn.texi header.texi
  58.     $(TEXI2DVI) $(srcdir)/tar.texinfo
  59.  
  60. # Amiga hack - Couldn't find *any* date command that knows what -r is.
  61. # Amiga hack - Don't use mv to install version.tmp, it might be on
  62. #              another file system.
  63. # Amiga hack - Don't even bother remaking version.texi everytime we
  64. #              do a build.  It just introduces a useless change.
  65. #version.texi: stamp-vti
  66. #stamp-vti: tar.texinfo ../configure.in
  67. #    echo "@set EDITION $(VERSION)" > version.tmp
  68. #    echo "@set UPDATED `date '+%B %Y'`" \
  69. #        >> version.tmp
  70. #    echo "@set VERSION $(VERSION)" >> version.tmp
  71. #    if cmp -s version.tmp $(srcdir)/version.texi; then rm version.tmp; \
  72. #    else cp version.tmp $(srcdir)/version.texi; fi
  73. #    $(TOUCH) $(srcdir)/stamp-vti
  74.  
  75. header.texi: ../src/tar.h
  76.     sed -n '/Standard Archive/,/End of Standard/p' $(srcdir)/../src/tar.h \
  77.       | expand | sed 's/\([{}]\)/@\1/g' > $(srcdir)/header.texi
  78.  
  79. install: all
  80.     $(top_srcdir)/mkinstalldirs $(infodir)
  81.     for file in tar.info*; do \
  82.       $(INSTALL_DATA) $$file $(infodir)/$$file; \
  83.     done
  84.  
  85. uninstall:
  86.     rm -f $(infodir)/tar.info*
  87.  
  88. mostlyclean:
  89.     rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.log *.pg *.toc *.tp *.vr
  90.     rm -f *.tmp
  91.  
  92. clean: mostlyclean
  93.  
  94. distclean: clean
  95.     rm -f Makefile
  96.  
  97. maintainer-clean: distclean
  98.     @echo "This command is intended only for maintainers to use;"
  99.     @echo "rebuilding the deleted files may require special tools."
  100.     rm -f stamp-vti version.texi tar.info*
  101.  
  102. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  103. dist shar: $(DISTFILES)
  104.     for file in $(DISTFILES); do \
  105.       ln $(srcdir)/$$file $(distdir) 2> /dev/null \
  106.         || cp -p $(srcdir)/$$file $(distdir); \
  107.     done
  108.  
  109. Makefile: Makefile.in ../config.status
  110.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  111.  
  112. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  113. # Otherwise a system limit (for SysV at least) may be exceeded.
  114. .NOEXPORT:
  115.