# HG changeset patch # User Eli Zaretskii # Date 1017240281 0 # Node ID f41b79ef76f53145d9fa72040d327050c9ac5e2f # Parent 248fd111327678b50966aafd234de27373565ad4 (compile, compile-always): Don't try to compile non-existent files or files in empty directories. diff -r 248fd1113276 -r f41b79ef76f5 lisp/Makefile.in --- a/lisp/Makefile.in Wed Mar 27 14:42:54 2002 +0000 +++ b/lisp/Makefile.in Wed Mar 27 14:44:41 2002 +0000 @@ -222,8 +222,11 @@ 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 @@ 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: