aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/Makefile.in')
-rw-r--r--lisp/Makefile.in16
1 files changed, 11 insertions, 5 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 78a251b3f7c..efb95b37057 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -35,6 +35,12 @@ EMACS = ../src/emacs
35 35
36EMACSOPT = -batch --no-site-file --multibyte 36EMACSOPT = -batch --no-site-file --multibyte
37 37
38# Extra flags to pass to the byte compiler
39BYTE_COMPILE_EXTRA_FLAGS =
40# For example to not display the undefined function warnings you can use this:
41# BYTE_COMPILE_EXTRA_FLAGS = --eval '(setq byte-compile-warnings (quote (not unresolved)))'
42# The example above is just for developers, it should not be used by default.
43
38SOURCES = *.el COPYING Makefile 44SOURCES = *.el COPYING Makefile
39lisptagsfiles1 = $(lisp)/[a-zA-Z]*.el 45lisptagsfiles1 = $(lisp)/[a-zA-Z]*.el
40lisptagsfiles2 = $(lisp)/[a-zA-Z]*/[a-zA-Z]*.el 46lisptagsfiles2 = $(lisp)/[a-zA-Z]*/[a-zA-Z]*.el
@@ -141,7 +147,7 @@ TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2)
141.SUFFIXES: .elc .el 147.SUFFIXES: .elc .el
142 148
143.el.elc: $(lisp)/subdirs.el 149.el.elc: $(lisp)/subdirs.el
144 -$(emacs) -f batch-byte-compile $< 150 -$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
145 151
146# Compile all Lisp files, but don't recompile those that are up to 152# Compile all Lisp files, but don't recompile those that are up to
147# date. Some files don't actually get compiled because they set the 153# date. Some files don't actually get compiled because they set the
@@ -166,7 +172,7 @@ compile: $(lisp)/subdirs.el mh-autoloads doit
166 if test -f $$el; \ 172 if test -f $$el; \
167 then \ 173 then \
168 echo Compiling $$el; \ 174 echo Compiling $$el; \
169 $(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \ 175 $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile-if-not-done $$el || exit 1; \
170 fi \ 176 fi \
171 done 177 done
172 178
@@ -185,14 +191,14 @@ compile-always: $(lisp)/subdirs.el mh-autoloads doit
185 if test -f $$el; \ 191 if test -f $$el; \
186 then \ 192 then \
187 echo Compiling $$el; \ 193 echo Compiling $$el; \
188 $(emacs) -f batch-byte-compile $$el || exit 1; \ 194 $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \
189 fi \ 195 fi \
190 done 196 done
191 197
192compile-calc: 198compile-calc:
193 for el in `find $(lisp)/calc -name '*.el'`; do \ 199 for el in `find $(lisp)/calc -name '*.el'`; do \
194 echo Compiling $$el; \ 200 echo Compiling $$el; \
195 $(emacs) -f batch-byte-compile $$el || exit 1; \ 201 $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \
196 done 202 done
197 203
198# Backup compiled Lisp files in elc.tar.gz. If that file already 204# Backup compiled Lisp files in elc.tar.gz. If that file already
@@ -219,7 +225,7 @@ $(lisp)/progmodes/cc-mode.elc: \
219 $(lisp)/progmodes/cc-mode.el \ 225 $(lisp)/progmodes/cc-mode.el \
220 $(lisp)/progmodes/cc-langs.el \ 226 $(lisp)/progmodes/cc-langs.el \
221 $(lisp)/progmodes/cc-defs.el 227 $(lisp)/progmodes/cc-defs.el
222 $(emacs) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el 228 $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el
223 229
224# Update MH-E internal autoloads. These are not to be confused with 230# Update MH-E internal autoloads. These are not to be confused with
225# the autoloads for the MH-E entry points, which are already in 231# the autoloads for the MH-E entry points, which are already in