comparison lisp/Makefile.in @ 92846:4f4df8fa443f

(LOADDEFS): New variable. (AUTOGENEL): Use $LOADDEFS. $(lisp)/loaddefs.el: Remove this target. (autoloads): Remove $(lisp)/loaddefs.el dependency; add $LOADDEFS. (MH_E_SRC): Remove variable. $(lisp)/mh-e/mh-loaddefs.el: Remove $MH_E_SRC dependency. Simplify file header. Use $@ for generated-autoload-file. $(lisp)/calendar/cal-loaddefs.el, $(lisp)/calendar/diary-loaddefs.el: $(lisp)/calendar/hol-loaddefs.el: New targets.
author Glenn Morris <rgm@gnu.org>
date Thu, 13 Mar 2008 06:03:21 +0000
parents ecb1c0e60608
children 0f802f448fc9
comparison
equal deleted inserted replaced
92845:36720006379f 92846:4f4df8fa443f
1 # Maintenance productions for the Lisp directory 1 # Maintenance productions for the Lisp directory
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3 # 2006, 2007, 2008 Free Software Foundation, Inc. 3 # 2008 Free Software Foundation, Inc.
4 4
5 # This file is part of GNU Emacs. 5 # This file is part of GNU Emacs.
6 6
7 # GNU Emacs is free software; you can redistribute it and/or modify 7 # GNU Emacs is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by 8 # it under the terms of the GNU General Public License as published by
44 SOURCES = *.el COPYING Makefile 44 SOURCES = *.el COPYING Makefile
45 lisptagsfiles1 = $(lisp)/[a-zA-Z]*.el 45 lisptagsfiles1 = $(lisp)/[a-zA-Z]*.el
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.
50 LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
51 $(lisp)/calendar/diary-loaddefs.el $(lisp)/calendar/hol-loaddefs.el
52
49 # Elisp files auto-generated. 53 # Elisp files auto-generated.
50 AUTOGENEL = loaddefs.el \ 54 AUTOGENEL = loaddefs.el \
55 $(LOADDEFS) \
51 cus-load.el \ 56 cus-load.el \
52 finder-inf.el \ 57 finder-inf.el \
53 subdirs.el \ 58 subdirs.el \
54 eshell/esh-groups.el \ 59 eshell/esh-groups.el \
55 mh-e/mh-loaddefs.el 60 mh-e/mh-loaddefs.el
105 finder-data: $(lisp)/subdirs.el autoloads doit 110 finder-data: $(lisp)/subdirs.el autoloads doit
106 wd=$(lisp); $(setwins_almost); \ 111 wd=$(lisp); $(setwins_almost); \
107 echo Directories: $$wins; \ 112 echo Directories: $$wins; \
108 $(emacs) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins 113 $(emacs) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins
109 114
110 $(lisp)/loaddefs.el: 115 autoloads: $(lisp)/subdirs.el $(LOADDEFS) doit
111 echo ";;; loaddefs.el --- automatically extracted autoloads" >> $@
112 echo ";;" >> $@; echo ";;; Code:" >> $@
113 echo " " >> $@
114 echo ";; Local Variables:" >> $@
115 echo ";; version-control: never" >> $@
116 echo ";; no-byte-compile: t" >> $@
117 echo ";; no-update-autoloads: t" >> $@
118 echo ";; End:" >> $@
119 echo ";;; loaddefs.el ends here" >> $@
120 autoloads: $(lisp)/subdirs.el $(lisp)/loaddefs.el doit
121 wd=$(lisp); $(setwins_almost); \ 116 wd=$(lisp); $(setwins_almost); \
122 echo Directories: $$wins; \ 117 echo Directories: $$wins; \
123 $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins 118 $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins
124 119
125 $(lisp)/subdirs.el: 120 $(lisp)/subdirs.el:
230 $(lisp)/progmodes/cc-langs.el \ 225 $(lisp)/progmodes/cc-langs.el \
231 $(lisp)/progmodes/cc-defs.el 226 $(lisp)/progmodes/cc-defs.el
232 $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el 227 $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el
233 228
234 # Update MH-E internal autoloads. These are not to be confused with 229 # Update MH-E internal autoloads. These are not to be confused with
235 # the autoloads for the MH-E entry points, which are already in 230 # the autoloads for the MH-E entry points, which are already in loaddefs.el.
236 # loaddefs.el.
237 MH_E_SRC = $(lisp)/mh-e/mh-acros.el $(lisp)/mh-e/mh-alias.el \
238 $(lisp)/mh-e/mh-buffers.el $(lisp)/mh-e/mh-compat.el \
239 $(lisp)/mh-e/mh-comp.el $(lisp)/mh-e/mh-e.el \
240 $(lisp)/mh-e/mh-folder.el $(lisp)/mh-e/mh-funcs.el \
241 $(lisp)/mh-e/mh-gnus.el $(lisp)/mh-e/mh-identity.el \
242 $(lisp)/mh-e/mh-inc.el $(lisp)/mh-e/mh-junk.el \
243 $(lisp)/mh-e/mh-letter.el $(lisp)/mh-e/mh-limit.el \
244 $(lisp)/mh-e/mh-mime.el $(lisp)/mh-e/mh-print.el \
245 $(lisp)/mh-e/mh-scan.el $(lisp)/mh-e/mh-search.el \
246 $(lisp)/mh-e/mh-seq.el $(lisp)/mh-e/mh-show.el \
247 $(lisp)/mh-e/mh-speed.el $(lisp)/mh-e/mh-thread.el \
248 $(lisp)/mh-e/mh-tool-bar.el $(lisp)/mh-e/mh-utils.el \
249 $(lisp)/mh-e/mh-xface.el
250
251 mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el 231 mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el
252 $(lisp)/mh-e/mh-loaddefs.el: $(lisp)/subdirs.el $(MH_E_SRC) 232 $(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).
253 echo ";;; mh-loaddefs.el --- automatically extracted autoloads" > $@ 236 echo ";;; mh-loaddefs.el --- automatically extracted autoloads" > $@
254 echo "" >> $@ 237 echo ";;" >> $@
255 echo ";; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc." >> $@
256 echo ";; Author: Bill Wohler <wohler@newt.com>" >> $@
257 echo ";; Keywords: mail" >> $@
258 echo ";;; Commentary:" >> $@
259 echo ";;; Change Log:" >> $@
260 echo ";;; Code:" >> $@ 238 echo ";;; Code:" >> $@
261 echo " " >> $@ 239 echo " " >> $@
262 echo "(provide 'mh-loaddefs)" >> $@ 240 echo "(provide 'mh-loaddefs)" >> $@
263 echo ";; Local Variables:" >> $@ 241 echo ";; Local Variables:" >> $@
264 echo ";; version-control: never" >> $@ 242 echo ";; version-control: never" >> $@
265 echo ";; no-byte-compile: t" >> $@ 243 echo ";; no-byte-compile: t" >> $@
266 echo ";; no-update-autoloads: t" >> $@ 244 echo ";; no-update-autoloads: t" >> $@
267 echo ";; End:" >> $@ 245 echo ";; End:" >> $@
268 echo ";;; mh-loaddefs.el ends here" >> $@ 246 echo ";;; mh-loaddefs.el ends here" >> $@
269 $(emacs) \ 247 $(emacs) -l autoload \
270 -l autoload \
271 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ 248 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \
272 --eval "(setq generated-autoload-file \"$(lisp)/mh-e/mh-loaddefs.el\")" \ 249 --eval "(setq generated-autoload-file \"$@\")" \
273 --eval "(setq make-backup-files nil)" \ 250 --eval "(setq make-backup-files nil)" \
274 -f batch-update-autoloads $(lisp)/mh-e 251 -f batch-update-autoloads $(lisp)/mh-e
252
253 $(lisp)/calendar/cal-loaddefs.el:
254 $(emacs) -l autoload \
255 --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \
256 --eval "(setq generated-autoload-file \"$@\")" \
257 --eval "(setq make-backup-files nil)" \
258 -f batch-update-autoloads $(lisp)/calendar
259
260 $(lisp)/calendar/diary-loaddefs.el:
261 $(emacs) -l autoload \
262 --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \
263 --eval "(setq generated-autoload-file \"$@\")" \
264 --eval "(setq make-backup-files nil)" \
265 -f batch-update-autoloads $(lisp)/calendar
266
267 $(lisp)/calendar/hol-loaddefs.el:
268 $(emacs) -l autoload \
269 --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \
270 --eval "(setq generated-autoload-file \"$@\")" \
271 --eval "(setq make-backup-files nil)" \
272 -f batch-update-autoloads $(lisp)/calendar
275 273
276 # Prepare a bootstrap in the lisp subdirectory. 274 # Prepare a bootstrap in the lisp subdirectory.
277 # 275 #
278 # Build loaddefs.el to make sure it's up-to-date. If it's not, that 276 # Build loaddefs.el to make sure it's up-to-date. If it's not, that
279 # might lead to errors during the bootstrap because something fails to 277 # might lead to errors during the bootstrap because something fails to