changeset 44174:f41b79ef76f5

(compile, compile-always): Don't try to compile non-existent files or files in empty directories.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 27 Mar 2002 14:44:41 +0000
parents 248fd1113276
children 30664dcf6138
files lisp/Makefile.in
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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: