2013-07-23 22:57:17 +00:00
|
|
|
### @configure_input@
|
|
|
|
|
2021-01-01 09:13:56 +00:00
|
|
|
# Copyright (C) 2000-2021 Free Software Foundation, Inc.
|
2001-02-20 13:36:21 +00:00
|
|
|
|
|
|
|
# This file is part of GNU Emacs.
|
|
|
|
|
2008-05-06 08:06:51 +00:00
|
|
|
# GNU Emacs is free software: you can redistribute it and/or modify
|
2001-02-20 13:36:21 +00:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2008-05-06 08:06:51 +00:00
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
2001-02-20 13:36:21 +00:00
|
|
|
|
|
|
|
# GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2017-09-13 22:52:52 +00:00
|
|
|
# along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
1999-10-07 23:29:39 +00:00
|
|
|
|
2013-08-28 06:01:52 +00:00
|
|
|
SHELL = @SHELL@
|
2000-06-15 16:10:25 +00:00
|
|
|
|
2010-03-21 11:57:49 +00:00
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
Simplify silent-rules build machinery
* src/verbose.mk.in: New file.
* configure.ac (AM_V, AM_DEFAULT_V): Remove output variables.
(src/verbose.mk): New output file.
* Makefile.in, admin/charsets/Makefile.in:
* admin/grammars/Makefile.in, admin/unidata/Makefile.in:
* doc/emacs/Makefile.in, doc/lispintro/Makefile.in:
* doc/lispref/Makefile.in, doc/misc/Makefile.in, leim/Makefile.in:
* lib-src/Makefile.in, lib/Makefile.in, lisp/Makefile.in:
* lwlib/Makefile.in, nt/Makefile.in, oldXMenu/Makefile.in:
* src/Makefile.in, src/verbose.mk.in, test/Makefile.in:
Include src/verbose.mk rather than repeatedly defining AM_V_at etc.
2021-03-07 00:28:46 +00:00
|
|
|
top_builddir = @top_builddir@
|
2010-03-21 11:57:49 +00:00
|
|
|
lisp = $(srcdir)
|
|
|
|
VPATH = $(srcdir)
|
2015-06-30 20:20:39 +00:00
|
|
|
EXEEXT = @EXEEXT@
|
2000-06-14 20:26:14 +00:00
|
|
|
|
2013-04-14 15:05:42 +00:00
|
|
|
# Empty for all systems except MinGW, where xargs needs an explicit
|
|
|
|
# limitation.
|
|
|
|
XARGS_LIMIT = @XARGS_LIMIT@
|
|
|
|
|
2019-12-30 23:37:47 +00:00
|
|
|
HAVE_NATIVE_COMP = @HAVE_NATIVE_COMP@
|
|
|
|
ifeq ($(HAVE_NATIVE_COMP),yes)
|
2020-09-11 08:51:39 +00:00
|
|
|
ifndef NATIVE_FULL_AOT
|
|
|
|
NATIVE_SKIP_NONDUMP = 1
|
|
|
|
endif
|
2019-12-30 23:37:47 +00:00
|
|
|
endif
|
2015-06-05 01:19:22 +00:00
|
|
|
|
Simplify silent-rules build machinery
* src/verbose.mk.in: New file.
* configure.ac (AM_V, AM_DEFAULT_V): Remove output variables.
(src/verbose.mk): New output file.
* Makefile.in, admin/charsets/Makefile.in:
* admin/grammars/Makefile.in, admin/unidata/Makefile.in:
* doc/emacs/Makefile.in, doc/lispintro/Makefile.in:
* doc/lispref/Makefile.in, doc/misc/Makefile.in, leim/Makefile.in:
* lib-src/Makefile.in, lib/Makefile.in, lisp/Makefile.in:
* lwlib/Makefile.in, nt/Makefile.in, oldXMenu/Makefile.in:
* src/Makefile.in, src/verbose.mk.in, test/Makefile.in:
Include src/verbose.mk rather than repeatedly defining AM_V_at etc.
2021-03-07 00:28:46 +00:00
|
|
|
-include ${top_builddir}/src/verbose.mk
|
2017-03-31 02:26:58 +00:00
|
|
|
|
|
|
|
FIND_DELETE = @FIND_DELETE@
|
|
|
|
|
1999-10-07 23:29:39 +00:00
|
|
|
# You can specify a different executable on the make command line,
|
|
|
|
# e.g. "make EMACS=../src/emacs ...".
|
|
|
|
|
2013-11-02 20:05:15 +00:00
|
|
|
# We never change directory before running Emacs, so a relative file
|
|
|
|
# name is fine, and makes life easier. If we need to change
|
|
|
|
# directory, we can use emacs --chdir.
|
2015-02-23 18:09:51 +00:00
|
|
|
EMACS = ../src/emacs${EXEEXT}
|
1999-10-07 23:29:39 +00:00
|
|
|
|
2010-08-22 21:15:20 +00:00
|
|
|
# Command line flags for Emacs.
|
1999-10-07 23:29:39 +00:00
|
|
|
|
2011-01-07 03:10:39 +00:00
|
|
|
EMACSOPT = -batch --no-site-file --no-site-lisp
|
1999-10-07 23:29:39 +00:00
|
|
|
|
2007-10-29 18:32:32 +00:00
|
|
|
# Extra flags to pass to the byte compiler
|
2019-06-26 14:24:59 +00:00
|
|
|
BYTE_COMPILE_EXTRA_FLAGS =
|
2007-10-29 18:32:32 +00:00
|
|
|
# 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.
|
|
|
|
|
2017-05-12 01:22:13 +00:00
|
|
|
# Those automatically generated autoload files that need special rules
|
|
|
|
# to build; ie not including things created via generated-autoload-file
|
|
|
|
# (eg calc/calc-loaddefs.el).
|
2008-03-13 06:05:25 +00:00
|
|
|
LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
|
2008-04-05 18:52:02 +00:00
|
|
|
$(lisp)/calendar/diary-loaddefs.el \
|
|
|
|
$(lisp)/calendar/hol-loaddefs.el \
|
Migrate to Tramp 2.2. Rearrange load dependencies.
(Bug#1529, Bug#5448, Bug#5705)
* Makefile.in (TRAMP_DIR, TRAMP_SRC): New variables.
($(TRAMP_DIR)/tramp-loaddefs.el): New target.
(LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
* net/tramp.el (top): Remove all other tramp-* loads except
tramp-compat.el. Remove all changes to tramp-unload-hook for
other tramp-* packages. Rearrange defun order. Change calls of
`tramp-compat-call-process', `tramp-compat-decimal-to-octal',
`tramp-compat-octal-to-decimal' to new function names.
(tramp-terminal-type, tramp-initial-end-of-output)
(tramp-methods, tramp-foreign-file-name-handler-alist)
(tramp-tramp-file-p, tramp-completion-mode-p)
(tramp-send-command-and-check, tramp-get-remote-path)
(tramp-get-remote-tmpdir, tramp-get-remote-ln)
(tramp-shell-quote-argument): Set tramp-autoload cookie.
(with-file-property, with-connection-property): Move to
tramp-cache.el.
(tramp-local-call-process, tramp-decimal-to-octal)
(tramp-octal-to-decimal): Move to tramp-compat.el.
(tramp-handle-shell-command): Do not require 'shell.
(tramp-compute-multi-hops): No special handling for tramp-gw-*
symbols.
(tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
* net/tramp-cache.el (top): Require 'tramp. Add to
`tramp-unload-hook'.
(tramp-cache-data, tramp-get-file-property)
(tramp-set-file-property, tramp-flush-file-property)
(tramp-flush-directory-property, tramp-get-connection-property)
(tramp-set-connection-property, tramp-flush-connection-property)
(tramp-cache-print, tramp-list-connections): Set tramp-autoload
cookie.
(with-file-property, with-connection-property): New defuns, moved
from tramp.el.
(tramp-flush-file-function): Use `with-parsed-tramp-file-name'
macro.
* net/tramp-cmds.el (top): Add to `tramp-unload-hook'.
(tramp-version): Set tramp-autoload cookie.
* net/tramp-compat.el (top): Require 'tramp-loaddefs. Remove all
changes to tramp-unload-hook for other tramp-* packages. Add to
`tramp-unload-hook'.
(tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
(tramp-compat-call-process): New defuns, moved from tramp.el.
* net/tramp-fish.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change call of
`tramp-compat-decimal-to-octal' to new function name.
(tramp-fish-method): Make it a defconst.
(tramp-fish-file-name-p): Make it a defsubst.
(tramp-fish-method, tramp-fish-file-name-handler)
(tramp-fish-file-name-p): Set tramp-autoload cookie.
* net/tramp-ftp.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-ftp-method): Make it a defconst.
(tramp-ftp-file-name-p): Make it a defsubst.
(tramp-ftp-method, tramp-ftp-file-name-handler)
(tramp-ftp-file-name-p): Set tramp-autoload cookie.
* net/tramp-gvfs.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-gvfs-file-name-p): Make it a defsubst.
(tramp-gvfs-methods, tramp-gvfs-file-name-handler)
(tramp-gvfs-file-name-p): Set tramp-autoload cookie.
(tramp-gvfs-handle-file-directory-p): New defun.
(tramp-gvfs-file-name-handler-alist): Use it.
* net/tramp-gw.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
(tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
defconst.
(tramp-gw-tunnel-method, tramp-gw-socks-method)
(tramp-gw-open-connection): Set tramp-autoload cookie.
* net/tramp-imap.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-imap-file-name-p): Make it a defsubst.
(tramp-imap-method, tramp-imaps-method)
(tramp-imap-file-name-handler)
(tramp-imap-file-name-p): Set tramp-autoload cookie.
* net/tramp-smb.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded. Change call of `tramp-compat-decimal-to-octal' to new
function name.
(tramp-smb-tunnel-method): Make it a defconst.
(tramp-smb-file-name-p): Make it a defsubst.
(tramp-smb-method, tramp-smb-file-name-handler)
(tramp-smb-file-name-p): Set tramp-autoload cookie.
* net/tramp-uu.el (top) Add to `tramp-unload-hook'.
(tramp-uuencode-region): Set tramp-autoload cookie.
* net/trampver.el (top) Add to `tramp-unload-hook'.
(tramp-version, tramp-bug-report-address): Set tramp-autoload
cookie. Update release number.
2010-09-08 14:42:54 +00:00
|
|
|
$(lisp)/mh-e/mh-loaddefs.el \
|
|
|
|
$(lisp)/net/tramp-loaddefs.el
|
2008-03-13 06:05:25 +00:00
|
|
|
|
2017-05-12 01:22:13 +00:00
|
|
|
# All generated autoload files.
|
2017-05-30 16:27:33 +00:00
|
|
|
loaddefs = $(shell find ${srcdir} -name '*loaddefs.el' ! -name '.*')
|
2004-04-16 12:51:06 +00:00
|
|
|
# Elisp files auto-generated.
|
2017-05-12 01:22:13 +00:00
|
|
|
AUTOGENEL = ${loaddefs} ${srcdir}/cus-load.el ${srcdir}/finder-inf.el \
|
|
|
|
${srcdir}/subdirs.el ${srcdir}/eshell/esh-groups.el
|
2004-04-16 12:51:06 +00:00
|
|
|
|
2013-12-18 03:21:48 +00:00
|
|
|
# Set load-prefer-newer for the benefit of the non-bootstrappers.
|
2015-11-18 16:42:29 +00:00
|
|
|
BYTE_COMPILE_FLAGS = \
|
2019-06-26 14:24:59 +00:00
|
|
|
--eval '(setq load-prefer-newer t)' $(BYTE_COMPILE_EXTRA_FLAGS)
|
Try and fix w32 build; misc cleanup.
* lisp/subr.el (apply-partially): Move from subr.el; don't use lexical-let.
(eval-after-load): Obey lexical-binding.
* lisp/simple.el (apply-partially): Move to subr.el.
* lisp/makefile.w32-in: Match changes in Makefile.in.
(BIG_STACK_DEPTH, BIG_STACK_OPTS, BYTE_COMPILE_FLAGS): New vars.
(.el.elc, compile-CMD, compile-SH, compile-always-CMD)
(compile-always-SH, compile-calc-CMD, compile-calc-SH): Use them.
(COMPILE_FIRST): Add pcase, macroexp, and cconv.
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Silence warning about
calling CL's `compiler-macroexpand'.
* lisp/emacs-lisp/bytecomp.el (byte-compile-preprocess): New function.
(byte-compile-initial-macro-environment)
(byte-compile-toplevel-file-form, byte-compile, byte-compile-sexp): Use it.
(byte-compile-eval, byte-compile-eval-before-compile): Obey lexical-binding.
(byte-compile--for-effect): Rename from `for-effect'.
(display-call-tree): Use case.
* lisp/emacs-lisp/byte-opt.el (for-effect): Don't declare as dynamic.
(byte-optimize-form-code-walker, byte-optimize-form):
Revert to old arg name.
* lisp/Makefile.in (BYTE_COMPILE_FLAGS): New var.
(compile-onefile, .el.elc, compile-calc, recompile): Use it.
2011-03-12 03:32:43 +00:00
|
|
|
|
2001-03-21 12:56:09 +00:00
|
|
|
# Files to compile before others during a bootstrap. This is done to
|
Further GV/CL cleanups.
* lisp/emacs-lisp/gv.el (gv-get): Autoload functions to find their
gv-expander.
(gv--defun-declaration): New function.
(defun-declarations-alist): Use it.
(gv-define-modify-macro, gv-pushnew!, gv-inc!, gv-dec!): Remove.
(gv-place): Autoload.
* lisp/emacs-lisp/cl.el (cl--dotimes, cl--dolist): Remember subr.el's
original definition of dotimes and dolist.
* lisp/emacs-lisp/cl-macs.el (cl-expr-access-order): Remove unused.
(cl-dolist, cl-dotimes): Use `dolist' and `dotimes'.
* lisp/emacs-lisp/cl-lib.el: Move gv handlers from cl-macs to here.
(cl-fifth, cl-sixth, cl-seventh, cl-eighth)
(cl-ninth, cl-tenth): Move gv handler to the function's definition.
* lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-get, cl-getf): Move gv handler
to the function's definition.
* lisp/Makefile.in (COMPILE_FIRST): Re-order to speed it up by about 50%.
* lisp/window.el:
* lisp/files.el:
* lisp/faces.el:
* lisp/env.el: Don't use CL.
2012-06-22 21:24:54 +00:00
|
|
|
# speed up the bootstrap process. They're ordered by size, so we use
|
|
|
|
# the slowest-compiler on the smallest file and move to larger files as the
|
2015-09-16 23:09:09 +00:00
|
|
|
# compiler gets faster. 'autoload.elc' comes last because it is not used by
|
Further GV/CL cleanups.
* lisp/emacs-lisp/gv.el (gv-get): Autoload functions to find their
gv-expander.
(gv--defun-declaration): New function.
(defun-declarations-alist): Use it.
(gv-define-modify-macro, gv-pushnew!, gv-inc!, gv-dec!): Remove.
(gv-place): Autoload.
* lisp/emacs-lisp/cl.el (cl--dotimes, cl--dolist): Remember subr.el's
original definition of dotimes and dolist.
* lisp/emacs-lisp/cl-macs.el (cl-expr-access-order): Remove unused.
(cl-dolist, cl-dotimes): Use `dolist' and `dotimes'.
* lisp/emacs-lisp/cl-lib.el: Move gv handlers from cl-macs to here.
(cl-fifth, cl-sixth, cl-seventh, cl-eighth)
(cl-ninth, cl-tenth): Move gv handler to the function's definition.
* lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-get, cl-getf): Move gv handler
to the function's definition.
* lisp/Makefile.in (COMPILE_FIRST): Re-order to speed it up by about 50%.
* lisp/window.el:
* lisp/files.el:
* lisp/faces.el:
* lisp/env.el: Don't use CL.
2012-06-22 21:24:54 +00:00
|
|
|
# the compiler (so its compilation does not speed up subsequent compilations),
|
|
|
|
# it's only placed here so as to speed up generation of the loaddefs.el file.
|
2000-03-24 22:51:40 +00:00
|
|
|
|
2000-06-14 20:26:14 +00:00
|
|
|
COMPILE_FIRST = \
|
2010-10-15 21:55:33 +00:00
|
|
|
$(lisp)/emacs-lisp/macroexp.elc \
|
Further GV/CL cleanups.
* lisp/emacs-lisp/gv.el (gv-get): Autoload functions to find their
gv-expander.
(gv--defun-declaration): New function.
(defun-declarations-alist): Use it.
(gv-define-modify-macro, gv-pushnew!, gv-inc!, gv-dec!): Remove.
(gv-place): Autoload.
* lisp/emacs-lisp/cl.el (cl--dotimes, cl--dolist): Remember subr.el's
original definition of dotimes and dolist.
* lisp/emacs-lisp/cl-macs.el (cl-expr-access-order): Remove unused.
(cl-dolist, cl-dotimes): Use `dolist' and `dotimes'.
* lisp/emacs-lisp/cl-lib.el: Move gv handlers from cl-macs to here.
(cl-fifth, cl-sixth, cl-seventh, cl-eighth)
(cl-ninth, cl-tenth): Move gv handler to the function's definition.
* lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-get, cl-getf): Move gv handler
to the function's definition.
* lisp/Makefile.in (COMPILE_FIRST): Re-order to speed it up by about 50%.
* lisp/window.el:
* lisp/files.el:
* lisp/faces.el:
* lisp/env.el: Don't use CL.
2012-06-22 21:24:54 +00:00
|
|
|
$(lisp)/emacs-lisp/cconv.elc \
|
|
|
|
$(lisp)/emacs-lisp/byte-opt.elc \
|
2019-12-30 23:37:47 +00:00
|
|
|
$(lisp)/emacs-lisp/bytecomp.elc
|
|
|
|
ifeq ($(HAVE_NATIVE_COMP),yes)
|
2021-10-02 08:06:18 +00:00
|
|
|
COMPILE_FIRST += \
|
|
|
|
$(lisp)/emacs-lisp/comp.elc \
|
|
|
|
$(lisp)/emacs-lisp/comp-cstr.elc \
|
|
|
|
$(lisp)/emacs-lisp/cl-macs.elc \
|
|
|
|
$(lisp)/emacs-lisp/rx.elc \
|
|
|
|
$(lisp)/emacs-lisp/cl-seq.elc \
|
|
|
|
$(lisp)/help-mode.elc \
|
|
|
|
$(lisp)/emacs-lisp/cl-extra.elc \
|
|
|
|
$(lisp)/emacs-lisp/gv.elc \
|
|
|
|
$(lisp)/emacs-lisp/seq.elc \
|
|
|
|
$(lisp)/emacs-lisp/cl-lib.elc \
|
|
|
|
$(lisp)/emacs-lisp/warnings.elc \
|
|
|
|
$(lisp)/emacs-lisp/subr-x.elc
|
2019-12-30 23:37:47 +00:00
|
|
|
endif
|
|
|
|
COMPILE_FIRST += $(lisp)/emacs-lisp/autoload.elc
|
2000-03-24 22:51:40 +00:00
|
|
|
|
2018-03-16 05:57:39 +00:00
|
|
|
# Files to compile early in compile-main. Works around bug#25556.
|
|
|
|
MAIN_FIRST = ./emacs-lisp/eieio.el ./emacs-lisp/eieio-base.el \
|
|
|
|
./cedet/semantic/db.el
|
|
|
|
|
2014-04-11 06:51:49 +00:00
|
|
|
# Prevent any settings in the user environment causing problems.
|
|
|
|
unexport EMACSDATA EMACSDOC EMACSPATH
|
|
|
|
|
1999-10-07 23:29:39 +00:00
|
|
|
# The actual Emacs command run in the targets below.
|
2014-01-20 07:56:28 +00:00
|
|
|
# Prevent any setting of EMACSLOADPATH in user environment causing problems.
|
|
|
|
emacs = EMACSLOADPATH= '$(EMACS)' $(EMACSOPT)
|
1999-10-07 23:29:39 +00:00
|
|
|
|
2015-06-05 20:12:44 +00:00
|
|
|
## Subdirectories, relative to builddir.
|
|
|
|
SUBDIRS = $(sort $(shell find ${srcdir} -type d -print))
|
|
|
|
## Subdirectories, relative to srcdir.
|
|
|
|
SUBDIRS_REL = $(patsubst ${srcdir}%,.%,${SUBDIRS})
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
## All subdirectories except 'obsolete' and 'term'.
|
2015-06-05 20:12:44 +00:00
|
|
|
SUBDIRS_ALMOST = $(filter-out ${srcdir}/obsolete ${srcdir}/term,${SUBDIRS})
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
## All subdirectories except 'obsolete', 'term', and 'leim' (and subdirs).
|
|
|
|
## We don't want the leim files listed as packages, especially
|
|
|
|
## since many share basenames with files in language/.
|
|
|
|
SUBDIRS_FINDER = $(filter-out ${srcdir}/leim%,${SUBDIRS_ALMOST})
|
|
|
|
## All subdirectories in which we might want to create subdirs.el.
|
2015-06-05 20:12:44 +00:00
|
|
|
SUBDIRS_SUBDIRS = $(filter-out ${srcdir}/cedet% ${srcdir}/leim%,${SUBDIRS})
|
2009-09-27 23:25:03 +00:00
|
|
|
|
2008-06-21 19:33:21 +00:00
|
|
|
# cus-load and finder-inf are not explicitly requested by anything, so
|
2008-06-21 01:38:39 +00:00
|
|
|
# we add them here to make sure they get built.
|
2019-12-29 15:06:07 +00:00
|
|
|
all: compile-main $(lisp)/cus-load.el $(lisp)/finder-inf.el
|
2008-06-20 21:48:17 +00:00
|
|
|
|
Have 'make' output better GEN names
* lisp/Makefile.in (PHONY_EXTRAS): New macro.
(.PHONY): Depend on it, and on $(lisp)/loaddefs.el, so that the
relevant files' time stamps are ignored.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el): Use PHONY_EXTRAS.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el, autoloads, $(lisp)/loaddefs.el)
($(lisp)/subdirs.el, update-subdirs):
Output more-accurate destination names with GEN.
* src/Makefile.in (gl-stamp, globals.h): Simplify by putting the new
contents of globals.h into gl-stamp. This lets us use AM_V_GEN
more naturally so that 'make' can output more-accurate names.
2015-01-12 02:19:31 +00:00
|
|
|
PHONY_EXTRAS =
|
|
|
|
.PHONY: all custom-deps finder-data autoloads update-subdirs $(PHONY_EXTRAS)
|
2012-07-30 16:20:35 +00:00
|
|
|
|
2008-06-05 02:36:11 +00:00
|
|
|
# custom-deps and finder-data both used to scan _all_ the *.el files.
|
2008-06-21 19:33:21 +00:00
|
|
|
# This could lead to problems in parallel builds if automatically
|
|
|
|
# generated *.el files (eg loaddefs etc) were being changed at the same time.
|
2008-06-05 02:36:11 +00:00
|
|
|
# One solution was to add autoloads as a prerequisite:
|
2017-11-26 06:45:41 +00:00
|
|
|
# https://lists.gnu.org/r/emacs-pretest-bug/2007-01/msg00469.html
|
|
|
|
# https://lists.gnu.org/r/bug-gnu-emacs/2007-12/msg00171.html
|
2008-06-21 19:33:21 +00:00
|
|
|
# However, this meant that running these targets modified loaddefs.el,
|
2008-06-05 02:36:11 +00:00
|
|
|
# every time (due to time-stamping). Calling these rules from
|
|
|
|
# bootstrap-after would modify loaddefs after src/emacs, resulting
|
|
|
|
# in make install remaking src/emacs for no real reason:
|
2017-11-26 06:45:41 +00:00
|
|
|
# https://lists.gnu.org/r/emacs-devel/2008-02/msg00311.html
|
2008-06-21 19:33:21 +00:00
|
|
|
# Nowadays these commands don't scan automatically generated files,
|
|
|
|
# since they will never contain any useful information
|
|
|
|
# (see finder-no-scan-regexp and custom-dependencies-no-scan-regexp).
|
2014-06-28 01:26:09 +00:00
|
|
|
custom-deps:
|
Have 'make' output better GEN names
* lisp/Makefile.in (PHONY_EXTRAS): New macro.
(.PHONY): Depend on it, and on $(lisp)/loaddefs.el, so that the
relevant files' time stamps are ignored.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el): Use PHONY_EXTRAS.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el, autoloads, $(lisp)/loaddefs.el)
($(lisp)/subdirs.el, update-subdirs):
Output more-accurate destination names with GEN.
* src/Makefile.in (gl-stamp, globals.h): Simplify by putting the new
contents of globals.h into gl-stamp. This lets us use AM_V_GEN
more naturally so that 'make' can output more-accurate names.
2015-01-12 02:19:31 +00:00
|
|
|
$(AM_V_at)$(MAKE) PHONY_EXTRAS=$(lisp)/cus-load.el $(lisp)/cus-load.el
|
|
|
|
$(lisp)/cus-load.el:
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
$(AM_V_GEN)$(emacs) -l cus-dep \
|
2013-12-11 17:05:28 +00:00
|
|
|
--eval '(setq generated-custom-dependencies-file (unmsys--file-name "$(srcdir)/cus-load.el"))' \
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
-f custom-make-dependencies ${SUBDIRS_ALMOST}
|
1997-04-11 19:40:29 +00:00
|
|
|
|
2014-06-28 01:26:09 +00:00
|
|
|
finder-data:
|
Have 'make' output better GEN names
* lisp/Makefile.in (PHONY_EXTRAS): New macro.
(.PHONY): Depend on it, and on $(lisp)/loaddefs.el, so that the
relevant files' time stamps are ignored.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el): Use PHONY_EXTRAS.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el, autoloads, $(lisp)/loaddefs.el)
($(lisp)/subdirs.el, update-subdirs):
Output more-accurate destination names with GEN.
* src/Makefile.in (gl-stamp, globals.h): Simplify by putting the new
contents of globals.h into gl-stamp. This lets us use AM_V_GEN
more naturally so that 'make' can output more-accurate names.
2015-01-12 02:19:31 +00:00
|
|
|
$(AM_V_at)$(MAKE) PHONY_EXTRAS=$(lisp)/finder-inf.el \
|
|
|
|
$(lisp)/finder-inf.el
|
|
|
|
$(lisp)/finder-inf.el:
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
$(AM_V_GEN)$(emacs) -l finder \
|
2013-12-11 17:05:28 +00:00
|
|
|
--eval '(setq generated-finder-keywords-file (unmsys--file-name "$(srcdir)/finder-inf.el"))' \
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
-f finder-compile-keywords-make-dist ${SUBDIRS_FINDER}
|
1997-04-11 19:40:29 +00:00
|
|
|
|
2017-04-26 18:12:56 +00:00
|
|
|
## Comments on loaddefs generation:
|
|
|
|
|
|
|
|
# loaddefs depends on gen-lisp for two reasons:
|
|
|
|
# 1) In ../src, the emacs target depends on loaddefs but not on eg leim-list.
|
|
|
|
# So having leim as a dependency of loaddefs (via gen-lisp) ensures leim-list
|
|
|
|
# gets created before the final emacs is dumped. Having leim
|
|
|
|
# dependencies in ../src as well would create a parallel race condition.
|
2017-04-25 23:30:31 +00:00
|
|
|
#
|
2017-04-26 18:12:56 +00:00
|
|
|
# 2) Files that are marked no-update-autoloads still get recorded in loaddefs.
|
|
|
|
# So those files should be generated before we make autoloads, if we
|
|
|
|
# don't want a successive make autoloads to change the output file.
|
|
|
|
# Said changes are trivial (only comments in the "files without autoloads"
|
|
|
|
# section), but still can be annoying. Of course, if generated lisp files
|
|
|
|
# do contain autoloads, it is essential they be built before make autoloads.
|
|
|
|
# (Also, if a generated file is not written atomically, it is possible that
|
|
|
|
# in a parallel build, make autoloads could read a partial version of it.)
|
2017-04-13 07:03:09 +00:00
|
|
|
#
|
2017-04-26 18:12:56 +00:00
|
|
|
# We'd really like to add "make -C ../admin/unidata all" to gen-lisp
|
|
|
|
# because of 2) above, but it causes a race condition in parallel
|
|
|
|
# builds because ../src also runs that rule. Given the limitations of
|
|
|
|
# recursive make, the only way to fix that would be to remove unidata
|
|
|
|
# from ../src rules, but that doesn't seem possible due to the various
|
|
|
|
# non-trivial dependencies.
|
|
|
|
|
2017-04-13 07:03:09 +00:00
|
|
|
# We make $(lisp)/loaddefs.el a dependency of .PHONY to cause Make to
|
|
|
|
# ignore its time stamp. That's because the real dependencies of
|
|
|
|
# loaddefs.el aren't known to Make, they are implemented in
|
|
|
|
# batch-update-autoloads, which only updates the autoloads whose
|
2017-04-26 18:12:56 +00:00
|
|
|
# sources have changed.
|
|
|
|
|
|
|
|
# Use expand-file-name rather than $abs_scrdir so that Emacs does not
|
|
|
|
# get confused when it compares file-names for equality.
|
|
|
|
|
Have 'make' output better GEN names
* lisp/Makefile.in (PHONY_EXTRAS): New macro.
(.PHONY): Depend on it, and on $(lisp)/loaddefs.el, so that the
relevant files' time stamps are ignored.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el): Use PHONY_EXTRAS.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el, autoloads, $(lisp)/loaddefs.el)
($(lisp)/subdirs.el, update-subdirs):
Output more-accurate destination names with GEN.
* src/Makefile.in (gl-stamp, globals.h): Simplify by putting the new
contents of globals.h into gl-stamp. This lets us use AM_V_GEN
more naturally so that 'make' can output more-accurate names.
2015-01-12 02:19:31 +00:00
|
|
|
autoloads .PHONY: $(lisp)/loaddefs.el
|
2017-04-25 23:30:31 +00:00
|
|
|
$(lisp)/loaddefs.el: gen-lisp $(LOADDEFS)
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
$(AM_V_GEN)$(emacs) -l autoload \
|
2014-06-30 18:26:34 +00:00
|
|
|
--eval '(setq autoload-ensure-writable t)' \
|
2013-06-15 15:36:11 +00:00
|
|
|
--eval '(setq autoload-builtin-package-versions t)' \
|
2017-05-07 00:58:20 +00:00
|
|
|
--eval '(setq generated-autoload-file (expand-file-name (unmsys--file-name "$@")))' \
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
-f batch-update-autoloads ${SUBDIRS_ALMOST}
|
1997-05-12 00:51:53 +00:00
|
|
|
|
2016-01-04 22:46:35 +00:00
|
|
|
# autoloads only runs when loaddefs.el is nonexistent, although it
|
2015-12-16 22:20:26 +00:00
|
|
|
# generates a number of different files. Provide a force option to enable
|
|
|
|
# regeneration of all these files.
|
2017-04-12 09:01:48 +00:00
|
|
|
.PHONY: autoloads-force
|
|
|
|
autoloads-force:
|
2021-05-09 12:22:05 +00:00
|
|
|
rm -f $(lisp)/loaddefs.el
|
2015-12-16 22:20:26 +00:00
|
|
|
$(MAKE) autoloads
|
|
|
|
|
2008-06-22 13:57:28 +00:00
|
|
|
# This is required by the bootstrap-emacs target in ../src/Makefile, so
|
2008-06-21 01:38:39 +00:00
|
|
|
# we know that if we have an emacs executable, we also have a subdirs.el.
|
2002-12-29 18:01:39 +00:00
|
|
|
$(lisp)/subdirs.el:
|
Have 'make' output better GEN names
* lisp/Makefile.in (PHONY_EXTRAS): New macro.
(.PHONY): Depend on it, and on $(lisp)/loaddefs.el, so that the
relevant files' time stamps are ignored.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el): Use PHONY_EXTRAS.
(custom-deps, $(lisp)/cus-load.el, finder-data)
($(lisp)/finder-inf.el, autoloads, $(lisp)/loaddefs.el)
($(lisp)/subdirs.el, update-subdirs):
Output more-accurate destination names with GEN.
* src/Makefile.in (gl-stamp, globals.h): Simplify by putting the new
contents of globals.h into gl-stamp. This lets us use AM_V_GEN
more naturally so that 'make' can output more-accurate names.
2015-01-12 02:19:31 +00:00
|
|
|
$(AM_V_GEN)$(MAKE) update-subdirs
|
2014-06-28 01:26:09 +00:00
|
|
|
update-subdirs:
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
$(AM_V_at)for file in ${SUBDIRS_SUBDIRS}; do \
|
2013-11-06 08:37:01 +00:00
|
|
|
$(srcdir)/../build-aux/update-subdirs $$file; \
|
1997-05-12 00:59:57 +00:00
|
|
|
done;
|
|
|
|
|
2019-03-06 06:15:02 +00:00
|
|
|
.PHONY: updates repo-update update-authors
|
2012-07-30 16:20:35 +00:00
|
|
|
|
2012-07-06 01:31:54 +00:00
|
|
|
# Some modes of make-dist use this.
|
2006-01-05 22:49:42 +00:00
|
|
|
updates: update-subdirs autoloads finder-data custom-deps
|
1997-04-11 13:14:52 +00:00
|
|
|
|
2014-10-31 09:32:11 +00:00
|
|
|
# This is useful after updating from the repository; but it doesn't do
|
|
|
|
# anything that a plain "make" at top-level doesn't. The only
|
|
|
|
# difference between this and this directory's "all" rule is that this
|
|
|
|
# runs "autoloads" as well (because it uses "compile" rather than
|
|
|
|
# "compile-main"). In a bootstrap, $(lisp) in src/Makefile triggers
|
|
|
|
# this directory's autoloads rule.
|
2014-10-25 18:55:59 +00:00
|
|
|
repo-update: compile finder-data custom-deps
|
2010-01-02 10:42:11 +00:00
|
|
|
|
2019-03-06 06:15:02 +00:00
|
|
|
# Update etc/AUTHORS
|
2000-10-25 19:00:55 +00:00
|
|
|
|
|
|
|
update-authors:
|
2014-06-26 21:51:25 +00:00
|
|
|
$(emacs) -L "$(top_srcdir)/admin" -l authors \
|
|
|
|
-f batch-update-authors "$(top_srcdir)/etc/AUTHORS" "$(top_srcdir)"
|
2000-10-25 19:00:55 +00:00
|
|
|
|
Build tweaks related to tags files.
* lib-src/Makefile.in (tagsfiles): New variable.
(TAGS): Also depend on the source files. Use our own etags program.
* lisp/Makefile.in (ETAGS): Add EXEEXT.
(lisptagsfiles1, lisptagsfiles2, lisptagsfiles3, lisptagsfiles4):
Remove.
(tagsfiles): New, replacing lisptagsfiles1 etc.
Remove irrelevant source files here rather than in the TAGS rule.
(${ETAGS}): New rule.
(TAGS): Also depend on the etags executable.
* lwlib/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): Add EXEEXT.
(${ETAGS}): New rule.
(ctagsfiles): Use "wildcard".
(TAGS): Also depend on the etags executable.
* nt/Makefile.in (ETAGS, tagsfiles): New variables.
(${ETAGS}): New rule.
(TAGS): Fix dependencies.
* oldXMenu/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): New variable, replacing $TAGS. Use our own etags program.
Remove "-t" argument.
(${ETAGS}): New rule.
(tagsfiles): New variable.
(TAGS): New rule, with proper dependencies.
* src/Makefile.in (ETAGS): Add EXEEXT. Add a build rule.
(ctagsfiles1, ctagsfiles2): Use "wildcard".
(ctagsfiles3): Remove.
(TAGS): Depend on etags.
(../lisp/TAGS, $(lwlibdir)/TAGS): Let the rules in the relevant
directories decide if updates are needed.
2016-01-06 23:25:47 +00:00
|
|
|
FORCE:
|
|
|
|
.PHONY: FORCE
|
Small Makefile cleanup mainly related to tags file generation
* src/Makefile.in (abs_srcdir): New, set by configure.
(maintainer-clean): Remove pointless echo. That should be in the
top-level Makefile, if anywhere. Delete TAGS-LISP.
(extraclean): No s/ and m/ directories for some time.
(TAGS): Remove no-longer-defined S_FILE.
Pass absolute filenames to etags once more.
(TAGS-LISP, $(lwlibdir)/TAGS): Correctly pass ETAGS to sub-makes.
($(lwlibdir)/TAGS): Remove useless subshell, check cd return value.
* lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
(lisptagsfiles4): Use absolute filenames again.
(TAGS, TAGS-LISP): Not everything needs to run in one line.
Remove all *loaddefs files, not just the first. Remove esh-groups.
(maintainer-clean): Delete TAGS, TAGS-LISP.
* lwlib/Makefile.in (abs_srcdir): New, set by configure.
(ETAGS, ctagsfiles): New variables.
(TAGS): Use ETAGS, ctagsfiles. Use absolute filenames again.
2013-11-02 19:18:50 +00:00
|
|
|
|
2017-05-30 16:27:33 +00:00
|
|
|
tagsfiles = $(shell find ${srcdir} -name '*.el' \
|
|
|
|
! -name '.*' ! -name '*loaddefs.el')
|
2017-03-07 13:25:45 +00:00
|
|
|
tagsfiles := $(filter-out ${srcdir}/ldefs-boot.el,${tagsfiles})
|
Build tweaks related to tags files.
* lib-src/Makefile.in (tagsfiles): New variable.
(TAGS): Also depend on the source files. Use our own etags program.
* lisp/Makefile.in (ETAGS): Add EXEEXT.
(lisptagsfiles1, lisptagsfiles2, lisptagsfiles3, lisptagsfiles4):
Remove.
(tagsfiles): New, replacing lisptagsfiles1 etc.
Remove irrelevant source files here rather than in the TAGS rule.
(${ETAGS}): New rule.
(TAGS): Also depend on the etags executable.
* lwlib/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): Add EXEEXT.
(${ETAGS}): New rule.
(ctagsfiles): Use "wildcard".
(TAGS): Also depend on the etags executable.
* nt/Makefile.in (ETAGS, tagsfiles): New variables.
(${ETAGS}): New rule.
(TAGS): Fix dependencies.
* oldXMenu/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): New variable, replacing $TAGS. Use our own etags program.
Remove "-t" argument.
(${ETAGS}): New rule.
(tagsfiles): New variable.
(TAGS): New rule, with proper dependencies.
* src/Makefile.in (ETAGS): Add EXEEXT. Add a build rule.
(ctagsfiles1, ctagsfiles2): Use "wildcard".
(ctagsfiles3): Remove.
(TAGS): Depend on etags.
(../lisp/TAGS, $(lwlibdir)/TAGS): Let the rules in the relevant
directories decide if updates are needed.
2016-01-06 23:25:47 +00:00
|
|
|
tagsfiles := $(filter-out ${srcdir}/eshell/esh-groups.el,${tagsfiles})
|
Small Makefile cleanup mainly related to tags file generation
* src/Makefile.in (abs_srcdir): New, set by configure.
(maintainer-clean): Remove pointless echo. That should be in the
top-level Makefile, if anywhere. Delete TAGS-LISP.
(extraclean): No s/ and m/ directories for some time.
(TAGS): Remove no-longer-defined S_FILE.
Pass absolute filenames to etags once more.
(TAGS-LISP, $(lwlibdir)/TAGS): Correctly pass ETAGS to sub-makes.
($(lwlibdir)/TAGS): Remove useless subshell, check cd return value.
* lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
(lisptagsfiles4): Use absolute filenames again.
(TAGS, TAGS-LISP): Not everything needs to run in one line.
Remove all *loaddefs files, not just the first. Remove esh-groups.
(maintainer-clean): Delete TAGS, TAGS-LISP.
* lwlib/Makefile.in (abs_srcdir): New, set by configure.
(ETAGS, ctagsfiles): New variables.
(TAGS): Use ETAGS, ctagsfiles. Use absolute filenames again.
2013-11-02 19:18:50 +00:00
|
|
|
|
Build tweaks related to tags files.
* lib-src/Makefile.in (tagsfiles): New variable.
(TAGS): Also depend on the source files. Use our own etags program.
* lisp/Makefile.in (ETAGS): Add EXEEXT.
(lisptagsfiles1, lisptagsfiles2, lisptagsfiles3, lisptagsfiles4):
Remove.
(tagsfiles): New, replacing lisptagsfiles1 etc.
Remove irrelevant source files here rather than in the TAGS rule.
(${ETAGS}): New rule.
(TAGS): Also depend on the etags executable.
* lwlib/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): Add EXEEXT.
(${ETAGS}): New rule.
(ctagsfiles): Use "wildcard".
(TAGS): Also depend on the etags executable.
* nt/Makefile.in (ETAGS, tagsfiles): New variables.
(${ETAGS}): New rule.
(TAGS): Fix dependencies.
* oldXMenu/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): New variable, replacing $TAGS. Use our own etags program.
Remove "-t" argument.
(${ETAGS}): New rule.
(tagsfiles): New variable.
(TAGS): New rule, with proper dependencies.
* src/Makefile.in (ETAGS): Add EXEEXT. Add a build rule.
(ctagsfiles1, ctagsfiles2): Use "wildcard".
(ctagsfiles3): Remove.
(TAGS): Depend on etags.
(../lisp/TAGS, $(lwlibdir)/TAGS): Let the rules in the relevant
directories decide if updates are needed.
2016-01-06 23:25:47 +00:00
|
|
|
ETAGS = ../lib-src/etags${EXEEXT}
|
|
|
|
|
|
|
|
${ETAGS}: FORCE
|
|
|
|
${MAKE} -C ../lib-src $(notdir $@)
|
Small Makefile cleanup mainly related to tags file generation
* src/Makefile.in (abs_srcdir): New, set by configure.
(maintainer-clean): Remove pointless echo. That should be in the
top-level Makefile, if anywhere. Delete TAGS-LISP.
(extraclean): No s/ and m/ directories for some time.
(TAGS): Remove no-longer-defined S_FILE.
Pass absolute filenames to etags once more.
(TAGS-LISP, $(lwlibdir)/TAGS): Correctly pass ETAGS to sub-makes.
($(lwlibdir)/TAGS): Remove useless subshell, check cd return value.
* lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
(lisptagsfiles4): Use absolute filenames again.
(TAGS, TAGS-LISP): Not everything needs to run in one line.
Remove all *loaddefs files, not just the first. Remove esh-groups.
(maintainer-clean): Delete TAGS, TAGS-LISP.
* lwlib/Makefile.in (abs_srcdir): New, set by configure.
(ETAGS, ctagsfiles): New variables.
(TAGS): Use ETAGS, ctagsfiles. Use absolute filenames again.
2013-11-02 19:18:50 +00:00
|
|
|
|
2016-01-06 23:48:40 +00:00
|
|
|
## The use of xargs is to stop the command line getting too long
|
2013-11-02 20:12:59 +00:00
|
|
|
## on MS Windows, when the MSYS Bash passes it to a MinGW compiled
|
|
|
|
## etags. It might be better to use find in a similar way to
|
|
|
|
## compile-main. But maybe this is not even necessary any more now
|
|
|
|
## that this uses relative filenames.
|
Build tweaks related to tags files.
* lib-src/Makefile.in (tagsfiles): New variable.
(TAGS): Also depend on the source files. Use our own etags program.
* lisp/Makefile.in (ETAGS): Add EXEEXT.
(lisptagsfiles1, lisptagsfiles2, lisptagsfiles3, lisptagsfiles4):
Remove.
(tagsfiles): New, replacing lisptagsfiles1 etc.
Remove irrelevant source files here rather than in the TAGS rule.
(${ETAGS}): New rule.
(TAGS): Also depend on the etags executable.
* lwlib/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): Add EXEEXT.
(${ETAGS}): New rule.
(ctagsfiles): Use "wildcard".
(TAGS): Also depend on the etags executable.
* nt/Makefile.in (ETAGS, tagsfiles): New variables.
(${ETAGS}): New rule.
(TAGS): Fix dependencies.
* oldXMenu/Makefile.in (EXEEXT): New, set by configure.
(ETAGS): New variable, replacing $TAGS. Use our own etags program.
Remove "-t" argument.
(${ETAGS}): New rule.
(tagsfiles): New variable.
(TAGS): New rule, with proper dependencies.
* src/Makefile.in (ETAGS): Add EXEEXT. Add a build rule.
(ctagsfiles1, ctagsfiles2): Use "wildcard".
(ctagsfiles3): Remove.
(TAGS): Depend on etags.
(../lisp/TAGS, $(lwlibdir)/TAGS): Let the rules in the relevant
directories decide if updates are needed.
2016-01-06 23:25:47 +00:00
|
|
|
TAGS: ${ETAGS} ${tagsfiles}
|
2017-12-07 09:31:47 +00:00
|
|
|
$(AM_V_at)rm -f $@
|
|
|
|
$(AM_V_at)touch $@
|
|
|
|
$(AM_V_GEN)ls ${tagsfiles} | xargs $(XARGS_LIMIT) "${ETAGS}" -a -o $@
|
Small Makefile cleanup mainly related to tags file generation
* src/Makefile.in (abs_srcdir): New, set by configure.
(maintainer-clean): Remove pointless echo. That should be in the
top-level Makefile, if anywhere. Delete TAGS-LISP.
(extraclean): No s/ and m/ directories for some time.
(TAGS): Remove no-longer-defined S_FILE.
Pass absolute filenames to etags once more.
(TAGS-LISP, $(lwlibdir)/TAGS): Correctly pass ETAGS to sub-makes.
($(lwlibdir)/TAGS): Remove useless subshell, check cd return value.
* lisp/Makefile.in (lisptagsfiles1, lisptagsfiles2, lisptagsfiles3)
(lisptagsfiles4): Use absolute filenames again.
(TAGS, TAGS-LISP): Not everything needs to run in one line.
Remove all *loaddefs files, not just the first. Remove esh-groups.
(maintainer-clean): Delete TAGS, TAGS-LISP.
* lwlib/Makefile.in (abs_srcdir): New, set by configure.
(ETAGS, ctagsfiles): New variables.
(TAGS): Use ETAGS, ctagsfiles. Use absolute filenames again.
2013-11-02 19:18:50 +00:00
|
|
|
|
1999-10-07 23:29:39 +00:00
|
|
|
|
2008-06-21 19:20:40 +00:00
|
|
|
# The src/Makefile.in has its own set of dependencies and when they decide
|
|
|
|
# that one Lisp file needs to be re-compiled, we had better recompile it as
|
|
|
|
# well, otherwise every subsequent make will again call us, until we finally
|
|
|
|
# end up deciding that yes, the file deserves recompilation.
|
|
|
|
# One option is to try and reproduce exactly the same dependencies here as
|
|
|
|
# we have in src/Makefile.in, but it turns out to be painful
|
|
|
|
# (e.g. src/Makefile.in may have a dependency for ../lisp/foo.elc where we
|
|
|
|
# only know of $(lisp)/foo.elc). So instead we provide a direct way for
|
|
|
|
# src/Makefile.in to rebuild a particular Lisp file, no questions asked.
|
2009-09-16 03:10:17 +00:00
|
|
|
# Use byte-compile-refresh-preloaded to try and work around some of
|
|
|
|
# the most common problems of not bootstrapping from a clean state.
|
2015-01-04 02:50:41 +00:00
|
|
|
THEFILE = no-such-file
|
|
|
|
.PHONY: $(THEFILE)c
|
|
|
|
$(THEFILE)c:
|
2019-12-30 23:37:47 +00:00
|
|
|
ifeq ($(HAVE_NATIVE_COMP),yes)
|
|
|
|
$(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \
|
2019-12-24 19:48:49 +00:00
|
|
|
-l comp -f byte-compile-refresh-preloaded \
|
2021-06-01 15:10:10 +00:00
|
|
|
-f batch-byte+native-compile $(THEFILE)
|
2019-12-30 23:37:47 +00:00
|
|
|
else
|
|
|
|
$(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \
|
|
|
|
-l bytecomp -f byte-compile-refresh-preloaded \
|
|
|
|
-f batch-byte-compile $(THEFILE)
|
|
|
|
endif
|
2019-12-24 19:48:49 +00:00
|
|
|
|
2021-09-28 12:00:50 +00:00
|
|
|
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
|
|
|
|
|
2008-05-21 03:51:58 +00:00
|
|
|
# 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
|
2005-04-13 09:41:46 +00:00
|
|
|
# the compilation environment is clean. We also set the load-path of
|
|
|
|
# the Emacs used for compilation to the current directory and its
|
|
|
|
# subdirectories, to make sure require's and load's in the files being
|
|
|
|
# compiled find the right files.
|
2002-03-22 23:36:15 +00:00
|
|
|
|
2020-08-14 07:05:31 +00:00
|
|
|
.SUFFIXES: .elc .el
|
2008-05-21 03:51:58 +00:00
|
|
|
|
|
|
|
# An old-fashioned suffix rule, which, according to the GNU Make manual,
|
|
|
|
# cannot have prerequisites.
|
2019-12-30 23:37:47 +00:00
|
|
|
ifeq ($(HAVE_NATIVE_COMP),yes)
|
2008-05-21 03:51:58 +00:00
|
|
|
.el.elc:
|
2019-12-29 15:06:07 +00:00
|
|
|
$(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \
|
2021-06-01 15:10:10 +00:00
|
|
|
-l comp -f batch-byte+native-compile $<
|
2019-12-30 23:37:47 +00:00
|
|
|
else
|
|
|
|
.el.elc:
|
|
|
|
$(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) -f batch-byte-compile $<
|
|
|
|
endif
|
2019-12-24 19:48:49 +00:00
|
|
|
|
2010-03-22 04:24:25 +00:00
|
|
|
.PHONY: compile-first compile-main compile compile-always
|
2008-05-21 03:51:58 +00:00
|
|
|
|
2017-03-07 13:25:45 +00:00
|
|
|
compile-first: $(COMPILE_FIRST)
|
2002-02-01 04:13:14 +00:00
|
|
|
|
2015-09-16 23:09:09 +00:00
|
|
|
# In 'compile-main' we could directly do
|
2014-06-28 01:16:23 +00:00
|
|
|
# ... | xargs $(MAKE)
|
2010-03-22 04:24:25 +00:00
|
|
|
# and it works, but it generates a lot of messages like
|
2013-10-24 02:21:23 +00:00
|
|
|
# make[2]: gnus/gnus-mlspl.elc is up to date.
|
2010-03-22 04:24:25 +00:00
|
|
|
# so instead, we use "xargs echo" to split the list of file into manageable
|
2015-09-16 23:09:09 +00:00
|
|
|
# chunks and then use an intermediate 'compile-targets' target so the
|
2010-03-22 04:24:25 +00:00
|
|
|
# actual targets (the .elc files) are not mentioned as targets on the
|
|
|
|
# make command line.
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: compile-targets
|
2015-09-16 23:09:09 +00:00
|
|
|
# TARGETS is set dynamically in the recursive call from 'compile-main'.
|
2020-01-01 20:13:13 +00:00
|
|
|
# Do not build comp.el unless necessary not to exceed max-specpdl-size and
|
|
|
|
# max-lisp-eval-depth in normal builds.
|
|
|
|
ifneq ($(HAVE_NATIVE_COMP),yes)
|
2020-12-04 21:45:59 +00:00
|
|
|
compile-targets: $(filter-out ./emacs-lisp/comp-cstr.elc,$(filter-out ./emacs-lisp/comp.elc,$(TARGETS)))
|
2020-01-01 20:13:13 +00:00
|
|
|
else
|
2010-03-22 04:24:25 +00:00
|
|
|
compile-targets: $(TARGETS)
|
2020-01-01 20:13:13 +00:00
|
|
|
endif
|
2010-03-22 04:24:25 +00:00
|
|
|
|
|
|
|
# Compile all the Elisp files that need it. Beware: it approximates
|
2015-09-16 23:09:09 +00:00
|
|
|
# 'no-byte-compile', so watch out for false-positives!
|
2017-04-14 00:12:02 +00:00
|
|
|
compile-main: gen-lisp compile-clean
|
2019-06-26 14:24:59 +00:00
|
|
|
@(cd $(lisp) && \
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
els=`echo "${SUBDIRS_REL} " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \
|
2018-12-10 15:06:34 +00:00
|
|
|
for el in ${MAIN_FIRST} $$els; do \
|
|
|
|
test -f $$el || continue; \
|
|
|
|
test ! -f $${el}c && \
|
|
|
|
GREP_OPTIONS= grep '^;.*[^a-zA-Z]no-byte-compile: *t' $$el > /dev/null && \
|
|
|
|
continue; \
|
|
|
|
echo "$${el}c"; \
|
2020-03-21 14:11:41 +00:00
|
|
|
done | xargs $(XARGS_LIMIT) echo) | \
|
|
|
|
while read chunk; do \
|
|
|
|
$(MAKE) compile-targets \
|
2020-09-11 08:51:39 +00:00
|
|
|
NATIVE_DISABLED=$(NATIVE_SKIP_NONDUMP) \
|
2020-03-21 14:11:41 +00:00
|
|
|
TARGETS="$$chunk"; \
|
2010-03-22 04:24:25 +00:00
|
|
|
done
|
2008-05-21 03:51:58 +00:00
|
|
|
|
2010-03-22 13:33:21 +00:00
|
|
|
.PHONY: compile-clean
|
|
|
|
# Erase left-over .elc files that do not have a corresponding .el file.
|
|
|
|
compile-clean:
|
* lisp/Makefile.in: Replace shell fragments in variables with $(shell).
(SUBDIRS_REL, SUBDIRS_ABS, SUBDIRS_ALMOST, SUBDIRS_FINDER)
(SUBDIRS_SUBDIRS): New variables.
(setwins, setwins_almost, setwins_finder, setwins_for_subdirs):
Remove.
($(lisp)/cus-load.el, $(lisp)/finder-inf.el, $(lisp)/loaddefs.el)
(update-subdirs, compile-main, compile-clean):
Replace "setwins" usage with new "SUBDIRS" variables.
2015-06-05 01:02:26 +00:00
|
|
|
@cd $(lisp) && \
|
|
|
|
elcs=`echo "${SUBDIRS_REL} " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.elc |g'`; \
|
2010-10-13 03:23:47 +00:00
|
|
|
for el in `echo $$elcs | sed -e 's/\.elc/\.el/g'`; do \
|
2015-02-09 00:00:17 +00:00
|
|
|
if test -f "$$el" || test ! -f "$${el}c"; then :; else \
|
2010-03-22 13:33:21 +00:00
|
|
|
echo rm "$${el}c"; \
|
|
|
|
rm "$${el}c"; \
|
2020-01-02 21:02:20 +00:00
|
|
|
fi; \
|
2010-03-22 13:33:21 +00:00
|
|
|
done
|
|
|
|
|
2017-04-14 00:12:02 +00:00
|
|
|
.PHONY: gen-lisp leim semantic
|
|
|
|
|
2017-04-26 18:12:56 +00:00
|
|
|
## make -C ../admin/unidata all should be here, but that would race
|
|
|
|
## with ../src. See comments above for loaddefs.
|
2017-04-14 00:12:02 +00:00
|
|
|
gen-lisp: leim semantic
|
|
|
|
|
2019-03-01 20:57:40 +00:00
|
|
|
# (re)compile titdic-cnv before recursing into `leim` since its used to
|
|
|
|
# generate some of the Quail source files from tables.
|
|
|
|
leim: $(lisp)/international/titdic-cnv.elc
|
2014-06-15 00:34:22 +00:00
|
|
|
$(MAKE) -C ../leim all EMACS="$(EMACS)"
|
Move runtime leim lisp files to lisp/leim directory
This allows us to reuse much of the lisp build and installation machinery,
rather than duplicating it.
* Makefile.in (abs_builddir, leimdir): Remove.
(buildlisppath, SUBDIR, COPYDIR, COPYDESTS): No more leim directory.
(epaths-force-w32): No longer set BLD.
(leim): Remove.
(install-arch-indep): No longer run or install leim.
(mostlyclean, clean): No longer run leim rule.
(bootstrap-clean): Change leim target.
(maintainer-clean): Add leim.
(check-declare): Remove leim.
* README: Update for leim changes.
* configure.ac (leimdir): Remove.
(standardlisppath): No more leimdir.
* make-dist: Update for files from leim/ now being in lisp/leim/.
* doc/lispref/loading.texi (Library Search):
* doc/lispref/os.texi (Startup Summary): No more leim directory.
* leim/Makefile.in (leimdir): New variable.
(TIT_GB, TIT_BIG5, MISC, changed.tit, changed.misc)
(${leimdir}/leim-list.el, ${leimdir}/ja-dic/ja-dic.el):
Generate in $leimdir.
(all): Remove compilation, add ja-dic.
(leim-list.el): Now PHONY.
(setwins, compile-targets, compile-main, clean, mostlyclean)
(extraclean): Remove.
(bootstrap-clean): Delete all generated files.
* leim/README: Update for moved leim/ directory.
* leim/leim-ext.el (ucs-input-activate, hangul-input-method-activate):
Remove manual autoloads; now in loaddefs.el.
Disable byte-compile, version-control, autoloads in the output.
* lisp/Makefile.in (setwins_for_subdirs): Skip leim/ directory.
(compile-main): Depend on lisp/leim rule.
(leim): New rule.
* lisp/loadup.el: Move leim-list.el to leim/ subdirectory.
* lisp/startup.el (normal-top-level): No more leim directory.
* lisp/international/ja-dic-cnv.el (skkdic-convert):
Disable version-control and autoloads in output files.
* lisp/international/titdic-cnv.el (titdic-convert, miscdic-convert):
Disable version-control and autoloads in output files.
* lisp/leim/quail: Move here from ../leim.
* lisp/leim/quail/hangul.el (hangul-input-method-activate):
Add autoload cookie.
(generated-autoload-load-name): Set file-local value.
* lisp/leim/quail/uni-input.el (ucs-input-activate): Add autoload cookie.
(generated-autoload-load-name): Set file-local value.
* nt/README.W32:
* nt/addpm.c (env_vars):
* nt/epaths.nt (PATH_LOADSEARCH, PATH_DUMPLOADSEARCH):
* nt/paths.h (PATH_LOADSEARCH): No more leim directory.
* src/Makefile.in (leimdir): Now in lisp source directory.
($(leimdir)/leim-list.el): Just use ../leim .
* src/epaths.in (PATH_DUMPLOADSEARCH):
* src/lread.c (load_path_default):
* src/nsterm.m (ns_load_path): No more leim directory.
* .bzrignore: Update for relocated leim files.
2013-11-27 06:15:06 +00:00
|
|
|
|
Stop keeping (all but one) generated cedet grammar files in the repository
* configure.ac (SUBDIR_MAKEFILES, AC_CONFIG_FILES):
Add admin/grammars Makefile.
* Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Also clean admin/grammars, if present.
* admin/grammars/README: Remove.
* admin/grammars/Makefile.in: New file.
* admin/grammars/c.by, admin/grammars/java-tags.wy, admin/grammars/js.wy:
* admin/grammars/python.wy: Update declarations to match generated outputs.
* lisp/Makefile.in (semantic): New.
(compile-main): Depend on semantic.
* lisp/cedet/semantic/bovine/grammar.el (bovine--make-parser-1):
New function, split from bovine-make-parsers.
(bovine-make-parsers): Use bovine--make-parser-1.
(bovine-batch-make-parser): New function.
* lisp/cedet/semantic/wisent/grammar.el (wisent--make-parser-1):
New function, split from wisent-make-parsers.
(wisent-make-parsers): Use wisent--make-parser-1.
(wisent-batch-make-parser): New function.
* lisp/cedet/semantic/db.el (semanticdb-save-all-db):
Avoid prompting in batch mode.
* lisp/cedet/semantic/grammar.el (semantic-grammar-footer-template):
Disable version-control and autoloads in the output.
(semantic-grammar-create-package):
Add option to return nil if output is up-to-date.
* lisp/cedet/semantic/bovine/c-by.el, lisp/cedet/semantic/bovine/make-by.el:
* lisp/cedet/semantic/bovine/scm-by.el, lisp/cedet/semantic/wisent/javat-wy.el:
* lisp/cedet/semantic/wisent/js-wy.el, lisp/cedet/semantic/wisent/python-wy.el:
* lisp/cedet/srecode/srt-wy.el: Remove generated files from repository.
* .bzrignore: Update for this.
2013-11-30 02:06:34 +00:00
|
|
|
semantic:
|
2014-12-31 00:00:03 +00:00
|
|
|
$(MAKE) -C ../admin/grammars all EMACS="$(EMACS:.%=../.%)"
|
Stop keeping (all but one) generated cedet grammar files in the repository
* configure.ac (SUBDIR_MAKEFILES, AC_CONFIG_FILES):
Add admin/grammars Makefile.
* Makefile.in (distclean, bootstrap-clean, maintainer-clean):
Also clean admin/grammars, if present.
* admin/grammars/README: Remove.
* admin/grammars/Makefile.in: New file.
* admin/grammars/c.by, admin/grammars/java-tags.wy, admin/grammars/js.wy:
* admin/grammars/python.wy: Update declarations to match generated outputs.
* lisp/Makefile.in (semantic): New.
(compile-main): Depend on semantic.
* lisp/cedet/semantic/bovine/grammar.el (bovine--make-parser-1):
New function, split from bovine-make-parsers.
(bovine-make-parsers): Use bovine--make-parser-1.
(bovine-batch-make-parser): New function.
* lisp/cedet/semantic/wisent/grammar.el (wisent--make-parser-1):
New function, split from wisent-make-parsers.
(wisent-make-parsers): Use wisent--make-parser-1.
(wisent-batch-make-parser): New function.
* lisp/cedet/semantic/db.el (semanticdb-save-all-db):
Avoid prompting in batch mode.
* lisp/cedet/semantic/grammar.el (semantic-grammar-footer-template):
Disable version-control and autoloads in the output.
(semantic-grammar-create-package):
Add option to return nil if output is up-to-date.
* lisp/cedet/semantic/bovine/c-by.el, lisp/cedet/semantic/bovine/make-by.el:
* lisp/cedet/semantic/bovine/scm-by.el, lisp/cedet/semantic/wisent/javat-wy.el:
* lisp/cedet/semantic/wisent/js-wy.el, lisp/cedet/semantic/wisent/python-wy.el:
* lisp/cedet/srecode/srt-wy.el: Remove generated files from repository.
* .bzrignore: Update for this.
2013-11-30 02:06:34 +00:00
|
|
|
|
2008-05-21 03:51:58 +00:00
|
|
|
# Compile all Lisp files, but don't recompile those that are up to
|
|
|
|
# date. Some .el files don't get compiled because they set the
|
|
|
|
# local variable no-byte-compile.
|
|
|
|
# Calling make recursively because suffix rule cannot have prerequisites.
|
2009-12-14 23:22:54 +00:00
|
|
|
compile: $(LOADDEFS) autoloads compile-first
|
2014-06-28 01:16:23 +00:00
|
|
|
$(MAKE) compile-main
|
2008-06-05 02:36:11 +00:00
|
|
|
|
2015-09-16 23:09:09 +00:00
|
|
|
# Compile all Lisp files. This is like 'compile' but compiles files
|
2005-04-13 09:41:46 +00:00
|
|
|
# unconditionally. Some files don't actually get compiled because they
|
|
|
|
# set the local variable no-byte-compile.
|
2020-08-14 07:05:31 +00:00
|
|
|
compile-always:
|
2017-03-31 02:26:58 +00:00
|
|
|
find $(lisp) -name '*.elc' $(FIND_DELETE)
|
2014-06-28 01:16:23 +00:00
|
|
|
$(MAKE) compile
|
2005-04-13 09:41:46 +00:00
|
|
|
|
2013-10-30 06:21:46 +00:00
|
|
|
.PHONY: backup-compiled-files compile-after-backup
|
2009-12-14 23:22:54 +00:00
|
|
|
|
1999-10-23 13:22:02 +00:00
|
|
|
# Backup compiled Lisp files in elc.tar.gz. If that file already
|
|
|
|
# exists, make a backup of it.
|
|
|
|
|
|
|
|
backup-compiled-files:
|
2000-06-14 20:26:14 +00:00
|
|
|
-mv $(lisp)/elc.tar.gz $(lisp)/elc.tar.gz~
|
2009-09-29 02:17:00 +00:00
|
|
|
-tar czf $(lisp)/elc.tar.gz $(lisp)/*.elc $(lisp)/*/*.elc $(lisp)/*/*/*.elc $(lisp)/*/*/*/*.elc
|
1999-10-23 13:22:02 +00:00
|
|
|
|
|
|
|
# Compile Lisp files, but save old compiled files first.
|
|
|
|
|
2002-02-01 04:13:14 +00:00
|
|
|
compile-after-backup: backup-compiled-files compile-always
|
1999-10-23 13:22:02 +00:00
|
|
|
|
2012-07-06 07:08:10 +00:00
|
|
|
# This does the same job as the "compile" rule, but in a different way.
|
|
|
|
# Rather than spawning a separate Emacs instance to compile each file,
|
|
|
|
# it uses the same Emacs instance to compile everything.
|
|
|
|
# This is faster on a single core, since it avoids the overhead of
|
|
|
|
# starting Emacs many times (it was 33% faster on a test with a
|
|
|
|
# random 10% of the .el files needing recompilation).
|
|
|
|
# Unlike compile, this is not parallelizable; so if you have more than
|
2012-07-06 07:45:23 +00:00
|
|
|
# one core and use make -j#, compile will be (much) faster.
|
2012-07-06 07:08:10 +00:00
|
|
|
# This rule also produces less accurate compilation warnings.
|
|
|
|
# The environment of later files is affected by definitions in
|
|
|
|
# earlier ones, so it does not produce some warnings that it should.
|
|
|
|
# It can also produces spurious warnings about "invalid byte code" if
|
|
|
|
# files that use byte-compile-dynamic are updated.
|
|
|
|
# There is no reason to use this rule unless you only have a single
|
|
|
|
# core and CPU time is an issue.
|
2012-07-30 16:20:35 +00:00
|
|
|
.PHONY: compile-one-process
|
CC-mode: Set open-paren-in-column-0-is-defun-start to nil;
plus misc cleanup.
* lisp/progmodes/cc-mode.el (c-basic-common-init):
Set open-paren-in-column-0-is-defun-start.
(adaptive-fill-first-line-regexp, font-lock-syntactic-keywords):
Remove declarations, unused.
(run-mode-hooks): Remove declaration.
(font-lock-defaults): Use plain `defvar' to declare.
(c-run-mode-hooks): Test existence of run-mode-hooks with fboundp.
* lisp/progmodes/cc-langs.el (c-filter-ops): Avoid `setq'.
(c-make-mode-syntax-table): Don't micro-optimize.
(c-keywords, c-keyword-member-alist): Simplify.
(c-kwds-lang-consts): Don't eval at compile-time.
(c-primary-expr-regexp): Comment out unused vars.
* lisp/progmodes/cc-fonts.el (c-font-lock-context): Declare at top-level.
(c-font-byte-compile): New var.
(c--compile): New function. Use it instead of `byte-compile'.
(c-cpp-matchers): Quote the value returned by
`c-make-syntactic-matcher' in case it's not self-evaluating.
(c-basic-matchers-before): Avoid a plain MATCHER as keyword, wrap it in
parentheses instead (in case MATCHER happens to be a list).
(c-font-lock-enum-tail): Remove unused var `start'.
(c-font-lock-objc-methods): Silence byte-compiler warnings.
* lisp/progmodes/cc-engine.el (c-syntactic-re-search-forward): Sink an `if'
test into an argument.
* lisp/progmodes/cc-defs.el (c-point, c-major-mode-is, c-put-char-property)
(c-get-char-property): Don't use `eval' just to unquote a constant.
(c-use-extents): Remove. Use (featurep 'xemacs), compiled
more efficiently.
(c-put-char-property-fun): Don't call `byte-compile' by hand.
(c-clear-char-property, c-clear-char-properties): Check that `property'
is a quoted constant.
(c-emacs-features): Remove `infodock', `syntax-properties', and
`pps-extended-state' (never used), `8-bit' and `1-bit' (use (featurep
'xemacs) instead). Use `with-temp-buffer' and let-bind vars after
changing buffer, so we don't have to setq them again afterwards.
(c-lang-const): Remove redundant symbolp assertions.
(c-find-assignment-for-mode): Use `or'.
* lisp/Makefile.in (compile-one-process): Remove cc-mode dependency.
2014-09-10 16:32:36 +00:00
|
|
|
compile-one-process: $(LOADDEFS) compile-first
|
Try and fix w32 build; misc cleanup.
* lisp/subr.el (apply-partially): Move from subr.el; don't use lexical-let.
(eval-after-load): Obey lexical-binding.
* lisp/simple.el (apply-partially): Move to subr.el.
* lisp/makefile.w32-in: Match changes in Makefile.in.
(BIG_STACK_DEPTH, BIG_STACK_OPTS, BYTE_COMPILE_FLAGS): New vars.
(.el.elc, compile-CMD, compile-SH, compile-always-CMD)
(compile-always-SH, compile-calc-CMD, compile-calc-SH): Use them.
(COMPILE_FIRST): Add pcase, macroexp, and cconv.
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Silence warning about
calling CL's `compiler-macroexpand'.
* lisp/emacs-lisp/bytecomp.el (byte-compile-preprocess): New function.
(byte-compile-initial-macro-environment)
(byte-compile-toplevel-file-form, byte-compile, byte-compile-sexp): Use it.
(byte-compile-eval, byte-compile-eval-before-compile): Obey lexical-binding.
(byte-compile--for-effect): Rename from `for-effect'.
(display-call-tree): Use case.
* lisp/emacs-lisp/byte-opt.el (for-effect): Don't declare as dynamic.
(byte-optimize-form-code-walker, byte-optimize-form):
Revert to old arg name.
* lisp/Makefile.in (BYTE_COMPILE_FLAGS): New var.
(compile-onefile, .el.elc, compile-calc, recompile): Use it.
2011-03-12 03:32:43 +00:00
|
|
|
$(emacs) $(BYTE_COMPILE_FLAGS) \
|
|
|
|
--eval "(batch-byte-recompile-directory 0)" $(lisp)
|
1999-10-07 23:29:39 +00:00
|
|
|
|
2005-10-07 04:58:02 +00:00
|
|
|
# Update MH-E internal autoloads. These are not to be confused with
|
2008-03-13 06:05:25 +00:00
|
|
|
# the autoloads for the MH-E entry points, which are already in loaddefs.el.
|
2008-04-10 03:40:06 +00:00
|
|
|
MH_E_DIR = $(lisp)/mh-e
|
2015-06-30 19:23:07 +00:00
|
|
|
MH_E_SRC = $(sort $(wildcard ${MH_E_DIR}/mh*.el))
|
|
|
|
MH_E_SRC := $(filter-out ${MH_E_DIR}/mh-loaddefs.el,${MH_E_SRC})
|
2008-04-10 03:40:06 +00:00
|
|
|
|
2012-07-30 16:20:35 +00:00
|
|
|
.PHONY: mh-autoloads
|
2008-04-10 03:40:06 +00:00
|
|
|
mh-autoloads: $(MH_E_DIR)/mh-loaddefs.el
|
2008-06-21 01:38:39 +00:00
|
|
|
$(MH_E_DIR)/mh-loaddefs.el: $(MH_E_SRC)
|
2015-01-04 02:50:41 +00:00
|
|
|
$(AM_V_GEN)$(emacs) -l autoload \
|
2006-07-17 21:22:50 +00:00
|
|
|
--eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \
|
2013-10-24 16:28:05 +00:00
|
|
|
--eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
|
2008-04-10 03:40:06 +00:00
|
|
|
-f batch-update-autoloads $(MH_E_DIR)
|
|
|
|
|
2011-02-13 12:25:45 +00:00
|
|
|
# Update TRAMP internal autoloads. Maybe we could move tramp*.el into
|
Migrate to Tramp 2.2. Rearrange load dependencies.
(Bug#1529, Bug#5448, Bug#5705)
* Makefile.in (TRAMP_DIR, TRAMP_SRC): New variables.
($(TRAMP_DIR)/tramp-loaddefs.el): New target.
(LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
* net/tramp.el (top): Remove all other tramp-* loads except
tramp-compat.el. Remove all changes to tramp-unload-hook for
other tramp-* packages. Rearrange defun order. Change calls of
`tramp-compat-call-process', `tramp-compat-decimal-to-octal',
`tramp-compat-octal-to-decimal' to new function names.
(tramp-terminal-type, tramp-initial-end-of-output)
(tramp-methods, tramp-foreign-file-name-handler-alist)
(tramp-tramp-file-p, tramp-completion-mode-p)
(tramp-send-command-and-check, tramp-get-remote-path)
(tramp-get-remote-tmpdir, tramp-get-remote-ln)
(tramp-shell-quote-argument): Set tramp-autoload cookie.
(with-file-property, with-connection-property): Move to
tramp-cache.el.
(tramp-local-call-process, tramp-decimal-to-octal)
(tramp-octal-to-decimal): Move to tramp-compat.el.
(tramp-handle-shell-command): Do not require 'shell.
(tramp-compute-multi-hops): No special handling for tramp-gw-*
symbols.
(tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
* net/tramp-cache.el (top): Require 'tramp. Add to
`tramp-unload-hook'.
(tramp-cache-data, tramp-get-file-property)
(tramp-set-file-property, tramp-flush-file-property)
(tramp-flush-directory-property, tramp-get-connection-property)
(tramp-set-connection-property, tramp-flush-connection-property)
(tramp-cache-print, tramp-list-connections): Set tramp-autoload
cookie.
(with-file-property, with-connection-property): New defuns, moved
from tramp.el.
(tramp-flush-file-function): Use `with-parsed-tramp-file-name'
macro.
* net/tramp-cmds.el (top): Add to `tramp-unload-hook'.
(tramp-version): Set tramp-autoload cookie.
* net/tramp-compat.el (top): Require 'tramp-loaddefs. Remove all
changes to tramp-unload-hook for other tramp-* packages. Add to
`tramp-unload-hook'.
(tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
(tramp-compat-call-process): New defuns, moved from tramp.el.
* net/tramp-fish.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change call of
`tramp-compat-decimal-to-octal' to new function name.
(tramp-fish-method): Make it a defconst.
(tramp-fish-file-name-p): Make it a defsubst.
(tramp-fish-method, tramp-fish-file-name-handler)
(tramp-fish-file-name-p): Set tramp-autoload cookie.
* net/tramp-ftp.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-ftp-method): Make it a defconst.
(tramp-ftp-file-name-p): Make it a defsubst.
(tramp-ftp-method, tramp-ftp-file-name-handler)
(tramp-ftp-file-name-p): Set tramp-autoload cookie.
* net/tramp-gvfs.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-gvfs-file-name-p): Make it a defsubst.
(tramp-gvfs-methods, tramp-gvfs-file-name-handler)
(tramp-gvfs-file-name-p): Set tramp-autoload cookie.
(tramp-gvfs-handle-file-directory-p): New defun.
(tramp-gvfs-file-name-handler-alist): Use it.
* net/tramp-gw.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
(tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
defconst.
(tramp-gw-tunnel-method, tramp-gw-socks-method)
(tramp-gw-open-connection): Set tramp-autoload cookie.
* net/tramp-imap.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-imap-file-name-p): Make it a defsubst.
(tramp-imap-method, tramp-imaps-method)
(tramp-imap-file-name-handler)
(tramp-imap-file-name-p): Set tramp-autoload cookie.
* net/tramp-smb.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded. Change call of `tramp-compat-decimal-to-octal' to new
function name.
(tramp-smb-tunnel-method): Make it a defconst.
(tramp-smb-file-name-p): Make it a defsubst.
(tramp-smb-method, tramp-smb-file-name-handler)
(tramp-smb-file-name-p): Set tramp-autoload cookie.
* net/tramp-uu.el (top) Add to `tramp-unload-hook'.
(tramp-uuencode-region): Set tramp-autoload cookie.
* net/trampver.el (top) Add to `tramp-unload-hook'.
(tramp-version, tramp-bug-report-address): Set tramp-autoload
cookie. Update release number.
2010-09-08 14:42:54 +00:00
|
|
|
# an own subdirectory. OTOH, it does not hurt to keep them in
|
|
|
|
# lisp/net.
|
|
|
|
TRAMP_DIR = $(lisp)/net
|
2015-06-30 19:23:07 +00:00
|
|
|
TRAMP_SRC = $(sort $(wildcard ${TRAMP_DIR}/tramp*.el))
|
|
|
|
TRAMP_SRC := $(filter-out ${TRAMP_DIR}/tramp-loaddefs.el,${TRAMP_SRC})
|
Migrate to Tramp 2.2. Rearrange load dependencies.
(Bug#1529, Bug#5448, Bug#5705)
* Makefile.in (TRAMP_DIR, TRAMP_SRC): New variables.
($(TRAMP_DIR)/tramp-loaddefs.el): New target.
(LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
* net/tramp.el (top): Remove all other tramp-* loads except
tramp-compat.el. Remove all changes to tramp-unload-hook for
other tramp-* packages. Rearrange defun order. Change calls of
`tramp-compat-call-process', `tramp-compat-decimal-to-octal',
`tramp-compat-octal-to-decimal' to new function names.
(tramp-terminal-type, tramp-initial-end-of-output)
(tramp-methods, tramp-foreign-file-name-handler-alist)
(tramp-tramp-file-p, tramp-completion-mode-p)
(tramp-send-command-and-check, tramp-get-remote-path)
(tramp-get-remote-tmpdir, tramp-get-remote-ln)
(tramp-shell-quote-argument): Set tramp-autoload cookie.
(with-file-property, with-connection-property): Move to
tramp-cache.el.
(tramp-local-call-process, tramp-decimal-to-octal)
(tramp-octal-to-decimal): Move to tramp-compat.el.
(tramp-handle-shell-command): Do not require 'shell.
(tramp-compute-multi-hops): No special handling for tramp-gw-*
symbols.
(tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
* net/tramp-cache.el (top): Require 'tramp. Add to
`tramp-unload-hook'.
(tramp-cache-data, tramp-get-file-property)
(tramp-set-file-property, tramp-flush-file-property)
(tramp-flush-directory-property, tramp-get-connection-property)
(tramp-set-connection-property, tramp-flush-connection-property)
(tramp-cache-print, tramp-list-connections): Set tramp-autoload
cookie.
(with-file-property, with-connection-property): New defuns, moved
from tramp.el.
(tramp-flush-file-function): Use `with-parsed-tramp-file-name'
macro.
* net/tramp-cmds.el (top): Add to `tramp-unload-hook'.
(tramp-version): Set tramp-autoload cookie.
* net/tramp-compat.el (top): Require 'tramp-loaddefs. Remove all
changes to tramp-unload-hook for other tramp-* packages. Add to
`tramp-unload-hook'.
(tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
(tramp-compat-call-process): New defuns, moved from tramp.el.
* net/tramp-fish.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change call of
`tramp-compat-decimal-to-octal' to new function name.
(tramp-fish-method): Make it a defconst.
(tramp-fish-file-name-p): Make it a defsubst.
(tramp-fish-method, tramp-fish-file-name-handler)
(tramp-fish-file-name-p): Set tramp-autoload cookie.
* net/tramp-ftp.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-ftp-method): Make it a defconst.
(tramp-ftp-file-name-p): Make it a defsubst.
(tramp-ftp-method, tramp-ftp-file-name-handler)
(tramp-ftp-file-name-p): Set tramp-autoload cookie.
* net/tramp-gvfs.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-gvfs-file-name-p): Make it a defsubst.
(tramp-gvfs-methods, tramp-gvfs-file-name-handler)
(tramp-gvfs-file-name-p): Set tramp-autoload cookie.
(tramp-gvfs-handle-file-directory-p): New defun.
(tramp-gvfs-file-name-handler-alist): Use it.
* net/tramp-gw.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
(tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
defconst.
(tramp-gw-tunnel-method, tramp-gw-socks-method)
(tramp-gw-open-connection): Set tramp-autoload cookie.
* net/tramp-imap.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-imap-file-name-p): Make it a defsubst.
(tramp-imap-method, tramp-imaps-method)
(tramp-imap-file-name-handler)
(tramp-imap-file-name-p): Set tramp-autoload cookie.
* net/tramp-smb.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded. Change call of `tramp-compat-decimal-to-octal' to new
function name.
(tramp-smb-tunnel-method): Make it a defconst.
(tramp-smb-file-name-p): Make it a defsubst.
(tramp-smb-method, tramp-smb-file-name-handler)
(tramp-smb-file-name-p): Set tramp-autoload cookie.
* net/tramp-uu.el (top) Add to `tramp-unload-hook'.
(tramp-uuencode-region): Set tramp-autoload cookie.
* net/trampver.el (top) Add to `tramp-unload-hook'.
(tramp-version, tramp-bug-report-address): Set tramp-autoload
cookie. Update release number.
2010-09-08 14:42:54 +00:00
|
|
|
|
|
|
|
$(TRAMP_DIR)/tramp-loaddefs.el: $(TRAMP_SRC)
|
2015-01-04 02:50:41 +00:00
|
|
|
$(AM_V_GEN)$(emacs) -l autoload \
|
Migrate to Tramp 2.2. Rearrange load dependencies.
(Bug#1529, Bug#5448, Bug#5705)
* Makefile.in (TRAMP_DIR, TRAMP_SRC): New variables.
($(TRAMP_DIR)/tramp-loaddefs.el): New target.
(LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
* net/tramp.el (top): Remove all other tramp-* loads except
tramp-compat.el. Remove all changes to tramp-unload-hook for
other tramp-* packages. Rearrange defun order. Change calls of
`tramp-compat-call-process', `tramp-compat-decimal-to-octal',
`tramp-compat-octal-to-decimal' to new function names.
(tramp-terminal-type, tramp-initial-end-of-output)
(tramp-methods, tramp-foreign-file-name-handler-alist)
(tramp-tramp-file-p, tramp-completion-mode-p)
(tramp-send-command-and-check, tramp-get-remote-path)
(tramp-get-remote-tmpdir, tramp-get-remote-ln)
(tramp-shell-quote-argument): Set tramp-autoload cookie.
(with-file-property, with-connection-property): Move to
tramp-cache.el.
(tramp-local-call-process, tramp-decimal-to-octal)
(tramp-octal-to-decimal): Move to tramp-compat.el.
(tramp-handle-shell-command): Do not require 'shell.
(tramp-compute-multi-hops): No special handling for tramp-gw-*
symbols.
(tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
* net/tramp-cache.el (top): Require 'tramp. Add to
`tramp-unload-hook'.
(tramp-cache-data, tramp-get-file-property)
(tramp-set-file-property, tramp-flush-file-property)
(tramp-flush-directory-property, tramp-get-connection-property)
(tramp-set-connection-property, tramp-flush-connection-property)
(tramp-cache-print, tramp-list-connections): Set tramp-autoload
cookie.
(with-file-property, with-connection-property): New defuns, moved
from tramp.el.
(tramp-flush-file-function): Use `with-parsed-tramp-file-name'
macro.
* net/tramp-cmds.el (top): Add to `tramp-unload-hook'.
(tramp-version): Set tramp-autoload cookie.
* net/tramp-compat.el (top): Require 'tramp-loaddefs. Remove all
changes to tramp-unload-hook for other tramp-* packages. Add to
`tramp-unload-hook'.
(tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
(tramp-compat-call-process): New defuns, moved from tramp.el.
* net/tramp-fish.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change call of
`tramp-compat-decimal-to-octal' to new function name.
(tramp-fish-method): Make it a defconst.
(tramp-fish-file-name-p): Make it a defsubst.
(tramp-fish-method, tramp-fish-file-name-handler)
(tramp-fish-file-name-p): Set tramp-autoload cookie.
* net/tramp-ftp.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-ftp-method): Make it a defconst.
(tramp-ftp-file-name-p): Make it a defsubst.
(tramp-ftp-method, tramp-ftp-file-name-handler)
(tramp-ftp-file-name-p): Set tramp-autoload cookie.
* net/tramp-gvfs.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-gvfs-file-name-p): Make it a defsubst.
(tramp-gvfs-methods, tramp-gvfs-file-name-handler)
(tramp-gvfs-file-name-p): Set tramp-autoload cookie.
(tramp-gvfs-handle-file-directory-p): New defun.
(tramp-gvfs-file-name-handler-alist): Use it.
* net/tramp-gw.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
(tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
defconst.
(tramp-gw-tunnel-method, tramp-gw-socks-method)
(tramp-gw-open-connection): Set tramp-autoload cookie.
* net/tramp-imap.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-imap-file-name-p): Make it a defsubst.
(tramp-imap-method, tramp-imaps-method)
(tramp-imap-file-name-handler)
(tramp-imap-file-name-p): Set tramp-autoload cookie.
* net/tramp-smb.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded. Change call of `tramp-compat-decimal-to-octal' to new
function name.
(tramp-smb-tunnel-method): Make it a defconst.
(tramp-smb-file-name-p): Make it a defsubst.
(tramp-smb-method, tramp-smb-file-name-handler)
(tramp-smb-file-name-p): Set tramp-autoload cookie.
* net/tramp-uu.el (top) Add to `tramp-unload-hook'.
(tramp-uuencode-region): Set tramp-autoload cookie.
* net/trampver.el (top) Add to `tramp-unload-hook'.
(tramp-version, tramp-bug-report-address): Set tramp-autoload
cookie. Update release number.
2010-09-08 14:42:54 +00:00
|
|
|
--eval "(setq generate-autoload-cookie \";;;###tramp-autoload\")" \
|
2013-10-24 16:28:05 +00:00
|
|
|
--eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
|
Migrate to Tramp 2.2. Rearrange load dependencies.
(Bug#1529, Bug#5448, Bug#5705)
* Makefile.in (TRAMP_DIR, TRAMP_SRC): New variables.
($(TRAMP_DIR)/tramp-loaddefs.el): New target.
(LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
* net/tramp.el (top): Remove all other tramp-* loads except
tramp-compat.el. Remove all changes to tramp-unload-hook for
other tramp-* packages. Rearrange defun order. Change calls of
`tramp-compat-call-process', `tramp-compat-decimal-to-octal',
`tramp-compat-octal-to-decimal' to new function names.
(tramp-terminal-type, tramp-initial-end-of-output)
(tramp-methods, tramp-foreign-file-name-handler-alist)
(tramp-tramp-file-p, tramp-completion-mode-p)
(tramp-send-command-and-check, tramp-get-remote-path)
(tramp-get-remote-tmpdir, tramp-get-remote-ln)
(tramp-shell-quote-argument): Set tramp-autoload cookie.
(with-file-property, with-connection-property): Move to
tramp-cache.el.
(tramp-local-call-process, tramp-decimal-to-octal)
(tramp-octal-to-decimal): Move to tramp-compat.el.
(tramp-handle-shell-command): Do not require 'shell.
(tramp-compute-multi-hops): No special handling for tramp-gw-*
symbols.
(tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
* net/tramp-cache.el (top): Require 'tramp. Add to
`tramp-unload-hook'.
(tramp-cache-data, tramp-get-file-property)
(tramp-set-file-property, tramp-flush-file-property)
(tramp-flush-directory-property, tramp-get-connection-property)
(tramp-set-connection-property, tramp-flush-connection-property)
(tramp-cache-print, tramp-list-connections): Set tramp-autoload
cookie.
(with-file-property, with-connection-property): New defuns, moved
from tramp.el.
(tramp-flush-file-function): Use `with-parsed-tramp-file-name'
macro.
* net/tramp-cmds.el (top): Add to `tramp-unload-hook'.
(tramp-version): Set tramp-autoload cookie.
* net/tramp-compat.el (top): Require 'tramp-loaddefs. Remove all
changes to tramp-unload-hook for other tramp-* packages. Add to
`tramp-unload-hook'.
(tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
(tramp-compat-call-process): New defuns, moved from tramp.el.
* net/tramp-fish.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change call of
`tramp-compat-decimal-to-octal' to new function name.
(tramp-fish-method): Make it a defconst.
(tramp-fish-file-name-p): Make it a defsubst.
(tramp-fish-method, tramp-fish-file-name-handler)
(tramp-fish-file-name-p): Set tramp-autoload cookie.
* net/tramp-ftp.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-ftp-method): Make it a defconst.
(tramp-ftp-file-name-p): Make it a defsubst.
(tramp-ftp-method, tramp-ftp-file-name-handler)
(tramp-ftp-file-name-p): Set tramp-autoload cookie.
* net/tramp-gvfs.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-gvfs-file-name-p): Make it a defsubst.
(tramp-gvfs-methods, tramp-gvfs-file-name-handler)
(tramp-gvfs-file-name-p): Set tramp-autoload cookie.
(tramp-gvfs-handle-file-directory-p): New defun.
(tramp-gvfs-file-name-handler-alist): Use it.
* net/tramp-gw.el (top) Add objects to `tramp-methods' and
`tramp-foreign-file-name-handler-alist'. Add to
`tramp-unload-hook'.
(tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
(tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
defconst.
(tramp-gw-tunnel-method, tramp-gw-socks-method)
(tramp-gw-open-connection): Set tramp-autoload cookie.
* net/tramp-imap.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded.
(tramp-imap-file-name-p): Make it a defsubst.
(tramp-imap-method, tramp-imaps-method)
(tramp-imap-file-name-handler)
(tramp-imap-file-name-p): Set tramp-autoload cookie.
* net/tramp-smb.el (top) Require just 'tramp. Add objects to
`tramp-methods' and `tramp-foreign-file-name-handler-alist'. Add
to `tramp-unload-hook'. Change checks, whether package can be
loaded. Change call of `tramp-compat-decimal-to-octal' to new
function name.
(tramp-smb-tunnel-method): Make it a defconst.
(tramp-smb-file-name-p): Make it a defsubst.
(tramp-smb-method, tramp-smb-file-name-handler)
(tramp-smb-file-name-p): Set tramp-autoload cookie.
* net/tramp-uu.el (top) Add to `tramp-unload-hook'.
(tramp-uuencode-region): Set tramp-autoload cookie.
* net/trampver.el (top) Add to `tramp-unload-hook'.
(tramp-version, tramp-bug-report-address): Set tramp-autoload
cookie. Update release number.
2010-09-08 14:42:54 +00:00
|
|
|
-f batch-update-autoloads $(TRAMP_DIR)
|
|
|
|
|
2008-04-10 03:40:06 +00:00
|
|
|
CAL_DIR = $(lisp)/calendar
|
|
|
|
## Those files that may contain internal calendar autoload cookies.
|
2015-06-30 19:23:07 +00:00
|
|
|
CAL_SRC = $(addprefix ${CAL_DIR}/,diary-lib.el holidays.el lunar.el solar.el)
|
2016-01-06 22:40:00 +00:00
|
|
|
CAL_SRC := $(sort ${CAL_SRC} $(wildcard ${CAL_DIR}/cal-*.el))
|
2015-06-30 19:23:07 +00:00
|
|
|
CAL_SRC := $(filter-out ${CAL_DIR}/cal-loaddefs.el,${CAL_SRC})
|
2008-04-10 03:40:06 +00:00
|
|
|
|
2008-06-21 01:38:39 +00:00
|
|
|
$(CAL_DIR)/cal-loaddefs.el: $(CAL_SRC)
|
2015-01-04 02:50:41 +00:00
|
|
|
$(AM_V_GEN)$(emacs) -l autoload \
|
2008-03-13 06:05:25 +00:00
|
|
|
--eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \
|
2013-10-24 16:28:05 +00:00
|
|
|
--eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
|
2008-04-10 03:40:06 +00:00
|
|
|
-f batch-update-autoloads $(CAL_DIR)
|
2008-03-13 06:05:25 +00:00
|
|
|
|
2014-08-16 16:50:32 +00:00
|
|
|
$(CAL_DIR)/diary-loaddefs.el: $(CAL_SRC) $(CAL_DIR)/cal-loaddefs.el
|
2015-01-04 02:50:41 +00:00
|
|
|
$(AM_V_GEN)$(emacs) -l autoload \
|
2008-03-13 06:05:25 +00:00
|
|
|
--eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \
|
2013-10-24 16:28:05 +00:00
|
|
|
--eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
|
2008-04-10 03:40:06 +00:00
|
|
|
-f batch-update-autoloads $(CAL_DIR)
|
2008-03-13 06:05:25 +00:00
|
|
|
|
2014-08-16 16:50:32 +00:00
|
|
|
$(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC) $(CAL_DIR)/diary-loaddefs.el
|
2015-01-04 02:50:41 +00:00
|
|
|
$(AM_V_GEN)$(emacs) -l autoload \
|
2008-03-13 06:05:25 +00:00
|
|
|
--eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \
|
2013-10-24 16:28:05 +00:00
|
|
|
--eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
|
2008-04-10 03:40:06 +00:00
|
|
|
-f batch-update-autoloads $(CAL_DIR)
|
2008-03-13 06:05:25 +00:00
|
|
|
|
2021-05-10 01:14:12 +00:00
|
|
|
.PHONY: bootstrap-clean distclean maintainer-clean
|
2012-07-30 16:20:35 +00:00
|
|
|
|
2020-08-14 07:05:31 +00:00
|
|
|
bootstrap-clean:
|
2020-03-14 10:57:34 +00:00
|
|
|
find $(lisp) -name '*.elc' $(FIND_DELETE)
|
2017-05-12 01:22:13 +00:00
|
|
|
rm -f $(AUTOGENEL)
|
1999-10-23 13:22:02 +00:00
|
|
|
|
2008-06-23 03:11:56 +00:00
|
|
|
distclean:
|
2019-06-20 15:04:04 +00:00
|
|
|
-rm -f ./Makefile $(lisp)/loaddefs.el
|
2008-06-23 03:11:56 +00:00
|
|
|
|
|
|
|
maintainer-clean: distclean bootstrap-clean
|
2013-11-02 19:41:33 +00:00
|
|
|
rm -f TAGS
|
2000-06-16 18:55:45 +00:00
|
|
|
|
2007-11-17 03:49:02 +00:00
|
|
|
.PHONY: check-declare
|
|
|
|
|
|
|
|
check-declare:
|
2013-10-24 02:21:23 +00:00
|
|
|
$(emacs) -l check-declare --eval '(check-declare-directory "$(lisp)")'
|
2007-11-17 03:49:02 +00:00
|
|
|
|
2015-06-04 23:26:32 +00:00
|
|
|
## This finds a lot of duplicates between foo.el and obsolete/foo.el.
|
2014-12-08 20:02:26 +00:00
|
|
|
check-defun-dups:
|
|
|
|
sed -n -e '/^(defun /s/\(.\)(.*/\1/p' \
|
2017-05-30 16:27:33 +00:00
|
|
|
$$(find . -name '*.el' ! -name '.*' -print | \
|
2017-04-14 00:14:01 +00:00
|
|
|
grep -Ev '(loaddefs|ldefs-boot)\.el|obsolete') | sort | uniq -d
|
2014-12-08 20:02:26 +00:00
|
|
|
|
2008-09-26 10:11:39 +00:00
|
|
|
# Dependencies
|
|
|
|
|
2013-11-01 17:26:29 +00:00
|
|
|
## None of the following matters for bootstrap, which is the only way
|
|
|
|
## to ensure a correct compilation of all lisp files.
|
|
|
|
## Manually specifying dependencies of a handful of lisp files, (and
|
|
|
|
## ones that don't change very often at that) seems pretty pointless
|
|
|
|
## to me.
|
|
|
|
|
2017-09-13 22:52:52 +00:00
|
|
|
# https://debbugs.gnu.org/1004
|
2008-09-26 10:11:39 +00:00
|
|
|
# CC Mode uses a compile time macro system which causes a compile time
|
|
|
|
# dependency in cc-*.elc files on the macros in other cc-*.el and the
|
|
|
|
# version string in cc-defs.el.
|
2014-09-09 15:08:08 +00:00
|
|
|
$(lisp)/progmodes/cc-align.elc\
|
2008-09-26 10:11:39 +00:00
|
|
|
$(lisp)/progmodes/cc-cmds.elc $(lisp)/progmodes/cc-compat.elc\
|
|
|
|
$(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-fonts.elc\
|
|
|
|
$(lisp)/progmodes/cc-langs.elc $(lisp)/progmodes/cc-menus.elc\
|
|
|
|
$(lisp)/progmodes/cc-mode.elc $(lisp)/progmodes/cc-styles.elc\
|
2009-11-20 14:05:18 +00:00
|
|
|
$(lisp)/progmodes/cc-vars.elc: \
|
2008-09-26 10:11:39 +00:00
|
|
|
$(lisp)/progmodes/cc-bytecomp.elc $(lisp)/progmodes/cc-defs.elc
|
|
|
|
|
2014-06-25 23:51:10 +00:00
|
|
|
$(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-cmds.elc: \
|
2008-09-26 10:11:39 +00:00
|
|
|
$(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
|
|
|
|
|
|
|
|
$(lisp)/progmodes/cc-compat.elc: \
|
|
|
|
$(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-styles.elc \
|
|
|
|
$(lisp)/progmodes/cc-engine.elc
|
|
|
|
|
2014-06-25 23:51:10 +00:00
|
|
|
$(lisp)/progmodes/cc-defs.elc: $(lisp)/progmodes/cc-bytecomp.elc
|
2008-09-26 10:11:39 +00:00
|
|
|
|
|
|
|
$(lisp)/progmodes/cc-engine.elc: $(lisp)/progmodes/cc-langs.elc \
|
|
|
|
$(lisp)/progmodes/cc-vars.elc
|
|
|
|
|
|
|
|
$(lisp)/progmodes/cc-fonts.elc: $(lisp)/progmodes/cc-langs.elc \
|
2014-06-25 23:51:10 +00:00
|
|
|
$(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
|
2008-09-26 10:11:39 +00:00
|
|
|
|
2014-06-25 23:51:10 +00:00
|
|
|
$(lisp)/progmodes/cc-langs.elc: $(lisp)/progmodes/cc-vars.elc
|
2008-09-26 10:11:39 +00:00
|
|
|
|
|
|
|
$(lisp)/progmodes/cc-mode.elc: $(lisp)/progmodes/cc-langs.elc \
|
|
|
|
$(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
|
|
|
|
$(lisp)/progmodes/cc-styles.elc $(lisp)/progmodes/cc-cmds.elc \
|
|
|
|
$(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-menus.elc
|
|
|
|
|
|
|
|
$(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \
|
|
|
|
$(lisp)/progmodes/cc-align.elc
|
|
|
|
|
2020-10-16 16:25:19 +00:00
|
|
|
# https://debbugs.gnu.org/43037
|
|
|
|
# js.elc (like all modes using CC Mode's compile time macros) needs to
|
|
|
|
# be compiled under the same version of CC Mode it will run with.
|
|
|
|
$(lisp)/progmodes/js.elc: $(lisp)/progmodes/cc-defs.elc \
|
|
|
|
$(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-mode.elc
|
|
|
|
|
1999-10-07 23:29:39 +00:00
|
|
|
# Makefile ends here.
|