Improve `switch-to-buffer' in strongly dedicated windows (Bug#20472)
[emacs.git] / lisp / Makefile.in
blob22d5ddcf12f331b9dc6c8d3057bdc313919e9347
1 ### @configure_input@
3 # Copyright (C) 2000-2015 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
7 # GNU Emacs is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20 SHELL = @SHELL@
22 srcdir = @srcdir@
23 top_srcdir = @top_srcdir@
24 lisp = $(srcdir)
25 VPATH = $(srcdir)
27 # Empty for all systems except MinGW, where xargs needs an explicit
28 # limitation.
29 XARGS_LIMIT = @XARGS_LIMIT@
31 # 'make' verbosity.
32 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
34 AM_V_ELC = $(am__v_ELC_@AM_V@)
35 am__v_ELC_ = $(am__v_ELC_@AM_DEFAULT_V@)
36 am__v_ELC_0 = @echo " ELC " $@;
37 am__v_ELC_1 =
39 AM_V_GEN = $(am__v_GEN_@AM_V@)
40 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
41 am__v_GEN_0 = @echo " GEN " $@;
42 am__v_GEN_1 =
44 # You can specify a different executable on the make command line,
45 # e.g. "make EMACS=../src/emacs ...".
47 # We never change directory before running Emacs, so a relative file
48 # name is fine, and makes life easier. If we need to change
49 # directory, we can use emacs --chdir.
50 EMACS = ../src/emacs${EXEEXT}
52 # Command line flags for Emacs.
54 EMACSOPT = -batch --no-site-file --no-site-lisp
56 # Extra flags to pass to the byte compiler
57 BYTE_COMPILE_EXTRA_FLAGS =
58 # For example to not display the undefined function warnings you can use this:
59 # BYTE_COMPILE_EXTRA_FLAGS = --eval '(setq byte-compile-warnings (quote (not unresolved)))'
60 # The example above is just for developers, it should not be used by default.
62 # Automatically generated autoload files, apart from lisp/loaddefs.el.
63 # Note this includes only those files that need special rules to
64 # build; ie it does not need to include things created via
65 # generated-autoload-file (eg calc/calc-loaddefs.el).
66 LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
67 $(lisp)/calendar/diary-loaddefs.el \
68 $(lisp)/calendar/hol-loaddefs.el \
69 $(lisp)/mh-e/mh-loaddefs.el \
70 $(lisp)/net/tramp-loaddefs.el
72 # Elisp files auto-generated.
73 AUTOGENEL = loaddefs.el \
74 $(LOADDEFS) \
75 cus-load.el \
76 finder-inf.el \
77 subdirs.el \
78 emacs-lisp/cl-loaddefs.el \
79 calc/calc-loaddefs.el \
80 eshell/esh-groups.el \
81 cedet/semantic/loaddefs.el \
82 cedet/ede/loaddefs.el \
83 cedet/srecode/loaddefs.el \
84 org/org-loaddefs.el
86 # Value of max-lisp-eval-depth when compiling initially.
87 # During bootstrapping the byte-compiler is run interpreted when compiling
88 # itself, and uses more stack than usual.
90 BIG_STACK_DEPTH = 2200
91 BIG_STACK_OPTS = --eval "(setq max-lisp-eval-depth $(BIG_STACK_DEPTH))"
93 # Set load-prefer-newer for the benefit of the non-bootstrappers.
94 BYTE_COMPILE_FLAGS = $(BIG_STACK_OPTS) \
95 --eval '(setq load-prefer-newer t)' $(BYTE_COMPILE_EXTRA_FLAGS)
97 # Files to compile before others during a bootstrap. This is done to
98 # speed up the bootstrap process. They're ordered by size, so we use
99 # the slowest-compiler on the smallest file and move to larger files as the
100 # compiler gets faster. `autoload.elc' comes last because it is not used by
101 # the compiler (so its compilation does not speed up subsequent compilations),
102 # it's only placed here so as to speed up generation of the loaddefs.el file.
104 COMPILE_FIRST = \
105 $(lisp)/emacs-lisp/macroexp.elc \
106 $(lisp)/emacs-lisp/cconv.elc \
107 $(lisp)/emacs-lisp/byte-opt.elc \
108 $(lisp)/emacs-lisp/bytecomp.elc \
109 $(lisp)/emacs-lisp/autoload.elc
111 # Prevent any settings in the user environment causing problems.
112 unexport EMACSDATA EMACSDOC EMACSPATH
114 # The actual Emacs command run in the targets below.
115 # Prevent any setting of EMACSLOADPATH in user environment causing problems.
116 emacs = EMACSLOADPATH= '$(EMACS)' $(EMACSOPT)
118 # Common command to find subdirectories
119 setwins=for file in `find . -type d -print`; do \
120 case $$file in */.* ) ;; \
121 *) wins="$$wins$${wins:+ }$$file" ;; \
122 esac; \
123 done
125 # Find all subdirectories except `obsolete' and `term'.
126 setwins_almost=for file in `find ${srcdir} -type d -print`; do \
127 case $$file in ${srcdir}*/obsolete | ${srcdir}*/term ) ;; \
128 *) wins="$$wins$${wins:+ }$$file" ;; \
129 esac; \
130 done
132 # Find all subdirectories except `obsolete', `term', and `leim' (and subdirs).
133 # We don't want the leim files listed as packages, especially
134 # since many share basenames with files in language/.
135 setwins_finder=for file in `find ${srcdir} -type d -print`; do \
136 case $$file in ${srcdir}*/obsolete | ${srcdir}*/term | ${srcdir}*/leim* ) ;; \
137 *) wins="$$wins$${wins:+ }$$file" ;; \
138 esac; \
139 done
141 # Find all subdirectories in which we might want to create subdirs.el.
142 setwins_for_subdirs=for file in `find ${srcdir} -type d -print`; do \
143 case $$file in \
144 ${srcdir}*/cedet* | ${srcdir}*/leim* ) ;; \
145 *) wins="$$wins$${wins:+ }$$file" ;; \
146 esac; \
147 done
149 # cus-load and finder-inf are not explicitly requested by anything, so
150 # we add them here to make sure they get built.
151 all: compile-main $(lisp)/cus-load.el $(lisp)/finder-inf.el
153 PHONY_EXTRAS =
154 .PHONY: all custom-deps finder-data autoloads update-subdirs $(PHONY_EXTRAS)
156 # custom-deps and finder-data both used to scan _all_ the *.el files.
157 # This could lead to problems in parallel builds if automatically
158 # generated *.el files (eg loaddefs etc) were being changed at the same time.
159 # One solution was to add autoloads as a prerequisite:
160 # http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-01/msg00469.html
161 # http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-12/msg00171.html
162 # However, this meant that running these targets modified loaddefs.el,
163 # every time (due to time-stamping). Calling these rules from
164 # bootstrap-after would modify loaddefs after src/emacs, resulting
165 # in make install remaking src/emacs for no real reason:
166 # http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg00311.html
167 # Nowadays these commands don't scan automatically generated files,
168 # since they will never contain any useful information
169 # (see finder-no-scan-regexp and custom-dependencies-no-scan-regexp).
170 custom-deps:
171 $(AM_V_at)$(MAKE) PHONY_EXTRAS=$(lisp)/cus-load.el $(lisp)/cus-load.el
172 $(lisp)/cus-load.el:
173 $(AM_V_GEN)$(setwins_almost); \
174 echo Directories: $$wins; \
175 $(emacs) -l cus-dep \
176 --eval '(setq generated-custom-dependencies-file (unmsys--file-name "$(srcdir)/cus-load.el"))' \
177 -f custom-make-dependencies $$wins
179 finder-data:
180 $(AM_V_at)$(MAKE) PHONY_EXTRAS=$(lisp)/finder-inf.el \
181 $(lisp)/finder-inf.el
182 $(lisp)/finder-inf.el:
183 $(AM_V_GEN)$(setwins_finder); \
184 echo Directories: $$wins; \
185 $(emacs) -l finder \
186 --eval '(setq generated-finder-keywords-file (unmsys--file-name "$(srcdir)/finder-inf.el"))' \
187 -f finder-compile-keywords-make-dist $$wins
189 # Use expand-file-name rather than $abs_scrdir so that Emacs does not
190 # get confused when it compares file-names for equality.
192 # Note that we set no-update-autoloads in _generated_ leim files.
193 # If you want to allow autoloads in such files, remove that,
194 # and make this depend on leim.
195 autoloads .PHONY: $(lisp)/loaddefs.el
196 $(lisp)/loaddefs.el: $(LOADDEFS)
197 $(AM_V_GEN)$(setwins_almost); \
198 echo Directories: $$wins; \
199 $(emacs) -l autoload \
200 --eval '(setq autoload-ensure-writable t)' \
201 --eval '(setq autoload-builtin-package-versions t)' \
202 --eval '(setq generated-autoload-file (expand-file-name (unmsys--file-name "$@")))' \
203 -f batch-update-autoloads $$wins
205 # This is required by the bootstrap-emacs target in ../src/Makefile, so
206 # we know that if we have an emacs executable, we also have a subdirs.el.
207 $(lisp)/subdirs.el:
208 $(AM_V_GEN)$(MAKE) update-subdirs
209 update-subdirs:
210 $(AM_V_at)$(setwins_for_subdirs); \
211 for file in $$wins; do \
212 $(srcdir)/../build-aux/update-subdirs $$file; \
213 done;
215 .PHONY: updates repo-update update-authors
217 # Some modes of make-dist use this.
218 updates: update-subdirs autoloads finder-data custom-deps
220 # This is useful after updating from the repository; but it doesn't do
221 # anything that a plain "make" at top-level doesn't. The only
222 # difference between this and this directory's "all" rule is that this
223 # runs "autoloads" as well (because it uses "compile" rather than
224 # "compile-main"). In a bootstrap, $(lisp) in src/Makefile triggers
225 # this directory's autoloads rule.
226 repo-update: compile finder-data custom-deps
228 # Update the AUTHORS file.
230 update-authors:
231 $(emacs) -L "$(top_srcdir)/admin" -l authors \
232 -f batch-update-authors "$(top_srcdir)/etc/AUTHORS" "$(top_srcdir)"
235 ETAGS = ../lib-src/etags
237 lisptagsfiles1 = $(srcdir)/*.el
238 lisptagsfiles2 = $(srcdir)/*/*.el
239 lisptagsfiles3 = $(srcdir)/*/*/*.el
240 lisptagsfiles4 = $(srcdir)/*/*/*/*.el
242 ## The echo | sed | xargs is to stop the command line getting too long
243 ## on MS Windows, when the MSYS Bash passes it to a MinGW compiled
244 ## etags. It might be better to use find in a similar way to
245 ## compile-main. But maybe this is not even necessary any more now
246 ## that this uses relative filenames.
247 TAGS: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4)
248 rm -f $@
249 touch $@
250 echo $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | \
251 sed -e 's,$(srcdir)/[^ ]*loaddefs[^ ]*,,g' \
252 -e 's,$(srcdir)/ldefs-boot[^ ]*,,' \
253 -e 's,$(srcdir)/[^ ]*esh-groups.el[^ ]*,,' | \
254 xargs $(XARGS_LIMIT) "$(ETAGS)" -a -o $@
257 # The src/Makefile.in has its own set of dependencies and when they decide
258 # that one Lisp file needs to be re-compiled, we had better recompile it as
259 # well, otherwise every subsequent make will again call us, until we finally
260 # end up deciding that yes, the file deserves recompilation.
261 # One option is to try and reproduce exactly the same dependencies here as
262 # we have in src/Makefile.in, but it turns out to be painful
263 # (e.g. src/Makefile.in may have a dependency for ../lisp/foo.elc where we
264 # only know of $(lisp)/foo.elc). So instead we provide a direct way for
265 # src/Makefile.in to rebuild a particular Lisp file, no questions asked.
266 # Use byte-compile-refresh-preloaded to try and work around some of
267 # the most common problems of not bootstrapping from a clean state.
268 THEFILE = no-such-file
269 .PHONY: $(THEFILE)c
270 $(THEFILE)c:
271 $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \
272 -l bytecomp -f byte-compile-refresh-preloaded \
273 -f batch-byte-compile $(THEFILE)
275 # Files MUST be compiled one by one. If we compile several files in a
276 # row (i.e., in the same instance of Emacs) we can't make sure that
277 # the compilation environment is clean. We also set the load-path of
278 # the Emacs used for compilation to the current directory and its
279 # subdirectories, to make sure require's and load's in the files being
280 # compiled find the right files.
282 .SUFFIXES: .elc .el
284 # An old-fashioned suffix rule, which, according to the GNU Make manual,
285 # cannot have prerequisites.
286 .el.elc:
287 $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) -f batch-byte-compile $<
289 .PHONY: compile-first compile-main compile compile-always
291 compile-first: $(COMPILE_FIRST)
293 # In `compile-main' we could directly do
294 # ... | xargs $(MAKE)
295 # and it works, but it generates a lot of messages like
296 # make[2]: gnus/gnus-mlspl.elc is up to date.
297 # so instead, we use "xargs echo" to split the list of file into manageable
298 # chunks and then use an intermediate `compile-targets' target so the
299 # actual targets (the .elc files) are not mentioned as targets on the
300 # make command line.
303 .PHONY: compile-targets
304 # TARGETS is set dynamically in the recursive call from `compile-main'.
305 compile-targets: $(TARGETS)
307 # Compile all the Elisp files that need it. Beware: it approximates
308 # `no-byte-compile', so watch out for false-positives!
309 compile-main: leim semantic compile-clean
310 @(cd $(lisp) && $(setwins); \
311 els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \
312 for el in $$els; do \
313 test -f $$el || continue; \
314 test ! -f $${el}c && GREP_OPTIONS= grep '^;.*no-byte-compile: t' $$el > /dev/null && continue; \
315 echo "$${el}c"; \
316 done | xargs $(XARGS_LIMIT) echo) | \
317 while read chunk; do \
318 $(MAKE) compile-targets TARGETS="$$chunk"; \
319 done
321 .PHONY: compile-clean
322 # Erase left-over .elc files that do not have a corresponding .el file.
323 compile-clean:
324 @cd $(lisp) && $(setwins); \
325 elcs=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.elc |g'`; \
326 for el in `echo $$elcs | sed -e 's/\.elc/\.el/g'`; do \
327 if test -f "$$el" || test ! -f "$${el}c"; then :; else \
328 echo rm "$${el}c"; \
329 rm "$${el}c"; \
330 fi \
331 done
333 .PHONY: leim semantic
334 leim:
335 $(MAKE) -C ../leim all EMACS="$(EMACS)"
337 semantic:
338 $(MAKE) -C ../admin/grammars all EMACS="$(EMACS:.%=../.%)"
340 # Compile all Lisp files, but don't recompile those that are up to
341 # date. Some .el files don't get compiled because they set the
342 # local variable no-byte-compile.
343 # Calling make recursively because suffix rule cannot have prerequisites.
344 compile: $(LOADDEFS) autoloads compile-first
345 $(MAKE) compile-main
347 # Compile all Lisp files. This is like `compile' but compiles files
348 # unconditionally. Some files don't actually get compiled because they
349 # set the local variable no-byte-compile.
350 compile-always:
351 cd $(lisp) && rm -f *.elc */*.elc */*/*.elc */*/*/*.elc
352 $(MAKE) compile
354 .PHONY: backup-compiled-files compile-after-backup
356 # Backup compiled Lisp files in elc.tar.gz. If that file already
357 # exists, make a backup of it.
359 backup-compiled-files:
360 -mv $(lisp)/elc.tar.gz $(lisp)/elc.tar.gz~
361 -tar czf $(lisp)/elc.tar.gz $(lisp)/*.elc $(lisp)/*/*.elc $(lisp)/*/*/*.elc $(lisp)/*/*/*/*.elc
363 # Compile Lisp files, but save old compiled files first.
365 compile-after-backup: backup-compiled-files compile-always
367 # This does the same job as the "compile" rule, but in a different way.
368 # Rather than spawning a separate Emacs instance to compile each file,
369 # it uses the same Emacs instance to compile everything.
370 # This is faster on a single core, since it avoids the overhead of
371 # starting Emacs many times (it was 33% faster on a test with a
372 # random 10% of the .el files needing recompilation).
373 # Unlike compile, this is not parallelizable; so if you have more than
374 # one core and use make -j#, compile will be (much) faster.
375 # This rule also produces less accurate compilation warnings.
376 # The environment of later files is affected by definitions in
377 # earlier ones, so it does not produce some warnings that it should.
378 # It can also produces spurious warnings about "invalid byte code" if
379 # files that use byte-compile-dynamic are updated.
380 # There is no reason to use this rule unless you only have a single
381 # core and CPU time is an issue.
382 .PHONY: compile-one-process
383 compile-one-process: $(LOADDEFS) compile-first
384 $(emacs) $(BYTE_COMPILE_FLAGS) \
385 --eval "(batch-byte-recompile-directory 0)" $(lisp)
387 # Update MH-E internal autoloads. These are not to be confused with
388 # the autoloads for the MH-E entry points, which are already in loaddefs.el.
389 MH_E_DIR = $(lisp)/mh-e
390 ## MH_E_SRC avoids a circular dependency warning for mh-loaddefs.el.
391 MH_E_SRC = $(MH_E_DIR)/mh-acros.el $(MH_E_DIR)/mh-alias.el \
392 $(MH_E_DIR)/mh-buffers.el $(MH_E_DIR)/mh-compat.el \
393 $(MH_E_DIR)/mh-comp.el $(MH_E_DIR)/mh-e.el \
394 $(MH_E_DIR)/mh-folder.el $(MH_E_DIR)/mh-funcs.el \
395 $(MH_E_DIR)/mh-gnus.el $(MH_E_DIR)/mh-identity.el \
396 $(MH_E_DIR)/mh-inc.el $(MH_E_DIR)/mh-junk.el \
397 $(MH_E_DIR)/mh-letter.el $(MH_E_DIR)/mh-limit.el \
398 $(MH_E_DIR)/mh-mime.el $(MH_E_DIR)/mh-print.el \
399 $(MH_E_DIR)/mh-scan.el $(MH_E_DIR)/mh-search.el \
400 $(MH_E_DIR)/mh-seq.el $(MH_E_DIR)/mh-show.el \
401 $(MH_E_DIR)/mh-speed.el $(MH_E_DIR)/mh-thread.el \
402 $(MH_E_DIR)/mh-tool-bar.el $(MH_E_DIR)/mh-utils.el \
403 $(MH_E_DIR)/mh-xface.el
405 .PHONY: mh-autoloads
406 mh-autoloads: $(MH_E_DIR)/mh-loaddefs.el
407 $(MH_E_DIR)/mh-loaddefs.el: $(MH_E_SRC)
408 $(AM_V_GEN)$(emacs) -l autoload \
409 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \
410 --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
411 -f batch-update-autoloads $(MH_E_DIR)
413 # Update TRAMP internal autoloads. Maybe we could move tramp*.el into
414 # an own subdirectory. OTOH, it does not hurt to keep them in
415 # lisp/net.
416 TRAMP_DIR = $(lisp)/net
417 TRAMP_SRC = $(TRAMP_DIR)/tramp.el $(TRAMP_DIR)/tramp-adb.el \
418 $(TRAMP_DIR)/tramp-cache.el $(TRAMP_DIR)/tramp-cmds.el \
419 $(TRAMP_DIR)/tramp-compat.el $(TRAMP_DIR)/tramp-ftp.el \
420 $(TRAMP_DIR)/tramp-gvfs.el $(TRAMP_DIR)/tramp-gw.el \
421 $(TRAMP_DIR)/tramp-sh.el $(TRAMP_DIR)/tramp-smb.el \
422 $(TRAMP_DIR)/tramp-uu.el $(TRAMP_DIR)/trampver.el
424 $(TRAMP_DIR)/tramp-loaddefs.el: $(TRAMP_SRC)
425 $(AM_V_GEN)$(emacs) -l autoload \
426 --eval "(setq generate-autoload-cookie \";;;###tramp-autoload\")" \
427 --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
428 -f batch-update-autoloads $(TRAMP_DIR)
430 CAL_DIR = $(lisp)/calendar
431 ## Those files that may contain internal calendar autoload cookies.
432 ## Avoids circular dependency warning for *-loaddefs.el.
433 CAL_SRC = $(CAL_DIR)/cal-bahai.el $(CAL_DIR)/cal-china.el \
434 $(CAL_DIR)/cal-coptic.el $(CAL_DIR)/cal-dst.el \
435 $(CAL_DIR)/cal-french.el $(CAL_DIR)/cal-hebrew.el \
436 $(CAL_DIR)/cal-html.el $(CAL_DIR)/cal-islam.el \
437 $(CAL_DIR)/cal-iso.el $(CAL_DIR)/cal-julian.el \
438 $(CAL_DIR)/cal-mayan.el $(CAL_DIR)/cal-menu.el \
439 $(CAL_DIR)/cal-move.el $(CAL_DIR)/cal-persia.el \
440 $(CAL_DIR)/cal-tex.el $(CAL_DIR)/cal-x.el \
441 $(CAL_DIR)/calendar.el $(CAL_DIR)/diary-lib.el \
442 $(CAL_DIR)/holidays.el $(CAL_DIR)/lunar.el \
443 $(CAL_DIR)/solar.el
445 $(CAL_DIR)/cal-loaddefs.el: $(CAL_SRC)
446 $(AM_V_GEN)$(emacs) -l autoload \
447 --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \
448 --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
449 -f batch-update-autoloads $(CAL_DIR)
451 $(CAL_DIR)/diary-loaddefs.el: $(CAL_SRC) $(CAL_DIR)/cal-loaddefs.el
452 $(AM_V_GEN)$(emacs) -l autoload \
453 --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \
454 --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
455 -f batch-update-autoloads $(CAL_DIR)
457 $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC) $(CAL_DIR)/diary-loaddefs.el
458 $(AM_V_GEN)$(emacs) -l autoload \
459 --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \
460 --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
461 -f batch-update-autoloads $(CAL_DIR)
463 .PHONY: bootstrap-clean distclean maintainer-clean
465 bootstrap-clean:
466 -cd $(lisp) && rm -f *.elc */*.elc */*/*.elc */*/*/*.elc $(AUTOGENEL)
468 distclean:
469 -rm -f ./Makefile $(lisp)/loaddefs.el~
471 maintainer-clean: distclean bootstrap-clean
472 rm -f TAGS
474 .PHONY: check-declare
476 check-declare:
477 $(emacs) -l check-declare --eval '(check-declare-directory "$(lisp)")'
479 check-defun-dups:
480 sed -n -e '/^(defun /s/\(.\)(.*/\1/p' \
481 $$(find . -name '*.el' -print | grep -v 'loaddefs\.el') \
482 | sort | uniq -d
484 # Dependencies
486 ## None of the following matters for bootstrap, which is the only way
487 ## to ensure a correct compilation of all lisp files.
488 ## Manually specifying dependencies of a handful of lisp files, (and
489 ## ones that don't change very often at that) seems pretty pointless
490 ## to me.
492 # http://debbugs.gnu.org/1004
493 # CC Mode uses a compile time macro system which causes a compile time
494 # dependency in cc-*.elc files on the macros in other cc-*.el and the
495 # version string in cc-defs.el.
496 $(lisp)/progmodes/cc-align.elc\
497 $(lisp)/progmodes/cc-cmds.elc $(lisp)/progmodes/cc-compat.elc\
498 $(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-fonts.elc\
499 $(lisp)/progmodes/cc-langs.elc $(lisp)/progmodes/cc-menus.elc\
500 $(lisp)/progmodes/cc-mode.elc $(lisp)/progmodes/cc-styles.elc\
501 $(lisp)/progmodes/cc-vars.elc: \
502 $(lisp)/progmodes/cc-bytecomp.elc $(lisp)/progmodes/cc-defs.elc
504 $(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-cmds.elc: \
505 $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
507 $(lisp)/progmodes/cc-compat.elc: \
508 $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-styles.elc \
509 $(lisp)/progmodes/cc-engine.elc
511 $(lisp)/progmodes/cc-defs.elc: $(lisp)/progmodes/cc-bytecomp.elc
513 $(lisp)/progmodes/cc-engine.elc: $(lisp)/progmodes/cc-langs.elc \
514 $(lisp)/progmodes/cc-vars.elc
516 $(lisp)/progmodes/cc-fonts.elc: $(lisp)/progmodes/cc-langs.elc \
517 $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
519 $(lisp)/progmodes/cc-langs.elc: $(lisp)/progmodes/cc-vars.elc
521 $(lisp)/progmodes/cc-mode.elc: $(lisp)/progmodes/cc-langs.elc \
522 $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
523 $(lisp)/progmodes/cc-styles.elc $(lisp)/progmodes/cc-cmds.elc \
524 $(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-menus.elc
526 $(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \
527 $(lisp)/progmodes/cc-align.elc
529 # Makefile ends here.