# 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.
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.
$(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 \
$(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 \
$(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 \
$(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 \
$(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 \
$(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 \
$(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 \
$(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 \
$(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 \
$(lisp)/repeat.elc \
$(lisp)/replace.elc \
$(lisp)/reposition.elc \
- $(lisp)/resume.elc \
$(lisp)/reveal.elc \
$(lisp)/rfn-eshadow.elc \
$(lisp)/rot13.elc \
$(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 \
$(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 \
$(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'`; \
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"; \
# 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
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
$(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.