* process.c (Fmake_network_process): Don't apply Bug#5173 fix for Windows.
[bpt/emacs.git] / lisp / Makefile.in
CommitLineData
c7685c8d 1# Maintenance productions for the Lisp directory
12464992 2# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
114f9c96 3# 2009, 2010 Free Software Foundation, Inc.
b3ae7a0a
GM
4
5# This file is part of GNU Emacs.
6
eb3fa2cf 7# GNU Emacs is free software: you can redistribute it and/or modify
b3ae7a0a 8# it under the terms of the GNU General Public License as published by
eb3fa2cf
GM
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
b3ae7a0a
GM
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
eb3fa2cf 18# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
7ec641b8 19
261f3289
EZ
20SHELL = /bin/sh
21
82c3d67a
AS
22srcdir = @srcdir@
23top_srcdir = @top_srcdir@
24abs_top_builddir = @abs_top_builddir@
25lisp = $(srcdir)
26VPATH = $(srcdir)
dce6b995 27
7ec641b8
GM
28# You can specify a different executable on the make command line,
29# e.g. "make EMACS=../src/emacs ...".
30
3613edce
SM
31# We sometimes change directory before running Emacs (typically when
32# building out-of-tree, we chdir to the source directory), so we need
82c3d67a
AS
33# to use an aboluste file name.
34EMACS = ${abs_top_builddir}/src/emacs
7ec641b8
GM
35
36# Command line flags for Emacs. This must include --multibyte,
37# otherwise some files will not compile.
38
1499d2dd 39EMACSOPT = -batch --no-site-file --multibyte
7ec641b8 40
fc5e09b3 41# Extra flags to pass to the byte compiler
0118d12c 42BYTE_COMPILE_EXTRA_FLAGS =
fc5e09b3
DN
43# For example to not display the undefined function warnings you can use this:
44# BYTE_COMPILE_EXTRA_FLAGS = --eval '(setq byte-compile-warnings (quote (not unresolved)))'
45# The example above is just for developers, it should not be used by default.
46
05012a71
GM
47lisptagsfiles1 = $(lisp)/*.el
48lisptagsfiles2 = $(lisp)/*/*.el
2c4cd0b0 49lisptagsfiles3 = $(lisp)/*/*/*.el
5da62d41 50lisptagsfiles4 = $(lisp)/*/*/*/*.el
3975988b 51ETAGS = ../lib-src/etags
c7685c8d 52
2537fa5d 53# Automatically generated autoload files, apart from lisp/loaddefs.el.
e9906608
GM
54# Note this includes only those files that need special rules to
55# build; ie it does not need to include things created via
56# generated-autoload-file (eg calc/calc-loaddefs.el).
2537fa5d 57LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
099659f9
GM
58 $(lisp)/calendar/diary-loaddefs.el \
59 $(lisp)/calendar/hol-loaddefs.el \
60 $(lisp)/mh-e/mh-loaddefs.el
2537fa5d 61
6b61353c
KH
62# Elisp files auto-generated.
63AUTOGENEL = loaddefs.el \
2537fa5d 64 $(LOADDEFS) \
6b61353c
KH
65 cus-load.el \
66 finder-inf.el \
67 subdirs.el \
6b6a6f9e 68 calc/calc-loaddefs.el \
5da62d41
GM
69 eshell/esh-groups.el \
70 cedet/semantic/loaddefs.el \
71 cedet/ede/loaddefs.el \
72 cedet/srecode/loaddefs.el
6b61353c 73
170a9e70 74# Files to compile before others during a bootstrap. This is done to
768efd84 75# speed up the bootstrap process.
d849789b 76
dce6b995 77COMPILE_FIRST = \
768efd84
SM
78 $(lisp)/emacs-lisp/bytecomp.elc \
79 $(lisp)/emacs-lisp/byte-opt.elc \
b4945b95 80 $(lisp)/emacs-lisp/autoload.elc
d849789b 81
7ec641b8
GM
82# The actual Emacs command run in the targets below.
83
3b53a65b 84emacs = EMACSLOADPATH=$(lisp) LC_ALL=C $(EMACS) $(EMACSOPT)
7ec641b8 85
80c382e5 86# Common command to find subdirectories
7ec641b8 87
3613edce 88setwins=subdirs=`(find . -type d -print)`; \
f83a4f35 89 for file in $$subdirs; do \
6b61353c 90 case $$file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/* | */=* ) ;; \
3613edce 91 *) wins="$$wins $$file" ;; \
f83a4f35 92 esac; \
80c382e5 93 done
8464af45 94
10498e1c 95# Find all subdirectories except `obsolete' and `term'.
6a444c7c 96
3613edce 97setwins_almost=subdirs=`(find . -type d -print)`; \
865e97c1 98 for file in $$subdirs; do \
6b61353c 99 case $$file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/* | */=* | */obsolete | */term ) ;; \
3613edce 100 *) wins="$$wins $$file" ;; \
865e97c1
GM
101 esac; \
102 done
80c382e5 103
15120dec
CY
104# Find all subdirectories in which we might want to create subdirs.el
105
3613edce 106setwins_for_subdirs=subdirs=`(find . -type d -print)`; \
15120dec
CY
107 for file in $$subdirs; do \
108 case $$file in */Old | */RCS | */CVS | */CVS/* | */.* | */.*/* | */=* | */cedet* ) ;; \
3613edce 109 *) wins="$$wins $$file" ;; \
15120dec
CY
110 esac; \
111 done
112
49f6eb95
SM
113# `compile-main' tends to be slower than `recompile' but can be parallelized
114# with "make -j" and results in more deterministic compilation warnings.
7fae72ef 115# cus-load and finder-inf are not explicitly requested by anything, so
fc46d219 116# we add them here to make sure they get built.
fd471993 117all: compile-main $(lisp)/cus-load.el $(lisp)/finder-inf.el
49f6eb95 118
80c382e5
SM
119doit:
120
2fe51632 121# custom-deps and finder-data both used to scan _all_ the *.el files.
7fae72ef
GM
122# This could lead to problems in parallel builds if automatically
123# generated *.el files (eg loaddefs etc) were being changed at the same time.
2fe51632
GM
124# One solution was to add autoloads as a prerequisite:
125# http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-01/msg00469.html
126# http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-12/msg00171.html
7fae72ef 127# However, this meant that running these targets modified loaddefs.el,
2fe51632
GM
128# every time (due to time-stamping). Calling these rules from
129# bootstrap-after would modify loaddefs after src/emacs, resulting
130# in make install remaking src/emacs for no real reason:
131# http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg00311.html
7fae72ef
GM
132# Nowadays these commands don't scan automatically generated files,
133# since they will never contain any useful information
134# (see finder-no-scan-regexp and custom-dependencies-no-scan-regexp).
fc46d219
SM
135$(lisp)/cus-load.el:
136 $(MAKE) $(MFLAGS) custom-deps
137custom-deps: doit
82c3d67a 138 cd $(lisp); $(setwins_almost); \
4746aeeb 139 echo Directories: $$wins; \
b2928357 140 $(emacs) -l cus-dep --eval '(setq generated-custom-dependencies-file "$(lisp)/cus-load.el")' -f custom-make-dependencies $$wins
009368b9 141
fc46d219
SM
142$(lisp)/finder-inf.el:
143 $(MAKE) $(MFLAGS) finder-data
144finder-data: doit
82c3d67a 145 cd $(lisp); $(setwins_almost); \
4746aeeb 146 echo Directories: $$wins; \
b2928357 147 $(emacs) -l finder --eval '(setq generated-finder-keywords-file "$(lisp)/finder-inf.el")' -f finder-compile-keywords-make-dist $$wins
009368b9 148
a5cd8bed
SM
149# The chmod +w is to handle env var CVSREAD=1. Files named
150# are identified by being the value of `generated-autoload-file'.
ee2e93e2 151autoloads: $(LOADDEFS) doit
a5cd8bed 152 chmod +w $(lisp)/ps-print.el $(lisp)/emulation/tpu-edt.el \
15067158 153 $(lisp)/emacs-lisp/cl-loaddefs.el $(lisp)/mail/rmail.el \
5515c54e 154 $(lisp)/dired.el $(lisp)/ibuffer.el
82c3d67a 155 cd $(lisp); $(setwins_almost); \
4746aeeb 156 echo Directories: $$wins; \
ee2e93e2 157 $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins
f83a4f35 158
b4945b95 159# This is required by the bootstrap-emacs target in ../src/Makefile, so
fc46d219 160# we know that if we have an emacs executable, we also have a subdirs.el.
cd1b15b8 161$(lisp)/subdirs.el:
cc953d27 162 $(MAKE) $(MFLAGS) update-subdirs
98b918b6 163update-subdirs: doit
3613edce 164 cd $(lisp); $(setwins_for_subdirs); \
98b918b6 165 for file in $$wins; do \
82c3d67a 166 $(top_srcdir)/update-subdirs $$file; \
98b918b6
RS
167 done;
168
600bc46c 169updates: update-subdirs autoloads finder-data custom-deps
c48c3772 170
38c1ba62
EZ
171# This is useful after "bzr up".
172bzr-update: recompile autoloads finder-data custom-deps
173
174# For backwards compatibility:
175cvs-update: bzr-update
c48c3772 176
fbb43902
GM
177# Update the AUTHORS file.
178
179update-authors:
82c3d67a 180 $(emacs) -l authors -f batch-update-authors $(top_srcdir)/etc/AUTHORS $(top_srcdir)
fbb43902 181
5da62d41
GM
182TAGS TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4)
183 els=`echo $(lisptagsfiles1) $(lisptagsfiles2) $(lisptagsfiles3) $(lisptagsfiles4) | sed -e "s,$(lisp)/[^ ]*loaddefs[^ ]*,," -e "s,$(lisp)/ldefs-boot[^ ]*,,"`; \
05012a71 184 ${ETAGS} -o $@ $$els
7ec641b8 185
768efd84
SM
186# The src/Makefile.in has its own set of dependencies and when they decide
187# that one Lisp file needs to be re-compiled, we had better recompile it as
188# well, otherwise every subsequent make will again call us, until we finally
189# end up deciding that yes, the file deserves recompilation.
190# One option is to try and reproduce exactly the same dependencies here as
191# we have in src/Makefile.in, but it turns out to be painful
192# (e.g. src/Makefile.in may have a dependency for ../lisp/foo.elc where we
193# only know of $(lisp)/foo.elc). So instead we provide a direct way for
194# src/Makefile.in to rebuild a particular Lisp file, no questions asked.
12464992
GM
195# Use byte-compile-refresh-preloaded to try and work around some of
196# the most common problems of not bootstrapping from a clean state.
768efd84
SM
197compile-onefile:
198 @echo Compiling $(THEFILE)
384ca163
SM
199 @# Use byte-compile-refresh-preloaded to try and work around some of
200 @# the most common bootstrapping problems.
201 @$(emacs) -l bytecomp -f byte-compile-refresh-preloaded $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $(THEFILE)
768efd84 202
ef7f89b2
GM
203# Files MUST be compiled one by one. If we compile several files in a
204# row (i.e., in the same instance of Emacs) we can't make sure that
938cbd34
LK
205# the compilation environment is clean. We also set the load-path of
206# the Emacs used for compilation to the current directory and its
207# subdirectories, to make sure require's and load's in the files being
208# compiled find the right files.
29ad9e56 209
ef7f89b2
GM
210.SUFFIXES: .elc .el
211
212# An old-fashioned suffix rule, which, according to the GNU Make manual,
213# cannot have prerequisites.
ef7f89b2
GM
214.el.elc:
215 @echo Compiling $<
216 @$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
217
111a9dff 218.PHONY: compile-first compile-main compile compile-always
ef7f89b2 219
768efd84 220compile-first: $(COMPILE_FIRST)
61b92c33 221
111a9dff
SM
222# In `compile-main' we could directly do
223# ... | xargs $(MAKE) $(MFLAGS) EMACS="$(EMACS)"
224# and it works, but it generates a lot of messages like
225# make[2]: « gnus/gnus-mlspl.elc » is up to date.
226# so instead, we use "xargs echo" to split the list of file into manageable
227# chunks and then use an intermediate `compile-targets' target so the
228# actual targets (the .elc files) are not mentioned as targets on the
229# make command line.
230
231
232.PHONY: compile-targets
233# TARGETS is set dynamically in the recursive call from `compile-main'.
234compile-targets: $(TARGETS)
235
236# Compile all the Elisp files that need it. Beware: it approximates
237# `no-byte-compile', so watch out for false-positives!
64cb11cc 238compile-main: compile-clean
835e2c65 239 @(cd $(lisp); $(setwins); \
111a9dff
SM
240 els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \
241 for el in $$els; do \
242 test -f $$el || continue; \
243 test ! -f $${el}c && GREP_OPTIONS= grep '^;.*no-byte-compile: t' $$el > /dev/null && continue; \
244 echo "$${el}c"; \
835e2c65 245 done | xargs echo) | \
111a9dff
SM
246 while read chunk; do \
247 $(MAKE) $(MFLAGS) compile-targets EMACS="$(EMACS)" TARGETS="$$chunk"; \
248 done
ef7f89b2 249
64cb11cc
SM
250.PHONY: compile-clean
251# Erase left-over .elc files that do not have a corresponding .el file.
252compile-clean:
253 @cd $(lisp); $(setwins); \
254 elcs=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.elc |g'`; \
255 for el in $$(echo $$elcs | sed -e 's/\.elc/\.el/g'); do \
256 if test -f "$$el" -o \! -f "$${el}c"; then :; else \
257 echo rm "$${el}c"; \
258 rm "$${el}c"; \
259 fi \
260 done
261
ef7f89b2
GM
262# Compile all Lisp files, but don't recompile those that are up to
263# date. Some .el files don't get compiled because they set the
264# local variable no-byte-compile.
265# Calling make recursively because suffix rule cannot have prerequisites.
2c01ac6a
GM
266# Explicitly pass EMACS (sometimes ../src/bootstrap-emacs) to those
267# sub-makes that run rules that use it, for the sake of some non-GNU makes.
fd471993 268compile: $(LOADDEFS) autoloads compile-first
82c3d67a 269 $(MAKE) $(MFLAGS) compile-main EMACS=$(EMACS)
2fe51632 270
938cbd34
LK
271# Compile all Lisp files. This is like `compile' but compiles files
272# unconditionally. Some files don't actually get compiled because they
273# set the local variable no-byte-compile.
ef7f89b2 274compile-always: doit
5da62d41 275 cd $(lisp); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc
2c01ac6a 276 $(MAKE) $(MFLAGS) compile EMACS=$(EMACS)
938cbd34 277
fd471993
CY
278compile-calc:
279 for el in $(lisp)/calc/*.el; do \
280 echo Compiling $$el; \
281 $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \
282 done
283
a9b67cf4
GM
284# Backup compiled Lisp files in elc.tar.gz. If that file already
285# exists, make a backup of it.
286
287backup-compiled-files:
dce6b995 288 -mv $(lisp)/elc.tar.gz $(lisp)/elc.tar.gz~
5da62d41 289 -tar czf $(lisp)/elc.tar.gz $(lisp)/*.elc $(lisp)/*/*.elc $(lisp)/*/*/*.elc $(lisp)/*/*/*/*.elc
a9b67cf4
GM
290
291# Compile Lisp files, but save old compiled files first.
292
61b92c33 293compile-after-backup: backup-compiled-files compile-always
a9b67cf4 294
773cb1a4
NR
295# Recompile all Lisp files which are newer than their .elc files and compile
296# new ones.
111a9dff 297# This has the same effect as compile-main. recompile has some advantages:
df19c2fb
GM
298# i) It is faster (on a single processor), since it only has to start
299# Emacs once. It was 33% faster on a test with a random 10% of the .el
300# files needing recompilation.
301# ii) The explicit cc-mode dependency.
302# recompile's disadvantages are:
303# i) Not parallelizable.
304# ii) Compiling multiple files in the same instance of Emacs is wrong,
305# since the environment of later files is affected by definitions in
306# earlier ones.
f7a043c3 307recompile: doit $(LOADDEFS) compile-first $(lisp)/progmodes/cc-mode.elc
b2928357 308 $(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
7ec641b8 309
1eee3de4 310# Update MH-E internal autoloads. These are not to be confused with
2537fa5d 311# the autoloads for the MH-E entry points, which are already in loaddefs.el.
e9906608
GM
312MH_E_DIR = $(lisp)/mh-e
313## MH_E_SRC avoids a circular dependency warning for mh-loaddefs.el.
314MH_E_SRC = $(MH_E_DIR)/mh-acros.el $(MH_E_DIR)/mh-alias.el \
315 $(MH_E_DIR)/mh-buffers.el $(MH_E_DIR)/mh-compat.el \
316 $(MH_E_DIR)/mh-comp.el $(MH_E_DIR)/mh-e.el \
317 $(MH_E_DIR)/mh-folder.el $(MH_E_DIR)/mh-funcs.el \
318 $(MH_E_DIR)/mh-gnus.el $(MH_E_DIR)/mh-identity.el \
319 $(MH_E_DIR)/mh-inc.el $(MH_E_DIR)/mh-junk.el \
320 $(MH_E_DIR)/mh-letter.el $(MH_E_DIR)/mh-limit.el \
321 $(MH_E_DIR)/mh-mime.el $(MH_E_DIR)/mh-print.el \
322 $(MH_E_DIR)/mh-scan.el $(MH_E_DIR)/mh-search.el \
323 $(MH_E_DIR)/mh-seq.el $(MH_E_DIR)/mh-show.el \
324 $(MH_E_DIR)/mh-speed.el $(MH_E_DIR)/mh-thread.el \
325 $(MH_E_DIR)/mh-tool-bar.el $(MH_E_DIR)/mh-utils.el \
326 $(MH_E_DIR)/mh-xface.el
327
328mh-autoloads: $(MH_E_DIR)/mh-loaddefs.el
fc46d219 329$(MH_E_DIR)/mh-loaddefs.el: $(MH_E_SRC)
2537fa5d 330 $(emacs) -l autoload \
a6f6840e 331 --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \
2537fa5d 332 --eval "(setq generated-autoload-file \"$@\")" \
a6f6840e 333 --eval "(setq make-backup-files nil)" \
e9906608
GM
334 -f batch-update-autoloads $(MH_E_DIR)
335
336CAL_DIR = $(lisp)/calendar
337## Those files that may contain internal calendar autoload cookies.
338## Avoids circular dependency warning for *-loaddefs.el.
339CAL_SRC = $(CAL_DIR)/cal-bahai.el $(CAL_DIR)/cal-china.el \
340 $(CAL_DIR)/cal-coptic.el $(CAL_DIR)/cal-dst.el \
341 $(CAL_DIR)/cal-french.el $(CAL_DIR)/cal-hebrew.el \
342 $(CAL_DIR)/cal-html.el $(CAL_DIR)/cal-islam.el \
343 $(CAL_DIR)/cal-iso.el $(CAL_DIR)/cal-julian.el \
344 $(CAL_DIR)/cal-mayan.el $(CAL_DIR)/cal-menu.el \
345 $(CAL_DIR)/cal-move.el $(CAL_DIR)/cal-persia.el \
346 $(CAL_DIR)/cal-tex.el $(CAL_DIR)/cal-x.el \
347 $(CAL_DIR)/calendar.el $(CAL_DIR)/diary-lib.el \
348 $(CAL_DIR)/holidays.el $(CAL_DIR)/lunar.el \
349 $(CAL_DIR)/solar.el
350
fc46d219 351$(CAL_DIR)/cal-loaddefs.el: $(CAL_SRC)
2537fa5d
GM
352 $(emacs) -l autoload \
353 --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \
354 --eval "(setq generated-autoload-file \"$@\")" \
355 --eval "(setq make-backup-files nil)" \
e9906608 356 -f batch-update-autoloads $(CAL_DIR)
2537fa5d 357
fc46d219 358$(CAL_DIR)/diary-loaddefs.el: $(CAL_SRC)
2537fa5d
GM
359 $(emacs) -l autoload \
360 --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \
361 --eval "(setq generated-autoload-file \"$@\")" \
362 --eval "(setq make-backup-files nil)" \
e9906608 363 -f batch-update-autoloads $(CAL_DIR)
2537fa5d 364
fc46d219 365$(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC)
2537fa5d
GM
366 $(emacs) -l autoload \
367 --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \
368 --eval "(setq generated-autoload-file \"$@\")" \
369 --eval "(setq make-backup-files nil)" \
e9906608 370 -f batch-update-autoloads $(CAL_DIR)
2537fa5d 371
6b61353c
KH
372# Prepare a bootstrap in the lisp subdirectory.
373#
f586d18e
LK
374# Build loaddefs.el to make sure it's up-to-date. If it's not, that
375# might lead to errors during the bootstrap because something fails to
376# autoload as expected. If there is no emacs binary, then we can't
71d77b40
LT
377# build autoloads yet. In that case we have to use ldefs-boot.el.
378# Bootstrap should always work with ldefs-boot.el. Therefore,
379# whenever a new autoload cookie gets added that is necessary during
380# bootstrapping, ldefs-boot.el should be updated by overwriting it with
381# an up-to-date copy of loaddefs.el that is uncorrupted by
382# local changes. (Because loaddefs.el is an automatically generated
383# file, we don't want to store it in the source repository).
6b61353c 384
fc46d219 385bootstrap-clean:
5da62d41 386 cd $(lisp); rm -f *.elc */*.elc */*/*.elc */*/*/*.elc $(AUTOGENEL)
a9b67cf4 387
b7bc82c5 388distclean:
64865454 389 -rm -f ./Makefile
b7bc82c5
SM
390
391maintainer-clean: distclean bootstrap-clean
43280888 392
f772cd18
GM
393.PHONY: check-declare
394
395check-declare:
396 $(emacs) -l $(lisp)/emacs-lisp/check-declare \
397 --eval '(check-declare-directory "$(lisp)")'
398
4860b1b8
EZ
399# Dependencies
400
401# CC Mode uses a compile time macro system which causes a compile time
402# dependency in cc-*.elc files on the macros in other cc-*.el and the
403# version string in cc-defs.el.
404$(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-awk.elc\
405 $(lisp)/progmodes/cc-cmds.elc $(lisp)/progmodes/cc-compat.elc\
406 $(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-fonts.elc\
407 $(lisp)/progmodes/cc-langs.elc $(lisp)/progmodes/cc-menus.elc\
408 $(lisp)/progmodes/cc-mode.elc $(lisp)/progmodes/cc-styles.elc\
1f35fda9 409 $(lisp)/progmodes/cc-vars.elc: \
4860b1b8
EZ
410 $(lisp)/progmodes/cc-bytecomp.elc $(lisp)/progmodes/cc-defs.elc
411
412$(lisp)/progmodes/cc-align.elc: \
413 $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
414
415$(lisp)/progmodes/cc-cmds.elc: \
416 $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
417
418$(lisp)/progmodes/cc-compat.elc: \
419 $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-styles.elc \
420 $(lisp)/progmodes/cc-engine.elc
421
422$(lisp)/progmodes/cc-defs.elc: $(lisp)/progmodes/cc-bytecomp.elc \
423 $(lisp)/emacs-lisp/cl.elc $(lisp)/emacs-lisp/regexp-opt.elc
424
425$(lisp)/progmodes/cc-engine.elc: $(lisp)/progmodes/cc-langs.elc \
426 $(lisp)/progmodes/cc-vars.elc
427
428$(lisp)/progmodes/cc-fonts.elc: $(lisp)/progmodes/cc-langs.elc \
429 $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
430 $(lisp)/font-lock.elc
431
432$(lisp)/progmodes/cc-langs.elc: $(lisp)/progmodes/cc-vars.elc \
433 $(lisp)/emacs-lisp/cl.elc
434
435$(lisp)/progmodes/cc-mode.elc: $(lisp)/progmodes/cc-langs.elc \
436 $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
437 $(lisp)/progmodes/cc-styles.elc $(lisp)/progmodes/cc-cmds.elc \
438 $(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-menus.elc
439
440$(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \
441 $(lisp)/progmodes/cc-align.elc
442
4860b1b8 443$(lisp)/progmodes/cc-vars.elc: $(lisp)/custom.elc $(lisp)/widget.elc
2c65e87c
EZ
444
445# MH-E dependencies, mainly to prevent failures with parallel
446# compilation, due to race conditions between writing a given FOO.elc
447# file and another file being compiled that says "(require FOO)",
448# which causes Emacs to try to read FOO.elc.
449$(MH_E_DIR)/mh-alias.elc $(MH_E_DIR)/mh-comp.elc $(MH_E_DIR)/mh-folder.elc\
450 $(MH_E_DIR)/mh-funcs.elc $(MH_E_DIR)/mh-identity.elc $(MH_E_DIR)/mh-inc.elc\
451 $(MH_E_DIR)/mh-junk.elc $(MH_E_DIR)/mh-letter.elc $(MH_E_DIR)/mh-limit.elc\
452 $(MH_E_DIR)/mh-mime.elc $(MH_E_DIR)/mh-print.elc $(MH_E_DIR)/mh-scan.elc\
453 $(MH_E_DIR)/mh-search.elc $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-show.elc\
454 $(MH_E_DIR)/mh-speed.elc $(MH_E_DIR)/mh-thread.elc $(MH_E_DIR)/mh-tool-bar.elc\
455 $(MH_E_DIR)/mh-utils.elc $(MH_E_DIR)/mh-xface.elc:\
456 $(MH_E_DIR)/mh-e.elc
457
458$(MH_E_DIR)/mh-alias.elc $(MH_E_DIR)/mh-e.elc $(MH_E_DIR)/mh-folder.elc\
459 $(MH_E_DIR)/mh-inc.elc $(MH_E_DIR)/mh-junk.elc $(MH_E_DIR)/mh-limit.elc\
460 $(MH_E_DIR)/mh-search.elc $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-speed.elc\
461 $(MH_E_DIR)/mh-utils.elc $(MH_E_DIR)/mh-xface.elc:\
462 $(lisp)/emacs-lisp/cl.elc
463
464$(MH_E_DIR)/mh-comp.elc $(MH_E_DIR)/mh-folder.elc $(MH_E_DIR)/mh-funcs.elc\
465 $(MH_E_DIR)/mh-junk.elc $(MH_E_DIR)/mh-limit.elc $(MH_E_DIR)/mh-print.elc\
466 $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-show.elc $(MH_E_DIR)/mh-thread.elc:\
467 $(MH_E_DIR)/mh-scan.elc
468
469$(MH_E_DIR)/mh-folder.elc $(MH_E_DIR)/mh-letter.elc $(MH_E_DIR)/mh-mime.elc\
470 $(MH_E_DIR)/mh-search.elc $(MH_E_DIR)/mh-show.elc $(MH_E_DIR)/mh-speed.elc:\
471 $(lisp)/gnus/gnus-util.elc
472
473$(MH_E_DIR)/mh-folder.elc $(MH_E_DIR)/mh-search.elc:\
474 $(lisp)/progmodes/which-func.elc
475
476$(MH_E_DIR)/mh-letter.elc $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-show.elc\
477 $(MH_E_DIR)/mh-utils.elc:\
478 $(lisp)/font-lock.elc
479
480$(MH_E_DIR)/mh-alias.elc $(MH_E_DIR)/mh-show.elc: $(lisp)/net/goto-addr.elc
481
482$(MH_E_DIR)/mh-comp.elc: $(lisp)/mail/sendmail.elc
483
484$(MH_E_DIR)/mh-e.elc: $(MH_E_DIR)/mh-buffers.elc $(lisp)/gnus/gnus.elc \
485 $(lisp)/cus-face.elc
486
487$(MH_E_DIR)/mh-letter.elc: $(lisp)/gnus/mailcap.elc $(lisp)/gnus/mm-decode.elc \
488 $(lisp)/gnus/mm-view.elc $(lisp)/gnus/mml.elc $(lisp)/gnus/message.elc
489
490$(MH_E_DIR)/mh-print.elc: $(lisp)/ps-print.elc
491
492$(MH_E_DIR)/mh-search.elc: $(lisp)/imenu.elc
493
494$(MH_E_DIR)/mh-show.elc: $(lisp)/gnus/gnus-cite.elc
495
496$(MH_E_DIR)/mh-speed.elc: $(lisp)/speedbar.elc $(lisp)/emacs-lisp/timer.elc
497
498$(MH_E_DIR)/mh-tool-bar.elc: $(lisp)/tool-bar.elc
499
7ec641b8 500# Makefile ends here.