From: Eli Zaretskii Date: Wed, 27 Mar 2002 14:45:05 +0000 (+0000) Subject: (compile, compile-always): Don't try to compile X-Git-Tag: ttn-vms-21-2-B4~15958 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ad1de49cf1ef60e36556b5f4cf982bcf4c02c32;p=emacs.git (compile, compile-always): Don't try to compile non-existent files or files in empty directories. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1b567083265..009dd8bf580 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2002-03-27 Eli Zaretskii + + * Makefile.in (compile, compile-always): Don't try to compile + non-existent files or files in empty directories. + 2002-03-26 Stefan Monnier * textmodes/xml-lite.el (xml-lite-at-indentation-p): Move. diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 8e6e9dd4ca0..9fa62e4625e 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -222,8 +222,11 @@ compile: subdirs.el doit els=`echo $$elpat $(DONTCOMPILE) $(DONTCOMPILE) $(COMPILE_FIRST) | \ tr ' ' '\012\012' | sort | uniq -u`; \ for el in $(COMPILE_FIRST) $$els; do \ - echo Compiling $$el; \ - $(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \ + if test -f $$el; \ + then \ + echo Compiling $$el; \ + $(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \ + fi \ done # Compile all Lisp files, except those from DONTCOMPILE. This @@ -236,8 +239,11 @@ compile-always: subdirs.el doit els=`echo $$elpat $(DONTCOMPILE) $(DONTCOMPILE) $(COMPILE_FIRST) | \ tr ' ' '\012\012' | sort | uniq -u`; \ for el in $(COMPILE_FIRST) $$els; do \ - echo Compiling $$el; \ - $(emacs) -f batch-byte-compile $$el || exit 1; \ + if test -f $$el; \ + then \ + echo Compiling $$el; \ + $(emacs) -f batch-byte-compile $$el || exit 1; \ + fi \ done compile-calc: