home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / pcl / docs.lha / latexinfo / elisp / Makefile < prev    next >
Encoding:
Makefile  |  1991-11-26  |  1.1 KB  |  46 lines

  1. # This file depends on the environment variable LATEXINFO
  2. # being already set.
  3.  
  4. # The name of your GNU Emacs
  5. EMACS=xemacs
  6.  
  7. # The name of your directory to install the compiled elisp files
  8. # We have an environment variable set which points to the Gnu binary direct.
  9. ELISPDIR=${GNUSHAREDIR}/emacs/latexinfo
  10.  
  11. # Where to install the info files
  12. INFODIR=${GNUINFODIR}
  13.  
  14. INSTALL = install -c -m 755
  15. INSTALLDATA = install -c -m 644
  16.  
  17. ########## End of user configurable options   ################
  18. # The name of the file
  19. MANUAL=latexinfo2
  20.  
  21. PROGRAM=latexinfo2
  22. ELISP=${LATEXINFO}/elisp
  23. DOC=${LATEXINFO}/manual
  24.  
  25. ##########  The above are overridden by the contents of ../config.status
  26.  
  27. include ../config.status
  28.  
  29. all:    $(DOC)/$(MANUAL).info
  30.  
  31. $(DOC)/$(MANUAL).info:    $(DOC)/$(MANUAL).tex $(ELISP)/$(PROGRAM).el
  32.     rm -f make.el
  33.     sed -e     "s+MANUAL+$(DOC)/$(MANUAL)+" \
  34.         -e    "s+LATEXINFO+$(LATEXINFO)+" \
  35.         -e    "s+ELISP+$(ELISP)+" \
  36.         -e    "s+PROGRAM+$(ELISP)/$(PROGRAM)+" makeinfo.el > make.el
  37.     $(EMACS) -batch -q -l $(ELISP)/make.el
  38.  
  39. install::    all
  40.     -mkdir $(ELISPDIR)
  41.     $(INSTALLDATA) *.elc $(ELISPDIR)
  42.  
  43. clean:    
  44.     rm -f *.elc *~ #~
  45.  
  46.