# HG changeset patch # User Glenn Morris # Date 1211517993 0 # Node ID b4feb647fec6ad408caa05d0d7aeb68d48881489 # Parent 626b98b8e56a484de71881046665f550802a433e (SOURCES): Remove, unused. (lisptagsfiles1, lisptagsfiles2): Use '*' rather than '[a-zA-Z]*'. (TAGS, TAGS-LISP): Use a single rule with multiple targets. Exclude more '*loaddefs' files. (compile-always): Simplify '.elc' deletion. diff -r 626b98b8e56a -r b4feb647fec6 lisp/Makefile.in --- a/lisp/Makefile.in Fri May 23 04:44:35 2008 +0000 +++ b/lisp/Makefile.in Fri May 23 04:46:33 2008 +0000 @@ -39,9 +39,8 @@ # BYTE_COMPILE_EXTRA_FLAGS = --eval '(setq byte-compile-warnings (quote (not unresolved)))' # The example above is just for developers, it should not be used by default. -SOURCES = *.el COPYING Makefile -lisptagsfiles1 = $(lisp)/[a-zA-Z]*.el -lisptagsfiles2 = $(lisp)/[a-zA-Z]*/[a-zA-Z]*.el +lisptagsfiles1 = $(lisp)/*.el +lisptagsfiles2 = $(lisp)/*/*.el ETAGS = ../lib-src/etags # Automatically generated autoload files, apart from lisp/loaddefs.el. @@ -146,13 +145,9 @@ update-authors: $(emacs) -l authors -f batch-update-authors $(srcdir)/etc/AUTHORS $(srcdir) -TAGS: $(lisptagsfiles1) $(lisptagsfiles2) - els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ - ${ETAGS} $$els - -TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) - els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ - ${ETAGS} -o TAGS-LISP $$els +TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) + els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/[^ ]*loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ + ${ETAGS} -o $@ $$els ## Explicitly list the .elc files, for the sake of parallel builds. @@ -1253,10 +1248,7 @@ # unconditionally. Some files don't actually get compiled because they # set the local variable no-byte-compile. compile-always: doit - for el in $(COMPILE_FIRST); do \ - -rm $${el}c; \ - done - -rm $(ELCFILES) + cd $(lisp); rm -f *.elc */*.elc $(MAKE) $(MFLAGS) compile ## In case any files are missing from ELCFILES.