comparison lisp/Makefile @ 29547:57aeae00b4df

(EMACSOPT): Remove --no-init-file (implied by -batch). (autoloads): Explicitly load `autoload' to bootstrap without loaddefs. (backup-compiled-files): Ignore errors during `tar'. (bootstrap): Make autoloads before elc files.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 11 Jun 2000 03:54:29 +0000
parents 71e534c8c5cf
children
comparison
equal deleted inserted replaced
29546:fbe764633971 29547:57aeae00b4df
8 EMACS = ../src/emacs 8 EMACS = ../src/emacs
9 9
10 # Command line flags for Emacs. This must include --multibyte, 10 # Command line flags for Emacs. This must include --multibyte,
11 # otherwise some files will not compile. 11 # otherwise some files will not compile.
12 12
13 EMACSOPT = --no-init-file --no-site-file --multibyte -batch 13 EMACSOPT = -batch --no-site-file --multibyte
14 14
15 SOURCES = *.el COPYING Makefile 15 SOURCES = *.el COPYING Makefile
16 lisptagsfiles1 = [a-zA-Z]*.el 16 lisptagsfiles1 = [a-zA-Z]*.el
17 lisptagsfiles2 = [a-zA-Z]*/[a-zA-Z]*.el 17 lisptagsfiles2 = [a-zA-Z]*/[a-zA-Z]*.el
18 ETAGS = ../lib-src/etags 18 ETAGS = ../lib-src/etags
77 echo ";;; End:" >> $@ 77 echo ";;; End:" >> $@
78 echo ";;; loaddefs.el ends here" >> $@ 78 echo ";;; loaddefs.el ends here" >> $@
79 autoloads: loaddefs.el doit 79 autoloads: loaddefs.el doit
80 wd=.; $(setwins); \ 80 wd=.; $(setwins); \
81 echo Directories: $$wins; \ 81 echo Directories: $$wins; \
82 $(emacs) --eval '(setq generated-autoload-file "'`pwd`'/loaddefs.el")' -f batch-update-autoloads $$wins 82 $(emacs) -l autoload --eval '(setq generated-autoload-file "'`pwd`'/loaddefs.el")' -f batch-update-autoloads $$wins
83 83
84 subdirs.el: 84 subdirs.el:
85 $(MAKE) $(MFLAGS) update-subdirs 85 $(MAKE) $(MFLAGS) update-subdirs
86 update-subdirs: doit 86 update-subdirs: doit
87 wd=.; $(setwins); \ 87 wd=.; $(setwins); \
128 # Backup compiled Lisp files in elc.tar.gz. If that file already 128 # Backup compiled Lisp files in elc.tar.gz. If that file already
129 # exists, make a backup of it. 129 # exists, make a backup of it.
130 130
131 backup-compiled-files: 131 backup-compiled-files:
132 -mv elc.tar.gz elc.tar.gz~ 132 -mv elc.tar.gz elc.tar.gz~
133 tar czf elc.tar.gz *.elc */*.elc 133 -tar czf elc.tar.gz *.elc */*.elc
134 134
135 # Compile Lisp files, but save old compiled files first. 135 # Compile Lisp files, but save old compiled files first.
136 136
137 compile: backup-compiled-files compile-files 137 compile: backup-compiled-files compile-files
138 138
153 if test -f $(emacs); then $(MAKE) $(MFLAGS) autoloads; fi 153 if test -f $(emacs); then $(MAKE) $(MFLAGS) autoloads; fi
154 -rm -f *.elc */*.elc 154 -rm -f *.elc */*.elc
155 155
156 # Generate/update files for the bootstrap process. 156 # Generate/update files for the bootstrap process.
157 157
158 bootstrap: compile-files autoloads custom-deps 158 bootstrap: autoloads compile-files custom-deps
159 159
160 # Makefile ends here. 160 # Makefile ends here.