home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Shells / zsh-3.0.5-MIHS / src / Doc / Makefile.in < prev    next >
Encoding:
Makefile  |  1996-12-17  |  4.9 KB  |  181 lines

  1. #
  2. # $Id: Makefile.in,v 2.6 1996/10/15 20:16:35 hzoli Exp $
  3. #
  4. # Makefile for Doc subdirectory
  5. #
  6. # Copyright (c) 1995 Richard Coleman
  7. # All rights reserved.
  8. #
  9. # Permission is hereby granted, without written agreement and without
  10. # license or royalty fees, to use, copy, modify, and distribute this
  11. # software and to distribute modified versions of this software for any
  12. # purpose, provided that the above copyright notice and the following
  13. # two paragraphs appear in all copies of this software.
  14. #
  15. # In no event shall Richard Coleman or the Zsh Development Group be liable
  16. # to any party for direct, indirect, special, incidental, or consequential
  17. # damages arising out of the use of this software and its documentation,
  18. # even if Richard Coleman and the Zsh Development Group have been advised of
  19. # the possibility of such damage.
  20. #
  21. # Richard Coleman and the Zsh Development Group specifically disclaim any
  22. # warranties, including, but not limited to, the implied warranties of
  23. # merchantability and fitness for a particular purpose.  The software
  24. # provided hereunder is on an "as is" basis, and Richard Coleman and the
  25. # Zsh Development Group have no obligation to provide maintenance,
  26. # support, updates, enhancements, or modifications.
  27. #
  28.  
  29. SHELL = /bin/sh
  30.  
  31. # Program to format Texinfo source into Info files.
  32. MAKEINFO = makeinfo
  33. # Program to format Texinfo source into DVI files.
  34. TEXI2DVI = texi2dvi
  35. # Program to convert DVI files to PostScript
  36. DVIPS = dvips -D 300
  37. # Program to convert texinfo files to html
  38. TEXI2HTML = texi2html -expandinfo -split_chapter
  39.  
  40. top_srcdir = @top_srcdir@
  41. srcdir     = @srcdir@
  42. VPATH      = @srcdir@
  43.  
  44. prefix      = @prefix@
  45. infodir     = @infodir@
  46. mandir      = @mandir@
  47. zshenv      = @zshenv@
  48. zshrc       = @zshrc@
  49. zprofile    = @zprofile@
  50. zlogin      = @zlogin@
  51. zlogout     = @zlogout@
  52. manext      = 1
  53.  
  54. INSTALL      = @INSTALL@
  55. INSTALL_DATA = @INSTALL_DATA@
  56.  
  57. SED = sed
  58.  
  59. .SUFFIXES:
  60. .SUFFIXES: .man .$(manext)
  61.  
  62. # we just copy the man page to its new name
  63. # unless there is a rule below to edit it.
  64. .man.$(manext):
  65.     sed -e 's,%zshenv%,$(zshenv),g' \
  66.         -e 's,%zshrc%,$(zshrc),g' \
  67.         -e 's,%zprofile%,$(zprofile),g' \
  68.         -e 's,%zlogin%,$(zlogin),g' \
  69.         -e 's,%zlogout%,$(zlogout),g' \
  70.         -e 's,%mandir%,man$(manext),g' \
  71.         -e 's,%manext%,$(manext),g' $< > $@
  72.  
  73. # man pages to install
  74. MAN = zsh.$(manext) zshbuiltins.$(manext) zshcompctl.$(manext) \
  75. zshexpn.$(manext) zshmisc.$(manext) zshoptions.$(manext) \
  76. zshparam.$(manext) zshzle.$(manext) zshall.$(manext)
  77.  
  78. # source for man pages
  79. DIST_MAN = zsh.man zshbuiltins.man zshcompctl.man zshexpn.man \
  80. zshmisc.man zshoptions.man zshparam.man zshzle.man zshall.man \
  81. ansi2knr.man
  82.  
  83. # auxiliary files
  84. AUX = Makefile.in zsh.texi intro.ms
  85.  
  86. # all files in this directory included in the distribution
  87. DIST = $(DIST_MAN) $(AUX)
  88.  
  89. # ========== DEPENDENCIES FOR BUILDING ==========
  90.  
  91. all: $(MAN) zsh.info
  92.  
  93. everything: all zsh_us.ps zsh_a4.ps zsh_toc.html
  94.  
  95. zsh.info: zsh.texi
  96.     @$(MAKEINFO) -I$(srcdir) $(srcdir)/zsh.texi || { \
  97.     echo Info documentation cannot be compiled without $(MAKEINFO). ; \
  98.     echo You can find precompiled info files in zsh-doc.tar.gz. ; }
  99.  
  100. zsh.dvi: zsh.texi
  101.     $(TEXI2DVI) $(srcdir)/zsh.texi
  102.  
  103. zsh_us.ps: zsh.dvi
  104.     $(DVIPS) -t letter -o $@ zsh.dvi
  105.  
  106. zsh_a4.ps: zsh.dvi
  107.     $(DVIPS) -t a4 -o $@ zsh.dvi
  108.  
  109. zsh_toc.html: zsh.texi
  110.     $(TEXI2HTML) $(srcdir)/zsh.texi
  111.  
  112. # ========== DEPENDENCIES FOR INSTALLING ==========
  113.  
  114. # install all the documentation
  115. install: install.man install.info
  116.  
  117. # uninstall all the documentation
  118. uninstall: uninstall.man uninstall.info
  119.  
  120. # install man pages, creating install directory if necessary
  121. install.man: $(MAN)
  122.     $(top_srcdir)/mkinstalldirs $(mandir)/man$(manext)
  123.     for file in $(MAN); do \
  124.       $(INSTALL_DATA) $$file $(mandir)/man$(manext) ; \
  125.     done
  126.  
  127. # install info pages, creating install directory if necessary
  128. install.info: zsh.info
  129.     $(top_srcdir)/mkinstalldirs $(infodir)
  130.     for file in zsh.info zsh.info-[1-9]; do \
  131.       [ -f "$$file" ] && $(INSTALL_DATA) $$file $(infodir) ; \
  132.     done
  133.  
  134. # uninstall man pages
  135. uninstall.man:
  136.     for file in $(MAN); do \
  137.       rm -f $(mandir)/man$(manext)/$$file; \
  138.     done
  139.  
  140. # uninstall info pages
  141. uninstall.info:
  142.     rm -f $(infodir)/zsh.info $(infodir)/zsh.info-[1-9]
  143.  
  144. # ========== DEPENDENCIES FOR CLEANUP ==========
  145.  
  146. mostlyclean:
  147.     rm -f *~
  148.  
  149. clean: mostlyclean
  150.     rm -f *.$(manext)
  151.  
  152. distclean: clean
  153.     rm -f Makefile
  154.  
  155. realclean: distclean
  156.  
  157. superclean: realclean
  158.  
  159. # ========== DEPENDENCIES FOR MAINTENANCE ==========
  160.  
  161. subdir = Doc
  162.  
  163. Makefile: Makefile.in ../config.status
  164.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  165.  
  166. distdir = ../`cat ../distname`/$(subdir)
  167. dist: $(DIST)
  168.     @echo "Copying distribution files in $(subdir)"
  169.     for file in $(DIST); do    \
  170.       cp -p $$file $(distdir); \
  171.     done
  172.  
  173. rcsdistdir = ../`cat ../rcsdistname`/$(subdir)
  174. dist-rcs: $(DIST)
  175.     @echo "Copying distribution files in $(subdir) (RCS source)"
  176.     for file in $(DIST); do                 \
  177.       ci $$file;                            \
  178.       cp -p RCS/$$file,v $(rcsdistdir)/RCS; \
  179.       co -l $$file;                         \
  180.     done
  181.