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 / vm / Makefile < prev    next >
Encoding:
Makefile  |  1995-08-04  |  7.7 KB  |  226 lines

  1. # what Emacs version to build VM for.
  2. # Allowed values are 18 and 19.
  3. #
  4. # Currently only vm-isearch-forward depends on this being
  5. # correct.  You can use the same VM .elc files under v18 and v19
  6. # Emacs if you don't care about vm-isearch-forward.
  7. #
  8. # Note that .elc files compiled with the v19 byte compiler won't
  9. # work under v18 Emacs, but v18 .elcs will work under v19.  So
  10. # point this at your v18 Emacs binary if you want compatible .elc
  11. # files.
  12. EMACS_VERSION = 19
  13.  
  14. # what emacs is called on your system
  15. EMACS = ../../src/xemacs
  16.  
  17. # where the Info file should go
  18. INFODIR = ../../info
  19.  
  20. # where the vm.elc, tapestry.elc, etc. files should go
  21. #LISPDIR = /usr/local/lib/emacs/site-lisp
  22.  
  23. # where the toolbar pixmaps should go.
  24. # vm-toolbar-pixmap-directory must point to the same place.
  25. PIXMAPDIR = /usr/local/lib/emacs/etc/vm
  26.  
  27. ############## no user servicable parts beyond this point ###################
  28.  
  29. # no csh please
  30. SHELL = /bin/sh
  31.  
  32. # byte compiler options
  33. BYTEOPTS = ./vm-byteopts.el
  34.  
  35. # have to preload the files that contain macro definitions or the
  36. # byte compiler will compile everything that references them
  37. # incorrectly.  also preload a file that sets byte compiler options.
  38. PRELOADS = -l $(BYTEOPTS) -l ./vm-message.el -l ./vm-misc.el -l ./vm-vars.el -l ./vm-version.el
  39.  
  40. # compile with noninteractive and relatively clean environment
  41. BATCHFLAGS = -batch -q -no-site-file
  42.  
  43. # files that contain key macro definitions.  almost everything
  44. # depends on them because the byte-compiler inlines macro
  45. # expansions.  everything also depends on the byte compiler
  46. # options file since this might do odd things like turn off
  47. # certain compiler optimizations.
  48. CORE = vm-message.el vm-misc.el vm-byteopts.el
  49.  
  50. OBJECTS = \
  51.     vm-delete.elc vm-digest.elc vm-easymenu.elc vm-edit.elc vm-folder.elc \
  52.     vm-license.elc vm-mark.elc vm-menu.elc vm-message.elc \
  53.     vm-minibuf.elc vm-misc.elc vm-mouse.elc \
  54.     vm-motion.elc vm-page.elc vm-pop.elc vm-reply.elc \
  55.     vm-save.elc \
  56.     vm-search.elc vm-sort.elc vm-summary.elc vm-startup.elc vm-thread.elc \
  57.     vm-toolbar.elc \
  58.     vm-undo.elc vm-vars.elc vm-version.elc vm-virtual.elc vm-window.elc
  59.  
  60. SOURCES = \
  61.     vm-delete.el vm-digest.el vm-easymenu.el vm-edit.el vm-folder.el \
  62.     vm-license.el vm-mark.el vm-menu.el vm-message.el \
  63.     vm-minibuf.el vm-misc.el vm-mouse.el \
  64.     vm-motion.el vm-page.el vm-pop.el vm-reply.el vm-save.el \
  65.     vm-search.el vm-sort.el vm-startup.el vm-summary.el vm-thread.el \
  66.     vm-toolbar.el \
  67.     vm-undo.el vm-vars.el vm-version.el vm-virtual.el vm-window.el
  68.  
  69. vm:    vm.elc
  70.  
  71. vm.elc:    .autoload
  72.  
  73. .noautoload:    $(OBJECTS) tapestry.elc
  74.     @echo "building vm.elc (with all modules included)..."
  75.     @cat $(OBJECTS) tapestry.elc > vm.elc
  76.     # in case the -f flag doesn't exist (e.g. on HPUX)
  77.     touch -f .noautoload || touch .noautoload
  78.  
  79. .autoload:    $(OBJECTS) tapestry.elc
  80.     @echo "building vm.elc (with all modules set to autoload)..."
  81.     @cat vm-startup.elc vm-vars.elc vm-version.elc > vm.elc
  82.     @$(EMACS) $(BATCHFLAGS) -l ./make-autoloads -f print-autoloads $(SOURCES) >> vm.elc
  83.     # in case the -f flag doesn't exist (e.g. on HPUX)
  84.     touch -f .autoload || touch .autoload
  85.  
  86. all:    vm.info vm
  87.  
  88. debug:    $(SOURCES) tapestry.el
  89.     @echo "building vm.elc (uncompiled, no autoloads)..."
  90.     @cat $(SOURCES) tapestry.el > vm.elc
  91.  
  92. #install:    all
  93. #    cp vm.info $(INFODIR)/vm
  94. #    cp *.elc $(LISPDIR)
  95. #    cp pixmaps/*.xpm $(PIXMAPDIR)
  96.  
  97. clean:
  98.     rm -f $(OBJECTS) tapestry.elc
  99.  
  100. vm.info:    vm.texinfo
  101.     @echo "making vm.info..."
  102.     @$(EMACS) $(BATCHFLAGS) vm.texinfo -l texinfmt -f texinfo-format-buffer -f save-buffer
  103.  
  104. vm-delete.elc:    vm-delete.el $(CORE)
  105.     @echo compiling vm-delete.el...
  106.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-delete.el
  107.  
  108. vm-digest.elc:    vm-digest.el $(CORE)
  109.     @echo compiling vm-digest.el...
  110.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-digest.el
  111.  
  112. vm-edit.elc:    vm-edit.el $(CORE)
  113.     @echo compiling vm-edit.el...
  114.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-edit.el
  115.  
  116. vm-folder.elc:    vm-folder.el $(CORE)
  117.     @echo compiling vm-folder.el...
  118.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-folder.el
  119.  
  120. vm-license.elc:    vm-license.el $(CORE)
  121.     @echo compiling vm-license.el...
  122.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-license.el
  123.  
  124. vm-mark.elc:    vm-mark.el $(CORE)
  125.     @echo compiling vm-mark.el...
  126.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-mark.el
  127.  
  128. vm-menu.elc:    vm-menu.el vm-easymenu.el $(CORE)
  129.     @echo compiling vm-menu.el...
  130.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -l ./vm-easymenu.el -f batch-byte-compile vm-menu.el
  131.  
  132. vm-message.elc:    vm-message.el $(CORE)
  133.     @echo compiling vm-message.el...
  134.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-message.el
  135.  
  136. vm-minibuf.elc:    vm-minibuf.el $(CORE)
  137.     @echo compiling vm-minibuf.el...
  138.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-minibuf.el
  139.  
  140. vm-misc.elc:    vm-misc.el $(CORE)
  141.     @echo compiling vm-misc.el...
  142.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-misc.el
  143.  
  144. vm-mouse.elc:    vm-mouse.el $(CORE)
  145.     @echo compiling vm-mouse.el...
  146.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-mouse.el
  147.  
  148. vm-motion.elc:    vm-motion.el $(CORE)
  149.     @echo compiling vm-motion.el...
  150.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-motion.el
  151.  
  152. vm-page.elc:    vm-page.el $(CORE)
  153.     @echo compiling vm-page.el...
  154.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-page.el
  155.  
  156. vm-pop.elc:    vm-pop.el $(CORE)
  157.     @echo compiling vm-pop.el...
  158.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-pop.el
  159.  
  160. vm-reply.elc:    vm-reply.el $(CORE)
  161.     @echo compiling vm-reply.el...
  162.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-reply.el
  163.  
  164. vm-save.elc:    vm-save.el $(CORE)
  165.     @echo compiling vm-save.el...
  166.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-save.el
  167.  
  168. vm-search.el:    Makefile vm-search$(EMACS_VERSION).el
  169.     @echo making vm-search.el...
  170.     @{ test -f vm-search.el && \
  171.       cmp -s vm-search.el vm-search$(EMACS_VERSION).el && \
  172.       touch vm-search.el ; } || \
  173.      { rm -f vm-search.el; cp vm-search$(EMACS_VERSION).el vm-search.el ; }
  174.  
  175. vm-search.elc:    vm-search.el $(CORE)
  176.     @echo compiling vm-search.el...
  177.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-search.el
  178.  
  179. vm-sort.elc:    vm-sort.el $(CORE)
  180.     @echo compiling vm-sort.el...
  181.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-sort.el
  182.  
  183. vm-startup.elc:    vm-startup.el $(CORE)
  184.     @echo compiling vm-startup.el...
  185.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-startup.el
  186.  
  187. vm-summary.elc:    vm-summary.el $(CORE)
  188.     @echo compiling vm-summary.el...
  189.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-summary.el
  190.  
  191. vm-thread.elc:    vm-thread.el $(CORE)
  192.     @echo compiling vm-thread.el...
  193.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-thread.el
  194.  
  195. vm-toolbar.elc:    vm-toolbar.el $(CORE)
  196.     @echo compiling vm-toolbar.el...
  197.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-toolbar.el
  198.  
  199. vm-undo.elc:    vm-undo.el $(CORE)
  200.     @echo compiling vm-undo.el...
  201.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-undo.el
  202.  
  203. vm-vars.elc:    vm-vars.el $(CORE)
  204.     @echo compiling vm-vars.el...
  205.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-vars.el
  206.  
  207. vm-version.elc:    vm-version.el $(CORE)
  208.     @echo compiling vm-version.el...
  209.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-version.el
  210.  
  211. vm-virtual.elc:    vm-virtual.el $(CORE)
  212.     @echo compiling vm-virtual.el...
  213.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-virtual.el
  214.  
  215. vm-window.elc:    vm-window.el $(CORE)
  216.     @echo compiling vm-window.el...
  217.     @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-window.el
  218.  
  219. tapestry.elc:    tapestry.el
  220.     @echo compiling tapestry.el...
  221.     @$(EMACS) $(BATCHFLAGS) -l $(BYTEOPTS) -f batch-byte-compile tapestry.el
  222.  
  223. vm-easymenu.elc:    vm-easymenu.el
  224.     @echo compiling vm-easymenu.el...
  225.     @$(EMACS) $(BATCHFLAGS) -l $(BYTEOPTS) -f batch-byte-compile vm-easymenu.el
  226.