]> git.eshelyaron.com Git - emacs.git/commitdiff
(compile, compile-always): Don't try to compile
authorEli Zaretskii <eliz@gnu.org>
Wed, 27 Mar 2002 14:45:05 +0000 (14:45 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 27 Mar 2002 14:45:05 +0000 (14:45 +0000)
non-existent files or files in empty directories.

lisp/ChangeLog
lisp/Makefile.in

index 1b5670832654070fa84e7cc46dbd5e5216a4dffb..009dd8bf58081018ef9116f43bf0912e60fcfee8 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-27  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * Makefile.in (compile, compile-always): Don't try to compile
+       non-existent files or files in empty directories.
+
 2002-03-26  Stefan Monnier  <monnier@cs.yale.edu>
 
        * textmodes/xml-lite.el (xml-lite-at-indentation-p): Move.
index 8e6e9dd4ca0a1fc189b560d14bbbf103db0eda54..9fa62e4625ee28eafbe5cc61b78c23f74bcb7d30 100644 (file)
@@ -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: