comparison lisp/Makefile.in @ 93711:147f4f022b77

(LOADDEFS): Add mh-loaddefs.el. (AUTOGENEL): mh-loaddefs is in $LOADDEFS now. (compile, compile-always, recompile): Use $LOADDEFS. ($(lisp)/mh-e/mh-loaddefs.el): Simplify rule now that autoload-ensure-default-file provides a feature. (cal-autoloads): Remove.
author Glenn Morris <rgm@gnu.org>
date Sat, 05 Apr 2008 18:52:02 +0000
parents 0f802f448fc9
children c0fe31fb3833
comparison
equal deleted inserted replaced
93710:07af23654bc8 93711:147f4f022b77
46 lisptagsfiles2 = $(lisp)/[a-zA-Z]*/[a-zA-Z]*.el 46 lisptagsfiles2 = $(lisp)/[a-zA-Z]*/[a-zA-Z]*.el
47 ETAGS = ../lib-src/etags 47 ETAGS = ../lib-src/etags
48 48
49 # Automatically generated autoload files, apart from lisp/loaddefs.el. 49 # Automatically generated autoload files, apart from lisp/loaddefs.el.
50 LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \ 50 LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
51 $(lisp)/calendar/diary-loaddefs.el $(lisp)/calendar/hol-loaddefs.el 51 $(lisp)/calendar/diary-loaddefs.el \
52 $(lisp)/calendar/hol-loaddefs.el \
53 $(lisp)/mh-e/mh-loaddefs.el
52 54
53 # Elisp files auto-generated. 55 # Elisp files auto-generated.
54 AUTOGENEL = loaddefs.el \ 56 AUTOGENEL = loaddefs.el \
55 $(LOADDEFS) \ 57 $(LOADDEFS) \
56 cus-load.el \ 58 cus-load.el \
57 finder-inf.el \ 59 finder-inf.el \
58 subdirs.el \ 60 subdirs.el \
59 eshell/esh-groups.el \ 61 eshell/esh-groups.el \
60 mh-e/mh-loaddefs.el
61 62
62 # Files to compile before others during a bootstrap. This is done to 63 # Files to compile before others during a bootstrap. This is done to
63 # speed up the bootstrap process. The CC files are compiled first 64 # speed up the bootstrap process. The CC files are compiled first
64 # because CC mode tweaks the compilation process, and requiring 65 # because CC mode tweaks the compilation process, and requiring
65 # cc-mode when it is not compiled doesn't work during the 66 # cc-mode when it is not compiled doesn't work during the
160 # subdirectories, to make sure require's and load's in the files being 161 # subdirectories, to make sure require's and load's in the files being
161 # compiled find the right files. 162 # compiled find the right files.
162 163
163 # `|| true' below prevents old Bash versions from getting confused 164 # `|| true' below prevents old Bash versions from getting confused
164 # by an error. 165 # by an error.
165 compile: $(lisp)/subdirs.el mh-autoloads cal-autoloads doit 166 compile: $(lisp)/subdirs.el $(LOADDEFS) doit
166 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ 167 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \
167 wd=$(lisp); $(setwins); \ 168 wd=$(lisp); $(setwins); \
168 els=`echo $$wins | tr ' \011' '\012\012' | \ 169 els=`echo $$wins | tr ' \011' '\012\012' | \
169 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ 170 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \
170 for el in $(COMPILE_FIRST) $$els; do \ 171 for el in $(COMPILE_FIRST) $$els; do \
177 178
178 # Compile all Lisp files. This is like `compile' but compiles files 179 # Compile all Lisp files. This is like `compile' but compiles files
179 # unconditionally. Some files don't actually get compiled because they 180 # unconditionally. Some files don't actually get compiled because they
180 # set the local variable no-byte-compile. 181 # set the local variable no-byte-compile.
181 182
182 compile-always: $(lisp)/subdirs.el mh-autoloads cal-autoloads doit 183 compile-always: $(lisp)/subdirs.el $(LOADDEFS) doit
183 # `|| true' prevents old Bash versions from getting confused 184 # `|| true' prevents old Bash versions from getting confused
184 # by an error. 185 # by an error.
185 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ 186 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \
186 wd=$(lisp); $(setwins); \ 187 wd=$(lisp); $(setwins); \
187 els=`echo $$wins | tr ' \011' '\012\012' | \ 188 els=`echo $$wins | tr ' \011' '\012\012' | \
212 compile-after-backup: backup-compiled-files compile-always 213 compile-after-backup: backup-compiled-files compile-always
213 214
214 # Recompile all Lisp files which are newer than their .elc files and compile 215 # Recompile all Lisp files which are newer than their .elc files and compile
215 # new ones. 216 # new ones.
216 217
217 recompile: doit mh-autoloads cal-autoloads $(lisp)/progmodes/cc-mode.elc 218 recompile: doit $(LOADDEFS) $(lisp)/progmodes/cc-mode.elc
218 $(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp) 219 $(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
219 220
220 # CC Mode uses a compile time macro system which causes a compile time 221 # CC Mode uses a compile time macro system which causes a compile time
221 # dependency in cc-mode.elc on the macros in cc-langs.el and the 222 # dependency in cc-mode.elc on the macros in cc-langs.el and the
222 # version string in cc-defs.el. 223 # version string in cc-defs.el.
228 229
229 # Update MH-E internal autoloads. These are not to be confused with 230 # Update MH-E internal autoloads. These are not to be confused with
230 # the autoloads for the MH-E entry points, which are already in loaddefs.el. 231 # the autoloads for the MH-E entry points, which are already in loaddefs.el.
231 mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el 232 mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el
232 $(lisp)/mh-e/mh-loaddefs.el: $(lisp)/subdirs.el 233 $(lisp)/mh-e/mh-loaddefs.el: $(lisp)/subdirs.el
233 ## The only non-standard part of this is the provide.
234 ## All these echos can be removed if mh-e.el changes to use
235 ## (load "mh-loaddefs" nil 'quiet).
236 echo ";;; mh-loaddefs.el --- automatically extracted autoloads" > $@
237 echo ";;" >> $@
238 echo ";;; Code:" >> $@
239 echo " " >> $@
240 echo "(provide 'mh-loaddefs)" >> $@
241 echo ";; Local Variables:" >> $@
242 echo ";; version-control: never" >> $@
243 echo ";; no-byte-compile: t" >> $@
244 echo ";; no-update-autoloads: t" >> $@
245 echo ";; End:" >> $@
246 echo ";;; mh-loaddefs.el ends here" >> $@
247 $(emacs) -l autoload \ 234 $(emacs) -l autoload \
248 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ 235 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \
249 --eval "(setq generated-autoload-file \"$@\")" \ 236 --eval "(setq generated-autoload-file \"$@\")" \
250 --eval "(setq make-backup-files nil)" \ 237 --eval "(setq make-backup-files nil)" \
251 -f batch-update-autoloads $(lisp)/mh-e 238 -f batch-update-autoloads $(lisp)/mh-e
252
253 cal-autoloads: $(lisp)/calendar/cal-loaddefs.el \
254 $(lisp)/calendar/diary-loaddefs.el \
255 $(lisp)/calendar/hol-loaddefs.el
256 239
257 $(lisp)/calendar/cal-loaddefs.el: $(lisp)/calendar/*.el 240 $(lisp)/calendar/cal-loaddefs.el: $(lisp)/calendar/*.el
258 $(emacs) -l autoload \ 241 $(emacs) -l autoload \
259 --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \ 242 --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \
260 --eval "(setq generated-autoload-file \"$@\")" \ 243 --eval "(setq generated-autoload-file \"$@\")" \