diff options
author | Eli Zaretskii <eliz@gnu.org> | 2021-09-28 15:00:50 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2021-09-28 15:00:50 +0300 |
commit | 90655e4bc01ba8d00be3281d13cc771b53e75b43 (patch) | |
tree | d0f734ef8d6a148745faa261feeb519dc65bd1bd /lisp/Makefile.in | |
parent | b02a7ad2631b6ac3a95e53cb26a0aa1b1ab7e98a (diff) | |
download | emacs-90655e4bc01ba8d00be3281d13cc771b53e75b43.tar.gz |
Make the build of source tarball produce *.eln files
* lisp/emacs-lisp/comp.el (batch-native-compile): Accept an
optional argument; if non-nil, place the .eln file as appropriate
for building a source tarball.
* doc/lispref/compile.texi (Native-Compilation Functions):
Document the new optional argument of 'batch-native-compile'.
* lisp/Makefile.in (.PHONY, $(THEFILE)n) [HAVE_NATIVE_COMP]: New
targets.
* src/Makefile.in (%.eln) [HAVE_NATIVE_COMP]: New recipe.
(all) [HAVE_NATIVE_COMP]: Add ../native-lisp to prerequisites.
(elnlisp) [HAVE_NATIVE_COMP]: New list of *.eln files.
(../native-lisp) [HAVE_NATIVE_COMP]: New recipe.
* src/verbose.mk.in (AM_V_ELN): New macro.
Diffstat (limited to 'lisp/Makefile.in')
-rw-r--r-- | lisp/Makefile.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 431217a9dac..60d1d10e5b2 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -281,6 +281,14 @@ else -f batch-byte-compile $(THEFILE) endif +ifeq ($(HAVE_NATIVE_COMP),yes) +.PHONY: $(THEFILE)n +$(THEFILE)n: + $(AM_V_ELN)$(emacs) $(BYTE_COMPILE_FLAGS) \ + -l comp -f byte-compile-refresh-preloaded \ + --eval '(batch-native-compile t)' $(THEFILE) +endif + # Files MUST be compiled one by one. If we compile several files in a # row (i.e., in the same instance of Emacs) we can't make sure that # the compilation environment is clean. We also set the load-path of |