Mercurial > emacs
comparison lisp/Makefile.in @ 95243:b4feb647fec6
(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.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Fri, 23 May 2008 04:46:33 +0000 |
parents | cb5e62e5a363 |
children | 3edde37f5298 |
comparison
equal
deleted
inserted
replaced
95242:626b98b8e56a | 95243:b4feb647fec6 |
---|---|
37 BYTE_COMPILE_EXTRA_FLAGS = | 37 BYTE_COMPILE_EXTRA_FLAGS = |
38 # For example to not display the undefined function warnings you can use this: | 38 # For example to not display the undefined function warnings you can use this: |
39 # BYTE_COMPILE_EXTRA_FLAGS = --eval '(setq byte-compile-warnings (quote (not unresolved)))' | 39 # BYTE_COMPILE_EXTRA_FLAGS = --eval '(setq byte-compile-warnings (quote (not unresolved)))' |
40 # The example above is just for developers, it should not be used by default. | 40 # The example above is just for developers, it should not be used by default. |
41 | 41 |
42 SOURCES = *.el COPYING Makefile | 42 lisptagsfiles1 = $(lisp)/*.el |
43 lisptagsfiles1 = $(lisp)/[a-zA-Z]*.el | 43 lisptagsfiles2 = $(lisp)/*/*.el |
44 lisptagsfiles2 = $(lisp)/[a-zA-Z]*/[a-zA-Z]*.el | |
45 ETAGS = ../lib-src/etags | 44 ETAGS = ../lib-src/etags |
46 | 45 |
47 # Automatically generated autoload files, apart from lisp/loaddefs.el. | 46 # Automatically generated autoload files, apart from lisp/loaddefs.el. |
48 # Note this includes only those files that need special rules to | 47 # Note this includes only those files that need special rules to |
49 # build; ie it does not need to include things created via | 48 # build; ie it does not need to include things created via |
144 # Update the AUTHORS file. | 143 # Update the AUTHORS file. |
145 | 144 |
146 update-authors: | 145 update-authors: |
147 $(emacs) -l authors -f batch-update-authors $(srcdir)/etc/AUTHORS $(srcdir) | 146 $(emacs) -l authors -f batch-update-authors $(srcdir)/etc/AUTHORS $(srcdir) |
148 | 147 |
149 TAGS: $(lisptagsfiles1) $(lisptagsfiles2) | 148 TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) |
150 els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ | 149 els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/[^ ]*loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ |
151 ${ETAGS} $$els | 150 ${ETAGS} -o $@ $$els |
152 | |
153 TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) | |
154 els=`echo $(lisptagsfiles1) $(lisptagsfiles2) | sed -e "s,$(lisp)/loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \ | |
155 ${ETAGS} -o TAGS-LISP $$els | |
156 | 151 |
157 | 152 |
158 ## Explicitly list the .elc files, for the sake of parallel builds. | 153 ## Explicitly list the .elc files, for the sake of parallel builds. |
159 ## http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-05/msg00016.html | 154 ## http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-05/msg00016.html |
160 ## This can be done more elegantly, but needs to be portable. | 155 ## This can be done more elegantly, but needs to be portable. |
1251 | 1246 |
1252 # Compile all Lisp files. This is like `compile' but compiles files | 1247 # Compile all Lisp files. This is like `compile' but compiles files |
1253 # unconditionally. Some files don't actually get compiled because they | 1248 # unconditionally. Some files don't actually get compiled because they |
1254 # set the local variable no-byte-compile. | 1249 # set the local variable no-byte-compile. |
1255 compile-always: doit | 1250 compile-always: doit |
1256 for el in $(COMPILE_FIRST); do \ | 1251 cd $(lisp); rm -f *.elc */*.elc |
1257 -rm $${el}c; \ | |
1258 done | |
1259 -rm $(ELCFILES) | |
1260 $(MAKE) $(MFLAGS) compile | 1252 $(MAKE) $(MFLAGS) compile |
1261 | 1253 |
1262 ## In case any files are missing from ELCFILES. | 1254 ## In case any files are missing from ELCFILES. |
1263 compile-last: | 1255 compile-last: |
1264 @wd=$(lisp); $(setwins); \ | 1256 @wd=$(lisp); $(setwins); \ |