comparison lisp/Makefile.in @ 94900:1be259966433

(bootstrap-prepare): Don't chmod files. (autoloads): Do it here instead, where it's actually needed.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 13 May 2008 18:35:13 +0000
parents 68fcf8ef4d27
children cb5e62e5a363
comparison
equal deleted inserted replaced
94899:29fb4d52c079 94900:1be259966433
115 finder-data: $(emacs-deps) autoloads doit 115 finder-data: $(emacs-deps) autoloads doit
116 wd=$(lisp); $(setwins_almost); \ 116 wd=$(lisp); $(setwins_almost); \
117 echo Directories: $$wins; \ 117 echo Directories: $$wins; \
118 $(emacs) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins 118 $(emacs) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins
119 119
120 # The chmod +w is to handle env var CVSREAD=1. Files named
121 # are identified by being the value of `generated-autoload-file'.
120 autoloads: $(emacs-deps) $(LOADDEFS) doit 122 autoloads: $(emacs-deps) $(LOADDEFS) doit
123 chmod +w $(lisp)/ps-print.el $(lisp)/emulation/tpu-edt.el \
124 $(lisp)/emacs-lisp/cl-loaddefs.el
121 wd=$(lisp); $(setwins_almost); \ 125 wd=$(lisp); $(setwins_almost); \
122 echo Directories: $$wins; \ 126 echo Directories: $$wins; \
123 $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins 127 $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins
124 128
125 # Note: every rule that runs $(emacs) and is called during bootstrap must 129 # Note: every rule that runs $(emacs) and is called during bootstrap must
305 # whenever a new autoload cookie gets added that is necessary during 309 # whenever a new autoload cookie gets added that is necessary during
306 # bootstrapping, ldefs-boot.el should be updated by overwriting it with 310 # bootstrapping, ldefs-boot.el should be updated by overwriting it with
307 # an up-to-date copy of loaddefs.el that is uncorrupted by 311 # an up-to-date copy of loaddefs.el that is uncorrupted by
308 # local changes. (Because loaddefs.el is an automatically generated 312 # local changes. (Because loaddefs.el is an automatically generated
309 # file, we don't want to store it in the source repository). 313 # file, we don't want to store it in the source repository).
310 #
311 # The chmod +w is to handle env var CVSREAD=1. Files named
312 # are identified by being the value of `generated-autoload-file'.
313 314
314 bootstrap-prepare: 315 bootstrap-prepare:
315 if test -x $(EMACS); then \ 316 if test -x $(EMACS); then \
316 $(MAKE) $(MFLAGS) autoloads; \ 317 $(MAKE) $(MFLAGS) autoloads; \
317 fi 318 fi
318 chmod +w $(lisp)/ps-print.el $(lisp)/emulation/tpu-edt.el \
319 $(lisp)/emacs-lisp/cl-loaddefs.el
320 319
321 maintainer-clean: distclean bootstrap-clean 320 maintainer-clean: distclean bootstrap-clean
322 cd $(lisp); rm -f $(AUTOGENEL) 321 cd $(lisp); rm -f $(AUTOGENEL)
323 322
324 ## NB note that this rules assume only one level of subdirs below lisp/. 323 ## NB note that this rules assume only one level of subdirs below lisp/.