(compile, compile-always): Don't try to compile

non-existent files or files in empty directories.
This commit is contained in:
Eli Zaretskii 2002-03-27 14:45:05 +00:00
parent 51a8ec55a9
commit 6ad1de49cf
2 changed files with 15 additions and 4 deletions

View 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.

View 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: