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 / tools / pcl-cvs / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  7KB  |  239 lines

  1. # Makefile for pcl-cvs, an Emacs interface to CVS.
  2. # NOTE: pcl-cvs requires Elib to run.  See ../../contrib/elib/.
  3.  
  4. #
  5. #ident    "@(#)original: dist-makefile,v 1.19 1993/05/31 22:43:45 ceder Exp "
  6. #
  7. #ident    "@(#)elisp/pcl-cvs:$Name:  $:$Id: Makefile.in,v 1.3 1996/04/15 06:33:20 kfogel Exp $"
  8. #
  9. # Makefile for pcl-cvs release 1.05-CVS-$Name:  $.
  10. # Copyright (C) 1992, 1993  Per Cederqvist
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25.  
  26. SHELL = /bin/sh
  27.  
  28. #### Start of system configuration section. ####
  29.  
  30. srcdir = @srcdir@
  31. top_srcdir = @top_srcdir@
  32. VPATH = @srcdir@
  33.  
  34. prefix = @prefix@
  35. exec_prefix = @exec_prefix@
  36.  
  37. # Where to put the system-wide supplementary files
  38. libdir = $(prefix)/lib
  39.  
  40. # Where to put the Info files
  41. infodir = $(prefix)/info
  42.  
  43. # Where to put the manual pages.
  44. mandir = $(prefix)/man
  45.  
  46. # Used to batch-byte-compile files.
  47. EMACS = emacs
  48. # compile with noninteractive environment
  49. BATCHFLAGS = -batch
  50.  
  51. # This is the directory in which the ELCFILES will be installed.
  52. lispdir = $(libdir)/emacs/site-lisp
  53.  
  54. #### End of system configuration section. ####
  55.  
  56. srcdir = @srcdir@
  57. top_srcdir = @top_srcdir@
  58. VPATH = @srcdir@
  59.  
  60. # Just in case...
  61. SHELL = /bin/sh
  62. @SET_MAKE@
  63.  
  64. DISTFILES = \
  65.     .cvsignore ChangeLog INSTALL Makefile.in NEWS README \
  66.     ${ELFILES} \
  67.     pcl-cvs.texinfo texinfo.tex
  68.  
  69.  
  70. # OBJDIR_DISTFILES used to include the byte-compiled elisp files, but
  71. # this seems wrong because the person building the dist cannot have
  72. # made the appropriate site-specific modifications to pcl-cvs.el.
  73. # Therefore, I've taken the .elc files out of OBJDIR_DISTFILES for
  74. # now, pending the Right Solution to this problem (which probably
  75. # involves moving the site-specific modification section of pcl-cvs.el
  76. # to a separate file and having autoconf generate as much of the file
  77. # as possible).     -Karl
  78. #
  79. # OBJDIR_DISTFILES = $(ELCFILES) pcl-cvs.aux pcl-cvs.ps
  80. OBJDIR_DISTFILES = pcl-cvs.aux pcl-cvs.ps
  81.  
  82.  
  83. # files that contain key macro definitions.  almost everything
  84. # depends on them because the byte-compiler inlines macro
  85. # expansions.  everything also depends on the byte compiler
  86. # options file since this might do odd things like turn off
  87. # certain compiler optimizations.
  88. CORE = 
  89.  
  90. ELFILES = pcl-cvs.el pcl-cvs-lucid.el pcl-cvs-startup.el
  91. ELCFILES = pcl-cvs.elc pcl-cvs-lucid.elc
  92. INFOFILES = pcl-cvs.info*
  93. TEXTMPS = pcl-cvs.aux pcl-cvs.log pcl-cvs.toc pcl-cvs.dvi pcl-cvs.cp \
  94.     pcl-cvs.fn pcl-cvs.vr pcl-cvs.tp pcl-cvs.ky pcl-cvs.pg \
  95.     pcl-cvs.cps pcl-cvs.fns pcl-cvs.kys pcl-cvs.pgs pcl-cvs.tps \
  96.     pcl-cvs.vrs
  97.  
  98. # Use cp if you don't have install.
  99. INSTALL = @INSTALL@
  100. INSTALL_DATA = @INSTALL_DATA@
  101.  
  102. MAKEINFO = makeinfo
  103.  
  104. SET_TEXINPUTS = TEXINPUTS=.:$(srcdir):$$TEXINPUTS
  105.  
  106. # Don Knuth's TeX formatter
  107. TEX = tex
  108.  
  109. # auxiliary program for sorting Texinfo indices
  110. TEXINDEX = texindex
  111.  
  112. DVIPS = dvips
  113. DVIPSFLAGS = 
  114.  
  115. # CYGNUS LOCAL: install does not depend on info
  116. all: $(ELCFILES) # info
  117. .PHONY:    all
  118.  
  119. .SUFFIXES:    .el .elc
  120. # We copy the .el file to the build dir--is there a cleaner way to get
  121. # emacs to compile the .el file from srcdir and put the .elc in the build dir?
  122. # (that is also why we have separate rules for pcl-cvs.elc and 
  123. # pcl-cvs-lucid.elc rather than just using a .el.elc rule).
  124. pcl-cvs.elc: pcl-cvs.el
  125.     @echo "You can probably ignore free variable and unknown function warnings..."
  126.     if test -f pcl-cvs.el; then \
  127.       : OK, we are building in srcdir ; \
  128.     else \
  129.       ln $(srcdir)/pcl-cvs.el . ; \
  130.     fi
  131.     $(EMACS) $(BATCHFLAGS) -f batch-byte-compile pcl-cvs.el
  132. pcl-cvs-lucid.elc: pcl-cvs-lucid.el
  133.     @echo "You can probably ignore free variable and unknown function warnings..."
  134.     if test -f pcl-cvs-lucid.el; then \
  135.       : OK, we are building in srcdir ; \
  136.     else \
  137.       ln $(srcdir)/pcl-cvs-lucid.el . ; \
  138.     fi
  139.     $(EMACS) $(BATCHFLAGS) -f batch-byte-compile pcl-cvs-lucid.el
  140.  
  141. check installcheck:
  142.     @echo "$@ not supported in this makefile..."
  143. .PHONY:    check installcheck
  144.  
  145. # CYGNUS LOCAL: install does not depend on install-info
  146. install: install-elc # install-info install-el
  147.  
  148. install-el: $(ELFILES)
  149.     for i in $(ELFILES) ; do \
  150.       $(INSTALL_DATA) $$i $(lispdir)/$$i ; \
  151.     done
  152.  
  153. install-elc: $(ELCFILES)
  154.     for i in $(ELCFILES) ; do \
  155.       $(INSTALL_DATA) $$i $(lispdir)/$$i ; \
  156.     done
  157.  
  158. install-info: info
  159.     test -f pcl-cvs.info || cd $(srcdir); \
  160.     for i in *.info* ; do \
  161.       $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  162.     done
  163.  
  164. .PHONY:    install install-el install-elc install-info
  165.  
  166. # mkinstalldirs isn't supported for CVS yet....
  167. installdirs: $(top_srcdir)/mkinstalldirs
  168.     $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir) $(infodir)
  169. .PHONY:    installdirs
  170.  
  171. uninstall:
  172.     @echo "$@ not yet supported in this makefile..."
  173. .PHONY:    uninstall
  174.  
  175. info: pcl-cvs.info
  176. .PHONY:    info
  177.  
  178. pcl-cvs.info: pcl-cvs.texinfo
  179.     $(MAKEINFO) ${srcdir}/pcl-cvs.texinfo -o pcl-cvs.info
  180.  
  181. dvi: pcl-cvs.dvi
  182. .PHONY:    dvi
  183.  
  184. # this mess seems to be necessary to make the index right...
  185. pcl-cvs.dvi pcl-cvs.aux: pcl-cvs.texinfo
  186.     $(SET_TEXINPUTS) $(TEX) $(srcdir)/pcl-cvs.texinfo
  187.     $(SET_TEXINPUTS) $(TEX) $(srcdir)/pcl-cvs.texinfo
  188.     -$(TEXINDEX) pcl-cvs.cp pcl-cvs.fn pcl-cvs.vr pcl-cvs.tp pcl-cvs.ky \
  189.         pcl-cvs.pg
  190.     $(SET_TEXINPUTS) $(TEX) $(srcdir)/pcl-cvs.texinfo
  191.  
  192. pcl-cvs.ps: pcl-cvs.dvi
  193.     $(DVIPS) $(DVIPSFLAGS) pcl-cvs.dvi -o pcl-cvs.ps
  194.  
  195. mostlyclean clean:
  196.     rm -f *~ core $(ELCFILES) $(INFOFILES) $(TEXTMPS)
  197. .PHONY: mostlyclean clean
  198.  
  199. distclean: clean
  200.     rm -f Makefile tags TAGS
  201. .PHONY: distclean
  202.  
  203. realclean maintainer-clean: distclean
  204.     rm -f pcl-cvs.info* pcl-cvs.ps
  205. .PHONY: realclean maintainer-clean
  206.  
  207. # you can't use ctags for lisp...
  208. tags TAGS:
  209.     etags *.el
  210. .PHONY: tags
  211.  
  212. ls:
  213.     @echo $(DISTFILES)
  214. .PHONY: ls
  215.  
  216. dist-dir: ${OBJDIR_DISTFILES} ${DISTFILES} pcl-cvs.info
  217.     mkdir ${DISTDIR}
  218.     for i in ${DISTFILES}; do \
  219.       ln $(srcdir)/$${i} ${DISTDIR}; \
  220.     done
  221.     ln ${OBJDIR_DISTFILES} ${DISTDIR}
  222.     if [ -f pcl-cvs.info-1 ]; \
  223.       then ln -f pcl-cvs.info-* ${DISTDIR}; \
  224.       else : Pacify Ultrix sh; \
  225.     fi
  226. .PHONY: dist-dir
  227.  
  228. subdir = tools/pcl-cvs
  229. Makefile: ../../config.status Makefile.in
  230.     cd ../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  231.  
  232. # CYGNUS LOCAL: don't depend on auto-re-config
  233. #../config.status: ../configure
  234. #    cd .. ; $(SHELL) config.status --recheck
  235.  
  236. # CYGNUS LOCAL: don't depend on auto-re-config
  237. #../configure: ../configure.in
  238. #    cd $(top_srcdir) ; autoconf
  239.