+2008-05-23 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (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.
+
2008-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
* vc-bzr.el (vc-bzr-annotate-time): Reduce memory allocation.
# 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.
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.
# 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.