emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/Makefile.in,v


From: Dan Nicolaescu
Subject: [Emacs-diffs] Changes to emacs/lisp/Makefile.in,v
Date: Mon, 29 Oct 2007 18:32:36 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Dan Nicolaescu <dann>   07/10/29 18:32:33

Index: Makefile.in
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/Makefile.in,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -b -r1.91 -r1.92
--- Makefile.in 9 Sep 2007 12:09:52 -0000       1.91
+++ Makefile.in 29 Oct 2007 18:32:32 -0000      1.92
@@ -35,6 +35,12 @@
 
 EMACSOPT = -batch --no-site-file --multibyte
 
+# Extra flags to pass to the byte compiler
+BYTE_COMPILE_EXTRA_FLAGS = 
+# For example to not display the undefined function warnings you can use this:
+# 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
@@ -141,7 +147,7 @@
 .SUFFIXES: .elc .el
 
 .el.elc: $(lisp)/subdirs.el
-       -$(emacs) -f batch-byte-compile $<
+       -$(emacs)  $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
 
 # Compile all Lisp files, but don't recompile those that are up to
 # date.  Some files don't actually get compiled because they set the
@@ -166,7 +172,7 @@
          if test -f $$el; \
          then \
            echo Compiling $$el; \
-           $(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \
+           $(emacs)  $(BYTE_COMPILE_EXTRA_FLAGS) -f 
batch-byte-compile-if-not-done $$el || exit 1; \
          fi \
        done
 
@@ -185,14 +191,14 @@
          if test -f $$el; \
          then \
            echo Compiling $$el; \
-           $(emacs) -f batch-byte-compile $$el || exit 1; \
+           $(emacs)  $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || 
exit 1; \
          fi \
        done
 
 compile-calc:
        for el in `find $(lisp)/calc -name '*.el'`; do \
          echo Compiling $$el; \
-         $(emacs) -f batch-byte-compile $$el || exit 1; \
+         $(emacs)  $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || 
exit 1; \
        done
 
 # Backup compiled Lisp files in elc.tar.gz.  If that file already
@@ -219,7 +225,7 @@
        $(lisp)/progmodes/cc-mode.el \
        $(lisp)/progmodes/cc-langs.el \
        $(lisp)/progmodes/cc-defs.el
-       $(emacs) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el
+       $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile 
$(lisp)/progmodes/cc-mode.el
 
 # Update MH-E internal autoloads. These are not to be confused with
 # the autoloads for the MH-E entry points, which are already in




reply via email to

[Prev in Thread] Current Thread [Next in Thread]