Mercurial > emacs
comparison lisp/Makefile.in @ 44106:748924636cc4
(finder-inf.el): Remove.
(finder-data): Don't depend on finder-inf.el any more.
(compile, compile-always): Handle the case where some files
from DONTCOMPILE are missing (it tried to compile them).
(bootstrap-clean): Use src/emacs only if executable.
(bootstrap): Update subdirs.el and finder-inf.el.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 22 Mar 2002 23:36:15 +0000 |
parents | d6dc55c34307 |
children | f41b79ef76f5 |
comparison
equal
deleted
inserted
replaced
44105:70f755b6a5c9 | 44106:748924636cc4 |
---|---|
146 custom-deps: cus-load.el doit | 146 custom-deps: cus-load.el doit |
147 wd=$(lisp); $(setwins); \ | 147 wd=$(lisp); $(setwins); \ |
148 echo Directories: $$wins; \ | 148 echo Directories: $$wins; \ |
149 $(EMACS) $(EMACSOPT) -l cus-dep -f custom-make-dependencies $$wins | 149 $(EMACS) $(EMACSOPT) -l cus-dep -f custom-make-dependencies $$wins |
150 | 150 |
151 finder-inf.el: | 151 finder-data: doit |
152 echo "(provide 'finder-inf)" >> $@ | |
153 finder-data: finder-inf.el doit | |
154 wd=$(lisp); $(finder_setwins); \ | 152 wd=$(lisp); $(finder_setwins); \ |
155 echo Directories: $$wins; \ | 153 echo Directories: $$wins; \ |
156 $(EMACS) $(EMACSOPT) -l finder -f finder-compile-keywords-make-dist $$wins | 154 $(EMACS) $(EMACSOPT) -l finder -f finder-compile-keywords-make-dist $$wins |
157 | 155 |
158 loaddefs.el: | 156 loaddefs.el: |
210 # row we can't make sure that the compilation environment is clean. | 208 # row we can't make sure that the compilation environment is clean. |
211 # We also set the load-path of the Emacs used for compilation to the | 209 # We also set the load-path of the Emacs used for compilation to the |
212 # current directory and its subdirectories, to make sure require's and | 210 # current directory and its subdirectories, to make sure require's and |
213 # load's in the files being compiled find the right files. | 211 # load's in the files being compiled find the right files. |
214 | 212 |
213 # NOTE about DONTCOMPILE: in the `echo <foo> | sort | uniq -u' we pass | |
214 # $(DONTCOMPILE) twice. This is in case one of the files in DONTCOMPILE | |
215 # is absent. -stef | |
216 | |
215 compile: subdirs.el doit | 217 compile: subdirs.el doit |
216 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ | 218 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ |
217 wd=$(lisp); $(setwins); \ | 219 wd=$(lisp); $(setwins); \ |
218 elpat=`echo $$wins | tr ' ' '\012\012' | \ | 220 elpat=`echo $$wins | tr ' ' '\012\012' | \ |
219 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ | 221 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
220 els=`echo $$elpat $(DONTCOMPILE) $(COMPILE_FIRST) | \ | 222 els=`echo $$elpat $(DONTCOMPILE) $(DONTCOMPILE) $(COMPILE_FIRST) | \ |
221 tr ' ' '\012\012' | sort | uniq -u`; \ | 223 tr ' ' '\012\012' | sort | uniq -u`; \ |
222 for el in $(COMPILE_FIRST) $$els; do \ | 224 for el in $(COMPILE_FIRST) $$els; do \ |
223 echo Compiling $$el; \ | 225 echo Compiling $$el; \ |
224 $(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \ | 226 $(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \ |
225 done | 227 done |
229 compile-always: subdirs.el doit | 231 compile-always: subdirs.el doit |
230 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ | 232 find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ |
231 wd=$(lisp); $(setwins); \ | 233 wd=$(lisp); $(setwins); \ |
232 elpat=`echo $$wins | tr ' ' '\012\012' | \ | 234 elpat=`echo $$wins | tr ' ' '\012\012' | \ |
233 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ | 235 sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ |
234 els=`echo $$elpat $(DONTCOMPILE) $(COMPILE_FIRST) | \ | 236 els=`echo $$elpat $(DONTCOMPILE) $(DONTCOMPILE) $(COMPILE_FIRST) | \ |
235 tr ' ' '\012\012' | sort | uniq -u`; \ | 237 tr ' ' '\012\012' | sort | uniq -u`; \ |
236 for el in $(COMPILE_FIRST) $$els; do \ | 238 for el in $(COMPILE_FIRST) $$els; do \ |
237 echo Compiling $$el; \ | 239 echo Compiling $$el; \ |
238 $(emacs) -f batch-byte-compile $$el || exit 1; \ | 240 $(emacs) -f batch-byte-compile $$el || exit 1; \ |
239 done | 241 done |
267 # lead to errors during the bootstrap because something fails to | 269 # lead to errors during the bootstrap because something fails to |
268 # autoload as expected. Remove compiled Lisp files so that | 270 # autoload as expected. Remove compiled Lisp files so that |
269 # bootstrap-emacs will be built from sources only. | 271 # bootstrap-emacs will be built from sources only. |
270 | 272 |
271 bootstrap-clean: | 273 bootstrap-clean: |
272 if test -f $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi | 274 if test -x $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi |
273 -rm -f $(lisp)/*.elc $(lisp)/*/*.elc | 275 -rm -f $(lisp)/*.elc $(lisp)/*/*.elc |
274 | 276 |
275 # Generate/update files for the bootstrap process. | 277 # Generate/update files for the bootstrap process. |
276 | 278 |
277 bootstrap: subdirs.el autoloads compile-always custom-deps | 279 bootstrap: update-subdirs autoloads compile finder-data custom-deps |
278 | 280 |
279 distclean: | 281 distclean: |
280 -rm -f ./Makefile | 282 -rm -f ./Makefile |
281 | 283 |
282 # Makefile ends here. | 284 # Makefile ends here. |