]> code.delx.au - gnu-emacs/blobdiff - lisp/Makefile.in
(proced-after-send-signal-hook): Use defcustom.
[gnu-emacs] / lisp / Makefile.in
index d391080f493be75356a08ae63d9fddc85376a3c0..7cbc4442db6014d0db5c6e4b3db4c7380b1db965 100644 (file)
@@ -1,6 +1,6 @@
 # Maintenance productions for the Lisp directory
 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-#   2008  Free Software Foundation, Inc.
+#   2008, 2009  Free Software Foundation, Inc.
 
 # This file is part of GNU Emacs.
 
@@ -34,7 +34,7 @@ EMACS = ../src/emacs
 EMACSOPT = -batch --no-site-file --multibyte
 
 # Extra flags to pass to the byte compiler
-BYTE_COMPILE_EXTRA_FLAGS = 
+BYTE_COMPILE_EXTRA_FLAGS =
 # For example to not display the undefined function warnings you can use this:
 # BYTE_COMPILE_EXTRA_FLAGS = --eval '(setq byte-compile-warnings (quote (not unresolved)))'
 # The example above is just for developers, it should not be used by default.
@@ -63,18 +63,11 @@ AUTOGENEL = loaddefs.el \
 
 # Files to compile before others during a bootstrap.  This is done to
 # speed up the bootstrap process.
-# Why `subr.elc'?  It's dumped so byte-compiling it early shouldn't make
-# any difference!?  --Stef
-# Some CC files are compiled first because CC mode tweaks the compilation
-# process, and requiring cc-mode when it is not compiled doesn't work during
-# the bootstrapping.
 
 COMPILE_FIRST = \
        $(lisp)/emacs-lisp/bytecomp.elc \
        $(lisp)/emacs-lisp/byte-opt.elc \
-       $(lisp)/subr.elc \
-       $(lisp)/progmodes/cc-mode.elc \
-       $(lisp)/progmodes/cc-vars.elc
+       $(lisp)/emacs-lisp/autoload.elc
 
 # The actual Emacs command run in the targets below.
 
@@ -145,7 +138,7 @@ autoloads: $(LOADDEFS) doit
        echo Directories: $$wins; \
        $(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins
 
-# This is required by the witness-emacs target in ../src/Makefile, so
+# This is required by the bootstrap-emacs target in ../src/Makefile, so
 # we know that if we have an emacs executable, we also have a subdirs.el.
 $(lisp)/subdirs.el:
        $(MAKE) $(MFLAGS) update-subdirs
@@ -687,7 +680,6 @@ ELCFILES = \
        $(lisp)/informat.elc \
        $(lisp)/international/ccl.elc \
        $(lisp)/international/characters.elc \
-       $(lisp)/international/codepage.elc \
        $(lisp)/international/encoded-kb.elc \
        $(lisp)/international/fontset.elc \
        $(lisp)/international/isearch-x.elc \
@@ -709,7 +701,6 @@ ELCFILES = \
        $(lisp)/international/robin.elc \
        $(lisp)/international/titdic-cnv.elc \
        $(lisp)/international/utf-7.elc \
-       $(lisp)/isearch-multi.elc \
        $(lisp)/isearch.elc \
        $(lisp)/isearchb.elc \
        $(lisp)/iswitchb.elc \
@@ -771,6 +762,7 @@ ELCFILES = \
        $(lisp)/mail/rmail.elc \
        $(lisp)/mail/rmailedit.elc \
        $(lisp)/mail/rmailkwd.elc \
+       $(lisp)/mail/rmailmm.elc \
        $(lisp)/mail/rmailmsc.elc \
        $(lisp)/mail/rmailout.elc \
        $(lisp)/mail/rmailsort.elc \
@@ -814,6 +806,7 @@ ELCFILES = \
        $(lisp)/minibuf-eldef.elc \
        $(lisp)/minibuffer.elc \
        $(lisp)/misc.elc \
+       $(lisp)/misearch.elc \
        $(lisp)/mouse-copy.elc \
        $(lisp)/mouse-drag.elc \
        $(lisp)/mouse-sel.elc \
@@ -839,6 +832,7 @@ ELCFILES = \
        $(lisp)/net/hmac-md5.elc \
        $(lisp)/net/imap.elc \
        $(lisp)/net/ldap.elc \
+       $(lisp)/net/mairix.elc \
        $(lisp)/net/net-utils.elc \
        $(lisp)/net/netrc.elc \
        $(lisp)/net/newst-backend.elc \
@@ -871,6 +865,7 @@ ELCFILES = \
        $(lisp)/net/tramp.elc \
        $(lisp)/net/trampver.elc \
        $(lisp)/net/webjump.elc \
+       $(lisp)/net/xesam.elc \
        $(lisp)/net/zeroconf.elc \
        $(lisp)/newcomment.elc \
        $(lisp)/novice.elc \
@@ -906,14 +901,17 @@ ELCFILES = \
        $(lisp)/obsolete/lazy-lock.elc \
        $(lisp)/obsolete/old-whitespace.elc \
        $(lisp)/obsolete/options.elc \
+       $(lisp)/obsolete/resume.elc \
        $(lisp)/obsolete/rnews.elc \
        $(lisp)/obsolete/rnewspost.elc \
        $(lisp)/obsolete/sc.elc \
        $(lisp)/obsolete/scribe.elc \
        $(lisp)/obsolete/swedish.elc \
+       $(lisp)/obsolete/vc-mcvs.elc \
        $(lisp)/obsolete/x-menu.elc \
        $(lisp)/org/org-agenda.elc \
        $(lisp)/org/org-archive.elc \
+       $(lisp)/org/org-attach.elc \
        $(lisp)/org/org-bbdb.elc \
        $(lisp)/org/org-bibtex.elc \
        $(lisp)/org/org-clock.elc \
@@ -922,21 +920,27 @@ ELCFILES = \
        $(lisp)/org/org-exp.elc \
        $(lisp)/org/org-export-latex.elc \
        $(lisp)/org/org-faces.elc \
+       $(lisp)/org/org-footnote.elc \
        $(lisp)/org/org-gnus.elc \
        $(lisp)/org/org-id.elc \
        $(lisp)/org/org-info.elc \
+       $(lisp)/org/org-install.elc \
        $(lisp)/org/org-irc.elc \
        $(lisp)/org/org-jsinfo.elc \
+       $(lisp)/org/org-list.elc \
        $(lisp)/org/org-mac-message.elc \
        $(lisp)/org/org-macs.elc \
        $(lisp)/org/org-mew.elc \
        $(lisp)/org/org-mhe.elc \
        $(lisp)/org/org-mouse.elc \
+       $(lisp)/org/org-plot.elc \
        $(lisp)/org/org-publish.elc \
        $(lisp)/org/org-remember.elc \
        $(lisp)/org/org-rmail.elc \
        $(lisp)/org/org-table.elc \
+       $(lisp)/org/org-timer.elc \
        $(lisp)/org/org-vm.elc \
+       $(lisp)/org/org-w3m.elc \
        $(lisp)/org/org-wl.elc \
        $(lisp)/org/org.elc \
        $(lisp)/outline.elc \
@@ -1061,6 +1065,7 @@ ELCFILES = \
        $(lisp)/progmodes/prolog.elc \
        $(lisp)/progmodes/ps-mode.elc \
        $(lisp)/progmodes/python.elc \
+       $(lisp)/progmodes/ruby-mode.elc \
        $(lisp)/progmodes/scheme.elc \
        $(lisp)/progmodes/sh-script.elc \
        $(lisp)/progmodes/simula.elc \
@@ -1083,7 +1088,6 @@ ELCFILES = \
        $(lisp)/repeat.elc \
        $(lisp)/replace.elc \
        $(lisp)/reposition.elc \
-       $(lisp)/resume.elc \
        $(lisp)/reveal.elc \
        $(lisp)/rfn-eshadow.elc \
        $(lisp)/rot13.elc \
@@ -1116,7 +1120,9 @@ ELCFILES = \
        $(lisp)/tar-mode.elc \
        $(lisp)/tempo.elc \
        $(lisp)/term.elc \
-       $(lisp)/term/mac-win.elc \
+       $(lisp)/term/common-win.elc \
+       $(lisp)/term/internal.elc \
+       $(lisp)/term/ns-win.elc \
        $(lisp)/term/pc-win.elc \
        $(lisp)/term/rxvt.elc \
        $(lisp)/term/sun.elc \
@@ -1215,16 +1221,17 @@ ELCFILES = \
        $(lisp)/url/url-util.elc \
        $(lisp)/url/url-vars.elc \
        $(lisp)/url/url.elc \
-       $(lisp)/url/vc-dav.elc \
        $(lisp)/userlock.elc \
+       $(lisp)/vc-annotate.elc \
        $(lisp)/vc-arch.elc \
        $(lisp)/vc-bzr.elc \
        $(lisp)/vc-cvs.elc \
+       $(lisp)/vc-dav.elc \
+       $(lisp)/vc-dir.elc \
        $(lisp)/vc-dispatcher.elc \
        $(lisp)/vc-git.elc \
        $(lisp)/vc-hg.elc \
        $(lisp)/vc-hooks.elc \
-       $(lisp)/vc-mcvs.elc \
        $(lisp)/vc-mtn.elc \
        $(lisp)/vc-rcs.elc \
        $(lisp)/vc-sccs.elc \
@@ -1306,6 +1313,7 @@ compile-always: doit
        $(MAKE) $(MFLAGS) compile EMACS=$(EMACS)
 
 ## In case any files are missing from ELCFILES.
+## Why is the UnicodeData check needed, when these files are no-byte-compile?
 compile-last:
        @wd=$(lisp); $(setwins); \
        els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \
@@ -1313,6 +1321,7 @@ compile-last:
          test -f $$el || continue; \
          test -f $${el}c && continue; \
          grep 'no-byte-compile: t' $$el > /dev/null && continue; \
+         head -n 1 $$el | grep '^;; Automatically generated from UnicodeData.txt.' > /dev/null && continue; \
          sel=`echo $$el | sed "s|^$(lisp)|\\$$(lisp)|"`; \
          echo "Maintainer warning: $$sel missing from \$$ELCFILES?"; \
          echo "Compiling $$el"; \
@@ -1338,21 +1347,20 @@ compile-after-backup: backup-compiled-files compile-always
 
 # Recompile all Lisp files which are newer than their .elc files and compile
 # new ones.
-# FIXME this could use the 'compile' target now, and let make figure out
-# what needs to be done.  That would be parallelizable, but would not
-# pick up new files not in ELCFILES.
-recompile: doit $(LOADDEFS) $(lisp)/progmodes/cc-mode.elc
+# This has the same effect as compile-main (followed up with compile-last,
+# if ELCFILES is out of date).  recompile has some advantages:
+# i) It is faster (on a single processor), since it only has to start
+# Emacs once.  It was 33% faster on a test with a random 10% of the .el
+# files needing recompilation.
+# ii) The explicit cc-mode dependency.
+# recompile's disadvantages are:
+# i) Not parallelizable.
+# ii) Compiling multiple files in the same instance of Emacs is wrong,
+# since the environment of later files is affected by definitions in
+# earlier ones.
+recompile: doit $(LOADDEFS) compile-first $(lisp)/progmodes/cc-mode.elc
        $(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
 
-# CC Mode uses a compile time macro system which causes a compile time
-# dependency in cc-mode.elc on the macros in cc-langs.el and the
-# version string in cc-defs.el.
-$(lisp)/progmodes/cc-mode.elc: \
-       $(lisp)/progmodes/cc-mode.el \
-       $(lisp)/progmodes/cc-langs.el \
-       $(lisp)/progmodes/cc-defs.el
-       $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
-
 # Update MH-E internal autoloads. These are not to be confused with
 # the autoloads for the MH-E entry points, which are already in loaddefs.el.
 MH_E_DIR = $(lisp)/mh-e
@@ -1431,9 +1439,10 @@ $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC)
 bootstrap-clean:
        cd $(lisp); rm -f *.elc */*.elc $(AUTOGENEL)
 
-distclean: bootstrap-clean
+distclean:
        -rm -f ./Makefile
-maintainer-clean: distclean
+
+maintainer-clean: distclean bootstrap-clean
 
 .PHONY: check-declare
 
@@ -1441,4 +1450,107 @@ check-declare:
        $(emacs) -l $(lisp)/emacs-lisp/check-declare \
          --eval '(check-declare-directory "$(lisp)")'
 
+# Dependencies
+
+# CC Mode uses a compile time macro system which causes a compile time
+# dependency in cc-*.elc files on the macros in other cc-*.el and the
+# version string in cc-defs.el.
+$(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-awk.elc\
+ $(lisp)/progmodes/cc-cmds.elc $(lisp)/progmodes/cc-compat.elc\
+ $(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-fonts.elc\
+ $(lisp)/progmodes/cc-langs.elc $(lisp)/progmodes/cc-menus.elc\
+ $(lisp)/progmodes/cc-mode.elc $(lisp)/progmodes/cc-styles.elc\
+ $(lisp)/progmodes/cc-subword.elc $(lisp)/progmodes/cc-vars.elc: \
+   $(lisp)/progmodes/cc-bytecomp.elc $(lisp)/progmodes/cc-defs.elc
+
+$(lisp)/progmodes/cc-align.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-cmds.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-compat.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-styles.elc \
+   $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-defs.elc: $(lisp)/progmodes/cc-bytecomp.elc \
+   $(lisp)/emacs-lisp/cl.elc $(lisp)/emacs-lisp/regexp-opt.elc
+
+$(lisp)/progmodes/cc-engine.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc
+
+$(lisp)/progmodes/cc-fonts.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
+   $(lisp)/font-lock.elc
+
+$(lisp)/progmodes/cc-langs.elc: $(lisp)/progmodes/cc-vars.elc \
+   $(lisp)/emacs-lisp/cl.elc
+
+$(lisp)/progmodes/cc-mode.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
+   $(lisp)/progmodes/cc-styles.elc $(lisp)/progmodes/cc-cmds.elc \
+   $(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-menus.elc
+
+$(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \
+   $(lisp)/progmodes/cc-align.elc
+
+$(lisp)/progmodes/cc-subword.elc: $(lisp)/progmodes/cc-cmds.elc
+
+$(lisp)/progmodes/cc-vars.elc: $(lisp)/custom.elc $(lisp)/widget.elc
+
+# MH-E dependencies, mainly to prevent failures with parallel
+# compilation, due to race conditions between writing a given FOO.elc
+# file and another file being compiled that says "(require FOO)",
+# which causes Emacs to try to read FOO.elc.
+$(MH_E_DIR)/mh-alias.elc $(MH_E_DIR)/mh-comp.elc $(MH_E_DIR)/mh-folder.elc\
+ $(MH_E_DIR)/mh-funcs.elc $(MH_E_DIR)/mh-identity.elc $(MH_E_DIR)/mh-inc.elc\
+ $(MH_E_DIR)/mh-junk.elc $(MH_E_DIR)/mh-letter.elc $(MH_E_DIR)/mh-limit.elc\
+ $(MH_E_DIR)/mh-mime.elc $(MH_E_DIR)/mh-print.elc $(MH_E_DIR)/mh-scan.elc\
+ $(MH_E_DIR)/mh-search.elc $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-show.elc\
+ $(MH_E_DIR)/mh-speed.elc $(MH_E_DIR)/mh-thread.elc $(MH_E_DIR)/mh-tool-bar.elc\
+ $(MH_E_DIR)/mh-utils.elc $(MH_E_DIR)/mh-xface.elc:\
+   $(MH_E_DIR)/mh-e.elc
+
+$(MH_E_DIR)/mh-alias.elc $(MH_E_DIR)/mh-e.elc $(MH_E_DIR)/mh-folder.elc\
+ $(MH_E_DIR)/mh-inc.elc $(MH_E_DIR)/mh-junk.elc $(MH_E_DIR)/mh-limit.elc\
+ $(MH_E_DIR)/mh-search.elc $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-speed.elc\
+ $(MH_E_DIR)/mh-utils.elc $(MH_E_DIR)/mh-xface.elc:\
+   $(lisp)/emacs-lisp/cl.elc
+
+$(MH_E_DIR)/mh-comp.elc $(MH_E_DIR)/mh-folder.elc $(MH_E_DIR)/mh-funcs.elc\
+ $(MH_E_DIR)/mh-junk.elc $(MH_E_DIR)/mh-limit.elc $(MH_E_DIR)/mh-print.elc\
+ $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-show.elc $(MH_E_DIR)/mh-thread.elc:\
+   $(MH_E_DIR)/mh-scan.elc
+
+$(MH_E_DIR)/mh-folder.elc $(MH_E_DIR)/mh-letter.elc $(MH_E_DIR)/mh-mime.elc\
+ $(MH_E_DIR)/mh-search.elc $(MH_E_DIR)/mh-show.elc $(MH_E_DIR)/mh-speed.elc:\
+   $(lisp)/gnus/gnus-util.elc
+
+$(MH_E_DIR)/mh-folder.elc $(MH_E_DIR)/mh-search.elc:\
+   $(lisp)/progmodes/which-func.elc
+
+$(MH_E_DIR)/mh-letter.elc $(MH_E_DIR)/mh-seq.elc $(MH_E_DIR)/mh-show.elc\
+ $(MH_E_DIR)/mh-utils.elc:\
+   $(lisp)/font-lock.elc
+
+$(MH_E_DIR)/mh-alias.elc $(MH_E_DIR)/mh-show.elc: $(lisp)/net/goto-addr.elc
+
+$(MH_E_DIR)/mh-comp.elc: $(lisp)/mail/sendmail.elc
+
+$(MH_E_DIR)/mh-e.elc: $(MH_E_DIR)/mh-buffers.elc $(lisp)/gnus/gnus.elc \
+   $(lisp)/cus-face.elc
+
+$(MH_E_DIR)/mh-letter.elc: $(lisp)/gnus/mailcap.elc $(lisp)/gnus/mm-decode.elc \
+   $(lisp)/gnus/mm-view.elc  $(lisp)/gnus/mml.elc $(lisp)/gnus/message.elc
+
+$(MH_E_DIR)/mh-print.elc:  $(lisp)/ps-print.elc
+
+$(MH_E_DIR)/mh-search.elc: $(lisp)/imenu.elc
+
+$(MH_E_DIR)/mh-show.elc: $(lisp)/gnus/gnus-cite.elc
+
+$(MH_E_DIR)/mh-speed.elc: $(lisp)/speedbar.elc $(lisp)/emacs-lisp/timer.elc
+
+$(MH_E_DIR)/mh-tool-bar.elc: $(lisp)/tool-bar.elc
+
 # Makefile ends here.