(math-read-number-fancy): Read complement signed numbers.
[emacs.git] / lisp / makefile.w32-in
blob8c006f25eb382aa4b27ddfddbab66ae6bed7e6d3
1 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
3 #   2009  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 ALL =
22 all: $(ALL)
24 SQUOTE='
25 # '
27 lisp = $(CURDIR)
28 srcdir = $(CURDIR)/..
30 # You can specify a different executable on the make command line,
31 # e.g. "make EMACS=../src/emacs ...".
33 EMACS = $(THISDIR)/../bin/emacs.exe
35 # Command line flags for Emacs.  This must include --multibyte,
36 # otherwise some files will not compile.
38 EMACSOPT = -batch --no-init-file --no-site-file --multibyte
40 # Extra flags to pass to the byte compiler
41 BYTE_COMPILE_EXTRA_FLAGS =
42 # For example to not display the undefined function warnings you can use this:
43 # BYTE_COMPILE_EXTRA_FLAGS = --eval '(setq byte-compile-warnings (quote (not unresolved)))'
44 # The example above is just for developers, it should not be used by default.
46 # Set EMACSLOADPATH correctly (already defined in environment).
47 EMACSLOADPATH=$(lisp)
49 # Use C locale
50 LC_ALL = C
52 lisptagsfiles1 = $(lisp)/*.el
53 lisptagsfiles2 = $(lisp)/*/*.el
54 ETAGS = "../lib-src/$(BLD)/etags"
56 # Automatically generated autoload files, apart from lisp/loaddefs.el.
57 LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
58         $(lisp)/calendar/diary-loaddefs.el $(lisp)/calendar/hol-loaddefs.el \
59         $(lisp)/mh-e/mh-loaddefs.el
61 AUTOGENEL = $(lisp)/loaddefs.el $(LOADDEFS) $(lisp)/cus-load.el \
62         $(lisp)/finder-inf.el $(lisp)/subdirs.el $(lisp)/eshell/esh-groups.el \
63         $(lisp)/calc/calc-loaddefs.el $(lisp)/nxml/subdirs.el \
64         $(lisp)/cedet/semantic/loaddefs.el $(lisp)/cedet/ede/loaddefs.el \
65         $(lisp)/cedet/srecode/loaddefs.el
67 # Files to compile before others during a bootstrap.  This is done to
68 # speed up the bootstrap process.  The CC files are compiled first
69 # because CC mode tweaks the compilation process, and requiring
70 # cc-mode when it is not compiled doesn't work during the
71 # bootstrapping.
73 COMPILE_FIRST = \
74         $(lisp)/emacs-lisp/byte-opt.el \
75         $(lisp)/emacs-lisp/bytecomp.el \
76         $(lisp)/subr.el \
77         $(lisp)/progmodes/cc-mode.el \
78         $(lisp)/progmodes/cc-vars.el
80 # The actual Emacs command run in the targets below.
81 # The quotes around $(EMACS) are here because the user could type
82 # it with forward slashes and without quotes, which will fail if
83 # the shell is cmd.exe.
85 emacs = "$(EMACS)" $(EMACSOPT)
87 # Have to define the list of subdirs manually when not using sh.
88 WINS_CEDET=\
89         cedet \
90         cedet/ede \
91         cedet/semantic \
92         cedet/srecode
94 WINS_CEDET_SUBDIRS=\
95         cedet/semantic/analyze \
96         cedet/semantic/bovine \
97         cedet/semantic/decorate \
98         cedet/semantic/symref \
99         cedet/semantic/wisent
101 WINS_BASIC=\
102         calc \
103         calendar \
104         emacs-lisp \
105         emulation \
106         erc \
107         eshell \
108         gnus \
109         international \
110         language \
111         mail \
112         mh-e \
113         net \
114         nxml \
115         org \
116         play \
117         progmodes \
118         textmodes \
119         url
121 # Directories with lisp files to compile
122 WINS_ALMOST=$(WINS_BASIC) \
123         $(WINS_CEDET)
125 # Directories to extract data from (customs, autoloads, etc.)
126 WINS_UPDATES=$(WINS_ALMOST) \
127         $(WINS_CEDET_SUBDIRS)
129 # Directories to add to subdirs.el
130 WINS_SUBDIR=$(WINS_BASIC) \
131         obsolete
133 # All directories, except CEDET subdirs
134 WINS= $(WINS_ALMOST) \
135         term \
136         obsolete
138 doit:
140 cus-load.el-SH:
141         echo ";;; cus-load.el --- automatically extracted custom dependencies" > $@
142         echo ";;" >> $@; echo ";;; Code:" >> $@
143         echo "\f" >> $@
144         echo ";; Local Variables:" >> $@
145         echo ";; version-control: never" >> $@
146         echo ";; no-byte-compile: t" >> $@
147         echo ";; no-update-autoloads: t" >> $@
148         echo ";; End:" >> $@
150 cus-load.el-CMD:
151         echo ;;; cus-load.el --- automatically extracted custom dependencies> $@
152         echo ;;>> $@
153         echo ;;; Code:>> $@
154         echo.\f>> $@
155         echo ;; Local Variables:>> $@
156         echo ;; version-control: never>> $@
157         echo ;; no-byte-compile: t>> $@
158         echo ;; no-update-autoloads: t>> $@
159         echo ;; End:>> $@
161 $(lisp)/cus-load.el:
162         $(MAKE) $(MFLAGS) cus-load.el-$(SHELLTYPE)
163         mv cus-load.el-$(SHELLTYPE) $@
165 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
166 #          this can break with GNU Make 3.81 and later if sh.exe is used.
167 custom-deps: $(lisp)/cus-load.el $(lisp)/loaddefs.el doit
168         @echo Directories: $(WINS_UPDATES)
169         -$(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hook nil)$(ARGQUOTE) \
170                   -f custom-make-dependencies $(lisp) $(WINS_UPDATES)
172 finder-data: $(lisp)/loaddefs.el doit
173         @echo Directories: $(WINS_UPDATES)
174         $(emacs) -l finder -f finder-compile-keywords-make-dist $(lisp) $(WINS_UPDATES)
176 $(lisp)/loaddefs.el:
177         $(MAKE) $(MFLAGS) loaddefs.el-$(SHELLTYPE)
178         cp loaddefs.el-$(SHELLTYPE) $@
179         rm loaddefs.el-$(SHELLTYPE)
181 loaddefs.el-SH:
182         echo ";;; loaddefs.el --- automatically extracted autoloads" > $@
183         echo ";;" >> $@; echo ";;; Code:" >> $@
184         echo "\f" >> $@
185         echo ";; Local Variables:" >> $@
186         echo ";; version-control: never" >> $@
187         echo ";; no-byte-compile: t" >> $@
188         echo ";; no-update-autoloads: t" >> $@
189         echo ";; coding: utf-8" >> $@
190         echo ";; End:" >> $@
191         echo ";;; loaddefs.el ends here" >> $@
193 loaddefs.el-CMD:
194         echo ;;; loaddefs.el --- automatically extracted autoloads> $@
195         echo ;;>> $@
196         echo ;;; Code:>> $@
197         echo.\f>> $@
198         echo ;; Local Variables:>> $@
199         echo ;; version-control: never>> $@
200         echo ;; no-byte-compile: t>> $@
201         echo ;; no-update-autoloads: t>> $@
202         echo ;; coding: utf-8>> $@
203         echo ;; End:>> $@
204         echo ;;; loaddefs.el ends here>> $@
206 # Use . instead of $(lisp) because $(lisp) is an absolute file name,
207 # including a drive letter and any leading directories, so the generated
208 # loaddefs.el will mention file names that on other machine reference
209 # possibly non-existent directories.
211 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
212 #          this can break with GNU Make 3.81 and later if sh.exe is used.
213 autoloads: $(lisp)/loaddefs.el $(LOADDEFS) doit
214         @echo Directories: . $(WINS_UPDATES)
215         $(emacs) -l autoload \
216                 --eval $(ARGQUOTE)(setq find-file-hook nil find-file-suppress-same-file-warnings t)$(ARGQUOTE) \
217                 -f w32-batch-update-autoloads "$(lisp)/loaddefs.el" $(MAKE) . $(WINS_UPDATES)
219 $(lisp)/subdirs.el:
220         $(MAKE) $(MFLAGS) update-subdirs
222 # Need separate version for sh and native cmd.exe
223 update-subdirs: update-subdirs-$(SHELLTYPE)
225 update-subdirs-CMD: doit
226         echo ;; -*- no-byte-compile: t -*-> $(lisp)/subdirs.el
227         echo ;; In load-path, after this directory should come>> $(lisp)/subdirs.el
228         echo ;; certain of its subdirectories.  Here we specify them.>> $(lisp)/subdirs.el
229         echo (normal-top-level-add-to-load-path $(SQUOTE)(>> $(lisp)/subdirs.el
230         @for %%d in ($(WINS_SUBDIR) cedet) do echo "%%d">> $(lisp)/subdirs.el
231         echo ))>> $(lisp)/subdirs.el
233 update-subdirs-SH: doit
234         $(srcdir)/update-subdirs $(lisp); \
235         for file in $(WINS_SUBDIR); do \
236            $(srcdir)/update-subdirs $$file; \
237         done;
239 updates: update-subdirs autoloads mh-autoloads finder-data custom-deps
241 # This is useful after "cvs up".
242 cvs-update: recompile autoloads finder-data custom-deps
244 # Update the AUTHORS file.
246 update-authors:
247         $(emacs) -l authors -f batch-update-authors $(srcdir)/etc/AUTHORS $(srcdir)
249 TAGS: $(lisptagsfiles1) $(lisptagsfiles2)
250         $(ETAGS) $(lisptagsfiles1) $(lisptagsfiles2)
252 TAGS-LISP: $(lisptagsfiles1) $(lisptagsfiles2)
253         $(ETAGS) -o TAGS-LISP $(lisptagsfiles1) $(lisptagsfiles2)
255 .SUFFIXES: .elc .el
257 .el.elc:
258         -$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
260 # Compile all Lisp files, but don't recompile those that are up to
261 # date.  Some files don't actually get compiled because they set the
262 # local variable no-byte-compile.
264 # All .elc files are made writable before compilation in case we
265 # checked out read-only (CVS option -r).  Files MUST be compiled one by
266 # one.  If we compile several files in a row we can't make sure that
267 # the compilation environment is clean.  We also set the load-path of
268 # the Emacs used for compilation to the current directory and its
269 # subdirectories, to make sure require's and load's in the files being
270 # compiled find the right files.
272 # Need separate version for sh and native cmd.exe
273 compile: $(lisp)/subdirs.el mh-autoloads compile-$(SHELLTYPE) doit
275 compile-CMD:
276 #       -for %%f in ($(lisp) $(WINS)) do for %%g in (%%f\*.elc) do @attrib -r %%g
277         for %%f in ($(COMPILE_FIRST)) do \
278           $(emacs) -l loaddefs $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile-if-not-done %%f
279         for %%f in (. $(WINS)) do for %%g in (%%f/*.el) do \
280           $(emacs) -l loaddefs $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile-if-not-done %%f/%%g
282 compile-SH:
283 #       for elc in $(lisp)/*.elc $(lisp)/*/*.elc; do attrib -r $$elc; done
284         for el in $(COMPILE_FIRST); do \
285           echo Compiling $$el; \
286           $(emacs) -l loaddefs $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile-if-not-done $$el; \
287         done
288         for dir in $(lisp) $(WINS); do \
289           for el in $$dir/*.el; do \
290             if test -f $$el; \
291             then \
292               echo Compiling $$el; \
293               $(emacs) -l loaddefs $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile-if-not-done $$el; \
294             fi \
295           done; \
296         done
298 # Compile all Lisp files.  This is like `compile' but compiles files
299 # unconditionally.  Some files don't actually get compiled because they
300 # set the local variable no-byte-compile.
302 compile-always: $(lisp)/subdirs.el compile-always-$(SHELLTYPE) doit
304 compile-always-CMD:
305 #       -for %%f in ($(lisp) $(WINS)) do for %%g in (%%f\*.elc) do @attrib -r %%g
306         for %%f in ($(COMPILE_FIRST)) do $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile %%f
307         for %%f in (. $(WINS)) do for %%g in (%%f/*.el) do $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile %%f/%%g
309 compile-always-SH:
310 #       for elc in $(lisp)/*.elc $(lisp)/*/*.elc; do attrib -r $$elc; done
311         for el in $(COMPILE_FIRST); do \
312           echo Compiling $$el; \
313           $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \
314         done
315         for dir in $(lisp) $(WINS); do \
316           for el in $$dir/*.el; do \
317             echo Compiling $$el; \
318             $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \
319           done; \
320         done
322 compile-calc: compile-calc-$(SHELLTYPE)
324 compile-calc-CMD:
325         for %%f in ($(lisp)/calc/*.el) do $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile %%f
327 compile-calc-SH:
328         for el in $(lisp)/calc/*.el; do \
329           echo Compiling $$el; \
330           $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $$el || exit 1; \
331         done
333 # Backup compiled Lisp files in elc.tar.gz.  If that file already
334 # exists, make a backup of it.
336 backup-compiled-files:
337         -mv $(lisp)/elc.tar.gz $(lisp)/elc.tar.gz~
338         -tar czf $(lisp)/elc.tar.gz $(lisp)/*.elc $(lisp)/*/*.elc
340 # Compile Lisp files, but save old compiled files first.
342 compile-after-backup: backup-compiled-files compile-always
344 compile-first:  $(lisp)/emacs-lisp/bytecomp.elc $(lisp)/emacs-lisp/byte-opt.elc \
345         $(lisp)/emacs-lisp/autoload.elc
347 # Recompile all Lisp files which are newer than their .elc files.
348 # Note that this doesn't create .elc files.  It only recompiles if an
349 # .elc is present.
350 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
351 #          this can break with GNU Make 3.81 and later if sh.exe is used.
352 recompile: compile-first autoloads doit $(lisp)/progmodes/cc-mode.elc
353         $(emacs) --eval $(ARGQUOTE)(batch-byte-recompile-directory 0)$(ARGQUOTE) $(lisp)
355 $(lisp)/calendar/cal-loaddefs.el:
356         "$(EMACS)" $(EMACSOPT) -l autoload \
357            --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \
358            --eval "(setq find-file-suppress-same-file-warnings t)" \
359            --eval "(setq make-backup-files nil)" \
360            -f w32-batch-update-autoloads "$(lisp)/calendar/cal-loaddefs.el" \
361               $(MAKE) ./calendar
363 $(lisp)/calendar/diary-loaddefs.el:
364         "$(EMACS)" $(EMACSOPT) -l autoload \
365            --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \
366            --eval "(setq find-file-suppress-same-file-warnings t)" \
367            --eval "(setq make-backup-files nil)" \
368            -f w32-batch-update-autoloads $(lisp)/calendar/diary-loaddefs.el \
369               $(MAKE) ./calendar
371 $(lisp)/calendar/hol-loaddefs.el:
372         "$(EMACS)" $(EMACSOPT) -l autoload \
373            --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \
374            --eval "(setq find-file-suppress-same-file-warnings t)" \
375            --eval "(setq make-backup-files nil)" \
376            -f w32-batch-update-autoloads $(lisp)/calendar/hol-loaddefs.el \
377               $(MAKE) ./calendar
379 # Update MH-E internal autoloads. These are not to be confused with
380 # the autoloads for the MH-E entry points, which are already in
381 # loaddefs.el.
382 MH_E_SRC = $(lisp)/mh-e/mh-acros.el $(lisp)/mh-e/mh-alias.el    \
383         $(lisp)/mh-e/mh-buffers.el $(lisp)/mh-e/mh-compat.el    \
384         $(lisp)/mh-e/mh-comp.el $(lisp)/mh-e/mh-e.el            \
385         $(lisp)/mh-e/mh-folder.el $(lisp)/mh-e/mh-funcs.el      \
386         $(lisp)/mh-e/mh-gnus.el $(lisp)/mh-e/mh-identity.el     \
387         $(lisp)/mh-e/mh-inc.el $(lisp)/mh-e/mh-junk.el          \
388         $(lisp)/mh-e/mh-letter.el $(lisp)/mh-e/mh-limit.el      \
389         $(lisp)/mh-e/mh-mime.el $(lisp)/mh-e/mh-print.el        \
390         $(lisp)/mh-e/mh-scan.el $(lisp)/mh-e/mh-search.el       \
391         $(lisp)/mh-e/mh-seq.el $(lisp)/mh-e/mh-show.el          \
392         $(lisp)/mh-e/mh-speed.el $(lisp)/mh-e/mh-thread.el      \
393         $(lisp)/mh-e/mh-tool-bar.el $(lisp)/mh-e/mh-utils.el    \
394         $(lisp)/mh-e/mh-xface.el
396 # See the commentary for autoloads above for why we use ./mh-e below
397 # instead of $(lisp)/mh-e.
398 mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el
399 $(lisp)/mh-e/mh-loaddefs.el: $(MH_E_SRC)
400         "$(EMACS)" $(EMACSOPT) \
401            -l autoload \
402            --eval $(ARGQUOTE)(setq generate-autoload-cookie $(DQUOTE);;;###mh-autoload$(DQUOTE))$(ARGQUOTE) \
403            --eval $(ARGQUOTE)(setq find-file-suppress-same-file-warnings t)$(ARGQUOTE) \
404            --eval $(ARGQUOTE)(setq make-backup-files nil)$(ARGQUOTE) \
405            -f w32-batch-update-autoloads \
406            $(ARGQUOTE)$(lisp)/mh-e/mh-loaddefs.el$(ARGQUOTE) $(MAKE) ./mh-e
408 # Prepare a bootstrap in the lisp subdirectory.
410 # Build loaddefs.el to make sure it's up-to-date.  If it's not, that
411 # might lead to errors during the bootstrap because something fails to
412 # autoload as expected.  If there is no emacs binary, then we can't
413 # build autoloads yet.  In that case we have to use ldefs-boot.el;
414 # bootstrap should always work with ldefs-boot.el.  (Because
415 # loaddefs.el is an automatically generated file, we don't want to
416 # store it in the source repository).
418 # Remove compiled Lisp files so that bootstrap-emacs will be built from
419 # sources only.
421 # Need separate version for sh and native cmd.exe
422 bootstrap-clean:
423         - $(DEL) $(lisp)/loaddefs.el
424         $(MAKE) $(MFLAGS) bootstrap-clean-$(SHELLTYPE)
426 bootstrap-clean-CMD:
427 #       if exist "$(EMACS)" $(MAKE) $(MFLAGS) autoloads
428         -for %%f in (. $(WINS)) do for %%g in (%%f\*.elc) do @$(DEL) %%g
429         -for %%f in ($(WINS_CEDET_SUBDIRS)) do for %%g in (%%f\*.elc) do @$(DEL) %%g
431 bootstrap-clean-SH:
432 #       if test -f "$(EMACS)"; then $(MAKE) $(MFLAGS) autoloads; fi
433 #       -rm -f $(lisp)/*.elc $(lisp)/*/*.elc
434         -for dir in . $(WINS) $(WINS_CEDET_SUBDIRS); do rm -f $$dir/*.elc $$dir/*/*.elc $$dir/*/*/*.elc; done
436 # Generate/update files for the bootstrap process.
437 # When done, remove bootstrap-emacs from ../bin, so that
438 # it will not be mistaken for an installed binary.
440 bootstrap: update-subdirs autoloads mh-autoloads compile finder-data custom-deps
441         - $(DEL) "$(EMACS)"
444 # Assuming INSTALL_DIR is defined, copy the elisp files to it
445 # Windows 95 makes this harder than it should be.
447 install:
448                 - mkdir "$(INSTALL_DIR)/lisp"
449                 - $(DEL) ../same-dir.tst
450                 - $(DEL) "$(INSTALL_DIR)/same-dir.tst"
451                 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"
452 #ifdef COPY_LISP_SOURCE
453                 $(IFNOTSAMEDIR) $(MAKE) $(MFLAGS) install-lisp-$(SHELLTYPE) $(ENDIF)
454 #else
455 #               $(IFNOTSAMEDIR) $(CP_DIR) *.elc "$(INSTALL_DIR)/lisp" $(ENDIF)
456 #               $(IFNOTSAMEDIR) $(CP) cus-load.el "$(INSTALL_DIR)/lisp" $(ENDIF)
457 #               $(IFNOTSAMEDIR) $(CP) forms*.el "$(INSTALL_DIR)/lisp" $(ENDIF)
458 #               $(IFNOTSAMEDIR) $(CP) patcomp.el "$(INSTALL_DIR)/lisp" $(ENDIF)
459 #               $(IFNOTSAMEDIR) $(CP) subdirs.el "$(INSTALL_DIR)/lisp" $(ENDIF)
460 #               $(IFNOTSAMEDIR) $(CP) version.el "$(INSTALL_DIR)/lisp" $(ENDIF)
461 #               $(IFNOTSAMEDIR) $(CP) mail/blessmail.el "$(INSTALL_DIR)/lisp/mail" $(ENDIF)
462 #               $(IFNOTSAMEDIR) $(CP) mail/sc.el "$(INSTALL_DIR)/lisp/mail" $(ENDIF)
463 #               $(IFNOTSAMEDIR) $(CP) play/bruce.el "$(INSTALL_DIR)/lisp/play" $(ENDIF)
464 #               $(IFNOTSAMEDIR) $(CP) international/latin-*.el "$(INSTALL_DIR)/lisp/international" $(ENDIF)
465 #               $(IFNOTSAMEDIR) $(CP) international/mule-conf.el "$(INSTALL_DIR)/lisp/international" $(ENDIF)
466 #endif
467                 - $(DEL) ../same-dir.tst
468                 - $(DEL) "$(INSTALL_DIR)/same-dir.tst"
470 # Need to copy *.el files first, to avoid "source file is newer" annoyance
471 # since cp does not preserve time stamps
472 install-lisp-SH:
473         cp -f *.el "$(INSTALL_DIR)/lisp"
474         for dir in $(WINS); do [ -d "$(INSTALL_DIR)/lisp/$$dir" ] || mkdir "$(INSTALL_DIR)/lisp/$$dir"; done
475         for dir in $(WINS); do cp -f $$dir/*.el "$(INSTALL_DIR)/lisp/$$dir"; done
476         for dir in . $(WINS); do cp $$dir/*.elc "$(INSTALL_DIR)/lisp/$$dir"; done
478 install-lisp-CMD:
479         cp -f *.el "$(INSTALL_DIR)/lisp"
480         for %%f in ($(WINS)) do if not exist "$(INSTALL_DIR)/lisp/%%f" mkdir "$(INSTALL_DIR)/lisp/%%f"
481         for %%f in ($(WINS)) do cp -f %%f/*.el "$(INSTALL_DIR)/lisp/%%f"
482         for %%f in (. $(WINS)) do cp -f %%f/*.elc "$(INSTALL_DIR)/lisp/%%f"
484 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
485 #          this can break with GNU Make 3.81 and later if sh.exe is used.
486 check-declare:
487         $(emacs) -l $(lisp)/emacs-lisp/check-declare --eval $(ARGQUOTE)(check-declare-directory $(DQUOTE)$(lisp)$(DQUOTE))$(ARGQUOTE)
490 # Maintenance
492 # We used to delete *~ here, but that might inadvertently remove
493 # precious files if it happens to match their short 8+3 aliases.
494 clean:
495         - $(DEL) *.el~
496         - $(DEL) calc/calc-loaddefs.el~
497         - $(DEL) eshell/esh-groups.el~
499 distclean: clean
500         - $(DEL) $(lisp)/Makefile
502 maintainer-clean: bootstrap-clean distclean
503         - $(DEL) $(AUTOGENEL)
505 # Dependencies
507 # CC Mode uses a compile time macro system which causes a compile time
508 # dependency in cc-*.elc files on the macros in other cc-*.el and the
509 # version string in cc-defs.el.
510 $(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-awk.elc\
511  $(lisp)/progmodes/cc-cmds.elc $(lisp)/progmodes/cc-compat.elc\
512  $(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-fonts.elc\
513  $(lisp)/progmodes/cc-langs.elc $(lisp)/progmodes/cc-menus.elc\
514  $(lisp)/progmodes/cc-mode.elc $(lisp)/progmodes/cc-styles.elc\
515  $(lisp)/progmodes/cc-subword.elc $(lisp)/progmodes/cc-vars.elc: \
516    $(lisp)/progmodes/cc-bytecomp.elc $(lisp)/progmodes/cc-defs.elc
518 $(lisp)/progmodes/cc-align.elc: \
519    $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
521 $(lisp)/progmodes/cc-cmds.elc: \
522    $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
524 $(lisp)/progmodes/cc-compat.elc: \
525    $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-styles.elc \
526    $(lisp)/progmodes/cc-engine.elc
528 $(lisp)/progmodes/cc-defs.elc: $(lisp)/progmodes/cc-bytecomp.elc \
529    $(lisp)/emacs-lisp/cl.elc $(lisp)/emacs-lisp/regexp-opt.elc
531 $(lisp)/progmodes/cc-engine.elc: $(lisp)/progmodes/cc-langs.elc \
532    $(lisp)/progmodes/cc-vars.elc
534 $(lisp)/progmodes/cc-fonts.elc: $(lisp)/progmodes/cc-langs.elc \
535    $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
536    $(lisp)/font-lock.elc
538 $(lisp)/progmodes/cc-langs.elc: $(lisp)/progmodes/cc-vars.elc \
539    $(lisp)/emacs-lisp/cl.elc
541 $(lisp)/progmodes/cc-mode.elc: $(lisp)/progmodes/cc-langs.elc \
542    $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
543    $(lisp)/progmodes/cc-styles.elc $(lisp)/progmodes/cc-cmds.elc \
544    $(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-menus.elc
546 $(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \
547    $(lisp)/progmodes/cc-align.elc
549 $(lisp)/progmodes/cc-subword.elc: $(lisp)/progmodes/cc-cmds.elc
551 $(lisp)/progmodes/cc-vars.elc: $(lisp)/custom.elc $(lisp)/widget.elc
553 # MH-E dependencies, mainly to prevent failures with parallel
554 # compilation, due to race conditions between writing a given FOO.elc
555 # file and another file being compiled that says "(require FOO)",
556 # which causes Emacs to try to read FOO.elc.
557 MH_E_DIR = ./mh-e
558 $(MH_E_DIR)/mh-alias.elc $(MH_E_DIR)/mh-comp.elc $(MH_E_DIR)/mh-folder.elc\
559  $(MH_E_DIR)/mh-funcs.elc $(MH_E_DIR)/mh-identity.elc $(MH_E_DIR)/mh-inc.elc\
560  $(MH_E_DIR)/mh-junk.elc $(MH_E_DIR)/mh-letter.elc $(MH_E_DIR)/mh-limit.elc\
561  $(MH_E_DIR)/mh-mime.elc $(MH_E_DIR)/mh-print.elc $(MH_E_DIR)/mh-scan.elc\
562  $(MH_E_DIR)/mh-search.elc $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-show.elc\
563  $(MH_E_DIR)/mh-speed.elc $(MH_E_DIR)/mh-thread.elc $(MH_E_DIR)/mh-tool-bar.elc\
564  $(MH_E_DIR)/mh-utils.elc $(MH_E_DIR)/mh-xface.elc:\
565    $(MH_E_DIR)/mh-e.elc
567 $(MH_E_DIR)/mh-alias.elc $(MH_E_DIR)/mh-e.elc $(MH_E_DIR)/mh-folder.elc\
568  $(MH_E_DIR)/mh-inc.elc $(MH_E_DIR)/mh-junk.elc $(MH_E_DIR)/mh-limit.elc\
569  $(MH_E_DIR)/mh-search.elc $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-speed.elc\
570  $(MH_E_DIR)/mh-utils.elc $(MH_E_DIR)/mh-xface.elc:\
571    $(lisp)/emacs-lisp/cl.elc
573 $(MH_E_DIR)/mh-comp.elc $(MH_E_DIR)/mh-folder.elc $(MH_E_DIR)/mh-funcs.elc\
574  $(MH_E_DIR)/mh-junk.elc $(MH_E_DIR)/mh-limit.elc $(MH_E_DIR)/mh-print.elc\
575  $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-show.elc $(MH_E_DIR)/mh-thread.elc:\
576    $(MH_E_DIR)/mh-scan.elc
578 $(MH_E_DIR)/mh-folder.elc $(MH_E_DIR)/mh-letter.elc $(MH_E_DIR)/mh-mime.elc\
579  $(MH_E_DIR)/mh-search.elc $(MH_E_DIR)/mh-show.elc $(MH_E_DIR)/mh-speed.elc:\
580    $(lisp)/gnus/gnus-util.elc
582 $(MH_E_DIR)/mh-folder.elc $(MH_E_DIR)/mh-search.elc:\
583    $(lisp)/progmodes/which-func.elc
585 $(MH_E_DIR)/mh-letter.elc $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-show.elc\
586  $(MH_E_DIR)/mh-utils.elc:\
587    $(lisp)/font-lock.elc
589 $(MH_E_DIR)/mh-alias.elc $(MH_E_DIR)/mh-show.elc: $(lisp)/net/goto-addr.elc
591 $(MH_E_DIR)/mh-comp.elc: $(lisp)/mail/sendmail.elc
593 $(MH_E_DIR)/mh-e.elc: $(MH_E_DIR)/mh-buffers.elc $(lisp)/gnus/gnus.elc \
594    $(lisp)/cus-face.elc
596 $(MH_E_DIR)/mh-letter.elc: $(lisp)/gnus/mailcap.elc $(lisp)/gnus/mm-decode.elc \
597    $(lisp)/gnus/mm-view.elc  $(lisp)/gnus/mml.elc $(lisp)/gnus/message.elc
599 $(MH_E_DIR)/mh-print.elc:  $(lisp)/ps-print.elc
601 $(MH_E_DIR)/mh-search.elc: $(lisp)/imenu.elc
603 $(MH_E_DIR)/mh-show.elc: $(lisp)/gnus/gnus-cite.elc
605 $(MH_E_DIR)/mh-speed.elc: $(lisp)/speedbar.elc $(lisp)/emacs-lisp/timer.elc
607 $(MH_E_DIR)/mh-tool-bar.elc: $(lisp)/tool-bar.elc