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