home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / cvs-1.8.7-src.tgz / tar.out / fsf / cvs / doc / Makefile.in < prev   
Makefile  |  1996-09-28  |  7KB  |  237 lines

  1. # Makefile for GNU CVS documentation.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1986, 1988-1990 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. # $CVSid: @(#)Makefile.in 1.8 94/10/22 $
  20.  
  21. SHELL = /bin/sh
  22.  
  23. srcdir = @srcdir@
  24. top_srcdir = @top_srcdir@
  25. VPATH = @srcdir@
  26.  
  27. prefix = @prefix@
  28. exec_prefix = @exec_prefix@
  29.  
  30. infodir = $(prefix)/info
  31. guidedir = $(prefix)/guide
  32. dvidir = $(prefix)/dvi
  33. psdir = $(prefix)/ps
  34.  
  35. INSTALL    = @INSTALL@
  36. INSTALL_DATA = @INSTALL_DATA@
  37.  
  38. #Amiga hack - groff doesn't yet support ms macros - FIXME
  39. DISTFILES = \
  40.     .cvsignore ChangeLog ChangeLog.fsf Makefile.in \
  41.     cvs-paper.ms \
  42.     cvs.texinfo \
  43.     cvsclient.texi
  44.  
  45. OBJDIR_DISTFILES = cvs.ps cvs.info cvs.guide cvs.aux \
  46.     cvsclient.ps cvsclient.info cvsclient.guide cvsclient.aux CVSvn.texi
  47.  
  48. # these are part of the texinfo distribution
  49. MAKEINFO=makeinfo
  50. TEXI2DVI = texi2dvi
  51.  
  52. # where to find texinfo;
  53. TEXIDIR=${gdbdir}/../texinfo
  54.  
  55. SET_TEXINPUTS = TEXINPUTS=.:$(srcdir):$$TEXINPUTS
  56.  
  57. # Don Knuth's TeX formatter
  58. TEX = tex
  59.  
  60. # auxiliary program for sorting Texinfo indices
  61. TEXINDEX = texindex
  62.  
  63. DVIPS = dvips
  64. DVIPSFLAGS = 
  65.  
  66. ROFF = groff
  67.  
  68. # AMIGA:  Make sure info and doc are built.
  69. all: doc info guide
  70. .PHONY: all
  71.  
  72. # AMIGA:  Install info, guide, dvi, and ps files also.
  73. install: all install-info install-guide install-dvi install-ps
  74. .PHONY: install
  75.  
  76. info: cvs.info cvsclient.info
  77.  
  78. cvs.info: cvs.texinfo CVSvn.texi
  79.     if [ ! -f ./CVSvn.texi ]; then \
  80.         ln -s $(srcdir)/CVSvn.texi . || \
  81.         ln $(srcdir)/CVSvn.texi . || \
  82.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  83.     $(MAKEINFO) $(srcdir)/cvs.texinfo -o cvs.info
  84.  
  85. cvsclient.info: cvsclient.texi CVSvn.texi
  86.     if [ ! -f ./CVSvn.texi ]; then \
  87.         ln -s $(srcdir)/CVSvn.texi . || \
  88.         ln $(srcdir)/CVSvn.texi . || \
  89.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  90.     $(MAKEINFO) $(srcdir)/cvsclient.texi -o cvsclient.info
  91.  
  92. # Version of the protocol suitable for emailing
  93. cvsclient.txt: cvsclient.texi CVSvn.texi
  94.     if [ ! -f ./CVSvn.texi ]; then \
  95.         ln -s $(srcdir)/CVSvn.texi . || \
  96.         ln $(srcdir)/CVSvn.texi . || \
  97.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  98.     $(MAKEINFO) $(srcdir)/cvsclient.texi --no-headers -o cvsclient.txt
  99.  
  100. # If the user gets a distribution (which contains *.info), unpacks
  101. # it, and builds it in a seperate build dir, then *.info* are in srcdir.
  102. # If the user builds *.info (e.g. after editing *.texi), then *.info* are
  103. # in the build dir.
  104. install-info: info
  105.     test -f cvs.info || cd $(srcdir); \
  106.     for i in *.info* ; do \
  107.       $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  108.     done
  109.  
  110. guide: cvs.guide cvsclient.guide
  111.  
  112. cvs.guide: cvs.texinfo
  113.     $(MAKEINFO) --amiga $(srcdir)/cvs.texinfo -o cvs.guide
  114.  
  115. cvsclient.guide: cvsclient.texi
  116.     $(MAKEINFO) --amiga $(srcdir)/cvsclient.texi -o cvsclient.guide
  117.  
  118. install-guide: guide
  119.     $(INSTALL_DATA) cvs.guide $(guidedir)/cvs.guide
  120.  
  121. installdirs: 
  122.     $(SHELL) $(top_srcdir)/mkinstalldirs $(infodir) $(guidedir) $(dvidir) $(psdir)
  123. .PHONY: installdirs
  124.  
  125. dvi: cvs.dvi cvsclient.dvi
  126.  
  127. CVSvn.texi: $(top_srcdir)/src/version.c
  128.     echo "@set CVSVN `sed < $(top_srcdir)/src/version.c \
  129.             -e '/version_string/!d' \
  130.             -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
  131.             -e q`" >CVSvn.new
  132.     mv CVSvn.new CVSvn.texi
  133.  
  134. cvs.dvi cvs.aux: cvs.texinfo CVSvn.texi
  135.     if [ ! -f ./CVSvn.texi ]; then \
  136.         ln -s $(srcdir)/CVSvn.texi . || \
  137.         ln $(srcdir)/CVSvn.texi . || \
  138.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  139.     $(TEXI2DVI) $(srcdir)/cvs.texinfo
  140.  
  141. cvsclient.dvi cvsclient.aux: cvsclient.texi CVSvn.texi
  142.     if [ ! -f ./CVSvn.texi ]; then \
  143.         ln -s $(srcdir)/CVSvn.texi . || \
  144.         ln $(srcdir)/CVSvn.texi . || \
  145.         cp $(srcdir)/CVSvn.texi . ; else true; fi
  146.     $(SET_TEXINPUTS) $(TEX) cvsclient.texi
  147.     $(SET_TEXINPUTS) $(TEX) cvsclient.texi
  148.     $(TEXINDEX) cvsclient.??
  149.     $(SET_TEXINPUTS) $(TEX) cvsclient.texi
  150.     rm -f cvsclient.?? cvsclient.log cvsclient.toc cvsclient.??s
  151.  
  152. install-dvi: dvi
  153.     $(INSTALL_DATA) cvs.dvi $(dvidir)/cvs.dvi
  154.     $(INSTALL_DATA) cvsclient.dvi $(dvidir)/cvsclient.dvi
  155.  
  156. #Amiga hack - groff doesn't yet support ms macros - FIXME
  157. doc: cvs.ps cvsclient.ps
  158.  
  159. cvs.ps: cvs.dvi
  160.     $(DVIPS) $(DVIPSFLAGS) cvs.dvi -o cvs.ps
  161.  
  162. cvs-paper.ps: cvs-paper.ms
  163.     $(ROFF) -t -p -ms -Tps $(srcdir)/cvs-paper.ms > $@-t
  164.     mv $@-t $@
  165.  
  166. cvsclient.ps: cvsclient.dvi
  167.     $(DVIPS) $(DVIPSFLAGS) cvsclient.dvi -o cvsclient.ps
  168.     
  169. install-ps: doc
  170.     $(INSTALL_DATA) cvs.ps $(psdir)/cvs.ps
  171.     $(INSTALL_DATA) cvsclient.ps $(psdir)/cvsclient.ps
  172.  
  173. tags:
  174. .PHONY: tags
  175.  
  176. TAGS:
  177. .PHONY: TAGS
  178.  
  179. ls:
  180.     @echo $(DISTFILES)
  181. .PHONY: ls
  182.  
  183. clean:
  184.     rm -f *.o core
  185.     rm -f cvs.cp cvs.fn cvs.ky cvs.pg cvs.tp cvs.vr
  186.     rm -f cvs.cps cvs.fns cvs.kys cvs.pgs cvs.tps cvs.vrs
  187.     rm -f cvs.aux cvs.dvi cvs.log cvs.toc
  188.     rm -f cvsclient.cp cvsclient.fn cvsclient.ky cvsclient.pg
  189.     rm -f cvsclient.tp cvsclient.vr cvsclient.cps cvsclient.fns
  190.     rm -f cvsclient.kys cvsclient.pgs cvsclient.tps cvsclient.vrs
  191.     rm -f cvsclient.aux cvsclient.dvi cvsclient.log cvsclient.toc
  192.  
  193. .PHONY: clean
  194.  
  195. distclean: clean
  196.     rm -f Makefile
  197. .PHONY: distclean
  198.  
  199. realclean: distclean
  200.     rm -f cvs.info* cvs.guide cvs.ps cvs-paper.ps cvsclient.info* \
  201.         cvsclient.guide cvsclient.ps
  202. .PHONY: realclean
  203.  
  204. dist-dir: $(DISTFILES) $(OBJDIR_DISTFILES)
  205.     mkdir ${DISTDIR}
  206.     for i in ${DISTFILES}; do \
  207.       ln $(srcdir)/$${i} ${DISTDIR}; \
  208.     done
  209.     ln ${OBJDIR_DISTFILES} ${DISTDIR}
  210.     if [ -f cvs.info-1 ]; \
  211.       then ln -f cvs.info-* ${DISTDIR}; \
  212.       else : Pacify Ultrix sh; \
  213.     fi
  214.     if [ -f cvsclient.info-1 ]; \
  215.       then ln -f cvsclient.info-* ${DISTDIR}; \
  216.       else : Pacify Ultrix sh; \
  217.     fi
  218.     if [ -f cvs.guide ]; \
  219.       then ln -f cvs.guide ${DISTDIR}; \
  220.       else : Pacify Ultrix sh; \
  221.     fi
  222.     if [ -f cvsclient.guide ]; \
  223.       then ln -f cvsclient.guide ${DISTDIR}; \
  224.       else : Pacify Ultrix sh; \
  225.     fi
  226. .PHONY: dist-dir
  227.  
  228. subdir = doc
  229. Makefile: ../config.status Makefile.in
  230.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  231.  
  232. #../config.status: ../configure
  233. #    cd .. ; $(SHELL) config.status --recheck
  234.  
  235. #../configure: ../configure.in
  236. #    cd $(top_srcdir) ; autoconf
  237.