comparison lisp/vm/Makefile @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 05472e90ae02
children c0c698873ce1
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
1 # what Emacs version to build VM for. 1 # what Emacs version to build VM for.
2 # Allowed values are 18 and 19. 2 # Allowed values are 18 and 19.
3 # Version 18 of Emacs is UNSUPPORTED.
4 # In fact all versions of Emacs prior to 19.34 for Emacs and
5 # prior to 19.14 for XEmacs are unsupported. For v20 XEmacs
6 # EMACS_VERSION should remain 19.
7 # 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.
8 EMACS_VERSION = 19 12 EMACS_VERSION = 19
9 13
10 # what emacs is called on your system 14 # what emacs is called on your system
11 EMACS = emacs 15 EMACS = ../../src/xemacs
12 16
13 # where the Info file should go 17 # where the Info file should go
14 INFODIR = /usr/local/lib/emacs/info 18 INFODIR = ../../info
15 19
16 # where the vm.elc, tapestry.elc, etc. files should go 20 # where the vm.elc, tapestry.elc, etc. files should go
17 LISPDIR = /usr/local/lib/emacs/site-lisp 21 #LISPDIR = /usr/local/lib/emacs/site-lisp
18 22
19 # where the toolbar pixmaps should go. 23 # where the toolbar pixmaps should go.
20 # vm-toolbar-pixmap-directory must point to the same place. 24 # vm-toolbar-pixmap-directory must point to the same place.
21 # vm-image-directory must point to the same place.
22 PIXMAPDIR = /usr/local/lib/emacs/etc/vm 25 PIXMAPDIR = /usr/local/lib/emacs/etc/vm
23 26
24 ############## no user servicable parts beyond this point ################### 27 ############## no user servicable parts beyond this point ###################
25 28
26 # no csh please 29 # no csh please
45 CORE = vm-message.el vm-misc.el vm-byteopts.el 48 CORE = vm-message.el vm-misc.el vm-byteopts.el
46 49
47 OBJECTS = \ 50 OBJECTS = \
48 vm-delete.elc vm-digest.elc vm-easymenu.elc vm-edit.elc vm-folder.elc \ 51 vm-delete.elc vm-digest.elc vm-easymenu.elc vm-edit.elc vm-folder.elc \
49 vm-license.elc vm-mark.elc vm-menu.elc vm-message.elc \ 52 vm-license.elc vm-mark.elc vm-menu.elc vm-message.elc \
50 vm-mime.elc vm-minibuf.elc vm-misc.elc vm-mouse.elc \ 53 vm-minibuf.elc vm-misc.elc vm-mouse.elc \
51 vm-motion.elc vm-page.elc vm-pop.elc vm-reply.elc \ 54 vm-motion.elc vm-page.elc vm-pop.elc vm-reply.elc \
52 vm-save.elc \ 55 vm-save.elc \
53 vm-search.elc vm-sort.elc vm-summary.elc vm-startup.elc vm-thread.elc \ 56 vm-search.elc vm-sort.elc vm-summary.elc vm-startup.elc vm-thread.elc \
54 vm-toolbar.elc vm-undo.elc \ 57 vm-toolbar.elc \
55 vm-user.elc vm-vars.elc vm-version.elc vm-virtual.elc vm-window.elc 58 vm-undo.elc vm-vars.elc vm-version.elc vm-virtual.elc vm-window.elc
56 59
57 SOURCES = \ 60 SOURCES = \
58 vm-delete.el vm-digest.el vm-easymenu.el vm-edit.el vm-folder.el \ 61 vm-delete.el vm-digest.el vm-easymenu.el vm-edit.el vm-folder.el \
59 vm-license.el vm-mark.el vm-menu.el vm-message.el \ 62 vm-license.el vm-mark.el vm-menu.el vm-message.el \
60 vm-mime.el vm-minibuf.el vm-misc.el vm-mouse.el \ 63 vm-minibuf.el vm-misc.el vm-mouse.el \
61 vm-motion.el vm-page.el vm-pop.el vm-reply.el vm-save.el \ 64 vm-motion.el vm-page.el vm-pop.el vm-reply.el vm-save.el \
62 vm-search.el vm-sort.el vm-startup.el vm-summary.el vm-thread.el \ 65 vm-search.el vm-sort.el vm-startup.el vm-summary.el vm-thread.el \
63 vm-toolbar.el vm-undo.el \ 66 vm-toolbar.el \
64 vm-user.el vm-vars.el vm-version.el vm-virtual.el vm-window.el 67 vm-undo.el vm-vars.el vm-version.el vm-virtual.el vm-window.el
65 68
66 vm: vm.elc 69 vm: vm.elc
67 70
68 vm.elc: autoload 71 vm.elc: .autoload
69 72
70 noautoload: $(OBJECTS) tapestry.elc 73 .noautoload: $(OBJECTS) tapestry.elc
71 @echo "building vm.elc (with all modules included)..." 74 @echo "building vm.elc (with all modules included)..."
72 @cat $(OBJECTS) tapestry.elc > vm.elc 75 @cat $(OBJECTS) tapestry.elc > vm.elc
73 76 # in case the -f flag doesn't exist (e.g. on HPUX)
74 autoload: vm-autoload.elc $(OBJECTS) tapestry.elc 77 -chmod +w .noautoload
78 touch -f .noautoload || touch .noautoload
79
80 .autoload: vm-autoload.elc $(OBJECTS) tapestry.elc
75 @echo "building vm.elc (with all modules set to autoload)..." 81 @echo "building vm.elc (with all modules set to autoload)..."
76 @echo "(require 'vm-startup)" > vm.elc 82 @echo "(require 'vm-startup)" > vm.elc
77 @echo "(require 'vm-vars)" >> vm.elc 83 @echo "(require 'vm-vars)" >> vm.elc
78 @echo "(require 'vm-version)" >> vm.elc 84 @echo "(require 'vm-version)" >> vm.elc
79 @echo "(require 'vm-autoload)" >> vm.elc 85 @echo "(require 'vm-autoload)" >> vm.elc
86 # in case the -f flag doesn't exist (e.g. on HPUX)
87 -chmod +w .autoload
88 touch -f .autoload || touch .autoload
80 89
81 all: vm.info vm 90 all: vm.info vm
82 91
83 debug: $(SOURCES) tapestry.el 92 debug: $(SOURCES) tapestry.el
84 @echo "building vm.elc (uncompiled, no autoloads)..." 93 @echo "building vm.elc (uncompiled, no autoloads)..."
85 @cat $(SOURCES) tapestry.el > vm.elc 94 @cat $(SOURCES) tapestry.el > vm.elc
86 95
87 install: all 96 #install: all
88 cp vm.info $(INFODIR)/vm 97 # cp vm.info $(INFODIR)/vm
89 cp *.elc $(LISPDIR) 98 # cp *.elc $(LISPDIR)
90 cp pixmaps/*.xpm $(PIXMAPDIR) 99 # cp pixmaps/*.xpm $(PIXMAPDIR)
91 100
92 clean: 101 clean:
93 rm -f vm-autoload.el vm-autoload.elc $(OBJECTS) tapestry.elc 102 rm -f vm-autoload.el vm-autoload.elc $(OBJECTS) tapestry.elc
94 103
95 vm.info: vm.texinfo 104 vm.info: vm.texinfo
96 @echo "making vm.info..." 105 @echo "making vm.info..."
97 @$(EMACS) $(BATCHFLAGS) -insert vm.texinfo -l texinfmt -f texinfo-format-buffer -f save-buffer 106 @$(EMACS) $(BATCHFLAGS) vm.texinfo -l texinfmt -f texinfo-format-buffer -f save-buffer
98 107
99 vm-autoload.elc: $(SOURCES) 108 vm-autoload.elc: $(SOURCES)
100 @echo scanning sources to build autoload definitions... 109 @echo scanning sources to build autoload definitions...
101 @echo "(provide 'vm-autoload)" > vm-autoload.el 110 @echo "(provide 'vm-autoload)" > vm-autoload.el
102 @$(EMACS) $(BATCHFLAGS) -l ./make-autoloads -f print-autoloads $(SOURCES) >> vm-autoload.el 111 @$(EMACS) $(BATCHFLAGS) -l ./make-autoloads -f print-autoloads $(SOURCES) >> vm-autoload.el
137 146
138 vm-minibuf.elc: vm-minibuf.el $(CORE) 147 vm-minibuf.elc: vm-minibuf.el $(CORE)
139 @echo compiling vm-minibuf.el... 148 @echo compiling vm-minibuf.el...
140 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-minibuf.el 149 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-minibuf.el
141 150
142 vm-mime.elc: vm-mime.el $(CORE)
143 @echo compiling vm-mime.el...
144 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-mime.el
145
146 vm-misc.elc: vm-misc.el $(CORE) 151 vm-misc.elc: vm-misc.el $(CORE)
147 @echo compiling vm-misc.el... 152 @echo compiling vm-misc.el...
148 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-misc.el 153 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-misc.el
149 154
150 vm-mouse.elc: vm-mouse.el $(CORE) 155 vm-mouse.elc: vm-mouse.el $(CORE)
204 209
205 vm-undo.elc: vm-undo.el $(CORE) 210 vm-undo.elc: vm-undo.el $(CORE)
206 @echo compiling vm-undo.el... 211 @echo compiling vm-undo.el...
207 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-undo.el 212 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-undo.el
208 213
209 vm-user.elc: vm-user.el $(CORE)
210 @echo compiling vm-user.el...
211 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-user.el
212
213 vm-vars.elc: vm-vars.el $(CORE) 214 vm-vars.elc: vm-vars.el $(CORE)
214 @echo compiling vm-vars.el... 215 @echo compiling vm-vars.el...
215 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-vars.el 216 @$(EMACS) $(BATCHFLAGS) $(PRELOADS) -f batch-byte-compile vm-vars.el
216 217
217 vm-version.elc: vm-version.el $(CORE) 218 vm-version.elc: vm-version.el $(CORE)