home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / w3 / Makefile < prev    next >
Encoding:
Makefile  |  1995-08-31  |  4.4 KB  |  159 lines

  1. # what emacs is called on your system
  2. EMACS = emacs
  3.  
  4. # How to make a directory
  5. # need a -p if you want to make the parents!
  6. MKDIR = mkdir
  7.  
  8. # Various other stuff used
  9. RM    = rm -f
  10. CP    = cp
  11.  
  12. # where the Info file should go
  13. INFODIR = ../info
  14.  
  15. # where the w3 lisp files should go
  16. LISPDIR = $$HOME/lisp
  17.  
  18. # Change this to be where your .emacs file is stored
  19. DOTEMACS      = $$HOME/.emacs
  20.  
  21. # Change this to be how to convert texinfo files into info files
  22. # examples:
  23. #    $(EMACS) -batch -q -f batch-texinfo-format
  24. #    makeinfo
  25. MAKEINFO      = makeinfo
  26.  
  27. ############## no user servicable parts beyond this point ###################
  28. # Have to preload a few things to get a nice clean compile
  29.  
  30. DEPS = -l ./docomp.el -l ./w3-vars.el -l ./url.el
  31.  
  32. # compile with noninteractive and relatively clean environment
  33. BATCHFLAGS = -batch -q -no-site-file
  34.  
  35. # files that contain variables and macros that everything else depends on
  36. CORE = docomp.el
  37.  
  38. OBJECTS = \
  39.     w3.elc mm.elc url.elc w3-beta.elc w3-draw.elc w3-e19.elc    \
  40.     w3-emacs.elc w3-epoch.elc w3-mac.elc w3-mule.elc w3-next.elc     \
  41.     w3-parse.elc w3-print.elc w3-srch.elc w3-vars.elc        \
  42.     w3-xemac.elc md5.elc w3-style.elc w3-about.elc base64.elc    \
  43.     ssl.elc w3-wemac.elc urlauth.elc w3-hot.elc
  44.  
  45. SOURCES = \
  46.     w3.el mm.el url.el w3-beta.el w3-draw.el w3-e19.el w3-emacs.el    \
  47.     w3-epoch.el w3-mac.el w3-mule.el w3-next.el w3-parse.el        \
  48.     w3-print.el w3-srch.el w3-sysdp.el w3-vars.el            \
  49.     w3-xemac.el md5.el w3-style.el w3-about.el base64.el ssl.el    \
  50.     w3-wemac.el urlauth.el w3-hot.el
  51.  
  52. DISTFILES     = Makefile ChangeLog $(SOURCES) w3.txi docomp.el        \
  53.         W3.ad clean-cache
  54.  
  55. w3:    docomp.el $(OBJECTS)
  56.     @echo Build of w3 complete...
  57.  
  58. all:    w3.info w3 emacs
  59.  
  60. install: all
  61.     @echo Installing in $(LISPDIR)
  62.     if [ ! -d $(LISPDIR) ] ; then $(MKDIR) $(LISPDIR) ; fi
  63.     (cd $(LISPDIR) ; $(RM) -f $(SOURCES) $(OBJECTS) w3-sysdp.elc)
  64.     $(CP) $(SOURCES) $(OBJECTS) $(LISPDIR)
  65.     if [ ! -d $(INFODIR) ] ; then $(MKDIR) $(INFODIR) ; fi
  66.     (cd $(INFODIR) ; $(RM) -f w3.info*)
  67.     $(CP) w3.info* $(INFODIR)
  68.  
  69. emacs:    
  70.     @echo Adding w3 setup to $(DOTEMACS)
  71.     $(EMACS) -batch -q -l docomp.el -f hack-dot-emacs $(DOTEMACS) \
  72.          $(LISPDIR)
  73.  
  74. clean:
  75.     $(RM) $(OBJECTS)
  76.  
  77. w3.info:    w3.txi
  78.     @$(MAKEINFO) w3.txi
  79.  
  80. w3.dvi:        w3.txi
  81.     tex w3.txi
  82.     texindex w3.cp  w3.fn  w3.ky  w3.pg  w3.tp  w3.vr
  83.     tex w3.txi
  84.     $(RM)     w3.cp  w3.fn  w3.ky  w3.pg  w3.tp  w3.vr     \
  85.         w3.cps w3.fns w3.kys w3.pgs w3.tps w3.vrs    \
  86.         w3.log w3.toc w3.aux
  87.  
  88. w3-emacs.elc:    w3-emacs.el
  89.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-emacs.el
  90.  
  91. w3-mac.elc:    w3-mac.el
  92.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-mac.el
  93.  
  94. w3-e19.elc:    w3-e19.el
  95.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-e19.el
  96.  
  97. w3-epoch.elc:    w3-epoch.el
  98.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-epoch.el
  99.  
  100. w3-next.elc:    w3-next.el
  101.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-next.el
  102.  
  103. w3-mule.elc:    w3-mule.el
  104.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-mule.el
  105.  
  106. w3-vars.elc:    w3-vars.el
  107.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-vars.el
  108.  
  109. w3-srch.elc: w3-srch.el
  110.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-srch.el
  111.  
  112. mm.elc: mm.el
  113.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile mm.el
  114.  
  115. url.elc: url.el
  116.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile url.el
  117.  
  118. w3-xemac.elc: w3-xemac.el w3-vars.el
  119.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-xemac.el
  120.  
  121. w3-parse.elc: w3-parse.el w3-vars.el
  122.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-parse.el
  123.  
  124. w3-draw.elc: w3-draw.el w3-vars.elc
  125.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-draw.el
  126.  
  127. w3-beta.elc: w3-beta.el
  128.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-beta.el
  129.  
  130. w3-print.elc: w3-print.el
  131.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-print.el
  132.  
  133. w3.elc: w3.el
  134.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3.el
  135.  
  136. w3-style.elc: w3-style.el
  137.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-style.el
  138.  
  139. md5.elc: md5.el
  140.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile md5.el
  141.  
  142. w3-about.elc: w3-about.el
  143.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-about.el
  144.  
  145. base64.elc: base64.el
  146.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile base64.el
  147.  
  148. ssl.elc: ssl.el
  149.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile ssl.el
  150.  
  151. w3-wemac.elc: w3-wemac.el
  152.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-wemac.el
  153.  
  154. urlauth.elc: urlauth.el
  155.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile urlauth.el
  156.  
  157. w3-hot.elc: w3-hot.el
  158.     $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile w3-hot.el
  159.