diff options
Diffstat (limited to 'lisp/Makefile.in')
-rw-r--r-- | lisp/Makefile.in | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 950ec1aab6e..700245fad4e 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -35,6 +35,12 @@ EMACS = ../src/emacs 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 @@ -132,7 +138,7 @@ cvs-update: recompile autoloads finder-data custom-deps # Update the AUTHORS file. update-authors: - $(emacs) -l authors -f batch-update-authors $(srcdir)/AUTHORS $(srcdir) + $(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[^ ]*,,"`; \ @@ -145,7 +151,7 @@ TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) .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 @@ -170,7 +176,7 @@ compile: $(lisp)/subdirs.el mh-autoloads doit 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 @@ -189,14 +195,14 @@ compile-always: $(lisp)/subdirs.el mh-autoloads doit 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 @@ -223,7 +229,7 @@ $(lisp)/progmodes/cc-mode.elc: \ $(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 @@ -279,6 +285,9 @@ $(lisp)/mh-e/mh-loaddefs.el: $(lisp)/subdirs.el $(MH_E_SRC) # an up-to-date copy of loaddefs.el that is uncorrupted by # local changes. (Because loaddefs.el is an automatically generated # file, we don't want to store it in the source repository). +# +# The chmod +w is to handle env var CVSREAD=1. Files named +# are identified by being the value of `generated-autoload-file'. bootstrap-prepare: if test -x $(EMACS); then \ @@ -286,10 +295,16 @@ bootstrap-prepare: else \ cp $(lisp)/ldefs-boot.el $(lisp)/loaddefs.el; \ fi + chmod +w $(lisp)/loaddefs.el \ + $(lisp)/ps-print.el \ + $(lisp)/emacs-lisp/cl-loaddefs.el -maintainer-clean: distclean - cd $(lisp); rm -f *.elc */*.elc $(AUTOGENEL) +maintainer-clean: distclean bootstrap-clean + cd $(lisp); rm -f $(AUTOGENEL) +## NB note that this rules assume only one level of subdirs below lisp/. +## If nested subdirs are added, it's probably time to switch to: +## find $(lisp) -name "*.elc" -exec rm -f '{}' ';' bootstrap-clean: cd $(lisp); rm -f *.elc */*.elc @@ -305,4 +320,10 @@ bootstrap-after: finder-data custom-deps distclean: -rm -f ./Makefile +.PHONY: check-declare + +check-declare: + $(emacs) -l $(lisp)/emacs-lisp/check-declare \ + --eval '(check-declare-directory "$(lisp)")' + # Makefile ends here. |