comparison lisp/Makefile.in @ 93656:0f802f448fc9

(cal-autoloads): New target. (compile, compile-always, recompile): Depend on it. ($(lisp)/calendar/cal-loaddefs.el) ($(lisp)/calendar/diary-loaddefs.el) ($(lisp)/calendar/hol-loaddefs.el): Depend on calendar/*.el.
author Andreas Schwab <schwab@suse.de>
date Fri, 04 Apr 2008 11:02:18 +0000
parents 4f4df8fa443f
children 147f4f022b77
comparison
equal deleted inserted replaced
93655:83b8a1d075f3 93656:0f802f448fc9
160 # subdirectories, to make sure require's and load's in the files being 160 # subdirectories, to make sure require's and load's in the files being
161 # compiled find the right files. 161 # compiled find the right files.
162 162
163 # `|| true' below prevents old Bash versions from getting confused 163 # `|| true' below prevents old Bash versions from getting confused
164 # by an error. 164 # by an error.
165 compile: $(lisp)/subdirs.el mh-autoloads doit 165 compile: $(lisp)/subdirs.el mh-autoloads cal-autoloads doit
166 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ 166 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \
167 wd=$(lisp); $(setwins); \ 167 wd=$(lisp); $(setwins); \
168 els=`echo $$wins | tr ' \011' '\012\012' | \ 168 els=`echo $$wins | tr ' \011' '\012\012' | \
169 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ 169 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \
170 for el in $(COMPILE_FIRST) $$els; do \ 170 for el in $(COMPILE_FIRST) $$els; do \
177 177
178 # Compile all Lisp files. This is like `compile' but compiles files 178 # Compile all Lisp files. This is like `compile' but compiles files
179 # unconditionally. Some files don't actually get compiled because they 179 # unconditionally. Some files don't actually get compiled because they
180 # set the local variable no-byte-compile. 180 # set the local variable no-byte-compile.
181 181
182 compile-always: $(lisp)/subdirs.el mh-autoloads doit 182 compile-always: $(lisp)/subdirs.el mh-autoloads cal-autoloads doit
183 # `|| true' prevents old Bash versions from getting confused 183 # `|| true' prevents old Bash versions from getting confused
184 # by an error. 184 # by an error.
185 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \ 185 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \
186 wd=$(lisp); $(setwins); \ 186 wd=$(lisp); $(setwins); \
187 els=`echo $$wins | tr ' \011' '\012\012' | \ 187 els=`echo $$wins | tr ' \011' '\012\012' | \
212 compile-after-backup: backup-compiled-files compile-always 212 compile-after-backup: backup-compiled-files compile-always
213 213
214 # Recompile all Lisp files which are newer than their .elc files and compile 214 # Recompile all Lisp files which are newer than their .elc files and compile
215 # new ones. 215 # new ones.
216 216
217 recompile: doit mh-autoloads $(lisp)/progmodes/cc-mode.elc 217 recompile: doit mh-autoloads cal-autoloads $(lisp)/progmodes/cc-mode.elc
218 $(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp) 218 $(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
219 219
220 # CC Mode uses a compile time macro system which causes a compile time 220 # 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 221 # dependency in cc-mode.elc on the macros in cc-langs.el and the
222 # version string in cc-defs.el. 222 # version string in cc-defs.el.
248 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \ 248 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \
249 --eval "(setq generated-autoload-file \"$@\")" \ 249 --eval "(setq generated-autoload-file \"$@\")" \
250 --eval "(setq make-backup-files nil)" \ 250 --eval "(setq make-backup-files nil)" \
251 -f batch-update-autoloads $(lisp)/mh-e 251 -f batch-update-autoloads $(lisp)/mh-e
252 252
253 $(lisp)/calendar/cal-loaddefs.el: 253 cal-autoloads: $(lisp)/calendar/cal-loaddefs.el \
254 $(lisp)/calendar/diary-loaddefs.el \
255 $(lisp)/calendar/hol-loaddefs.el
256
257 $(lisp)/calendar/cal-loaddefs.el: $(lisp)/calendar/*.el
254 $(emacs) -l autoload \ 258 $(emacs) -l autoload \
255 --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \ 259 --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \
256 --eval "(setq generated-autoload-file \"$@\")" \ 260 --eval "(setq generated-autoload-file \"$@\")" \
257 --eval "(setq make-backup-files nil)" \ 261 --eval "(setq make-backup-files nil)" \
258 -f batch-update-autoloads $(lisp)/calendar 262 -f batch-update-autoloads $(lisp)/calendar
259 263
260 $(lisp)/calendar/diary-loaddefs.el: 264 $(lisp)/calendar/diary-loaddefs.el: $(lisp)/calendar/*.el
261 $(emacs) -l autoload \ 265 $(emacs) -l autoload \
262 --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \ 266 --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \
263 --eval "(setq generated-autoload-file \"$@\")" \ 267 --eval "(setq generated-autoload-file \"$@\")" \
264 --eval "(setq make-backup-files nil)" \ 268 --eval "(setq make-backup-files nil)" \
265 -f batch-update-autoloads $(lisp)/calendar 269 -f batch-update-autoloads $(lisp)/calendar
266 270
267 $(lisp)/calendar/hol-loaddefs.el: 271 $(lisp)/calendar/hol-loaddefs.el: $(lisp)/calendar/*.el
268 $(emacs) -l autoload \ 272 $(emacs) -l autoload \
269 --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \ 273 --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \
270 --eval "(setq generated-autoload-file \"$@\")" \ 274 --eval "(setq generated-autoload-file \"$@\")" \
271 --eval "(setq make-backup-files nil)" \ 275 --eval "(setq make-backup-files nil)" \
272 -f batch-update-autoloads $(lisp)/calendar 276 -f batch-update-autoloads $(lisp)/calendar