Bug fix for vc-dispatcher split.
[bpt/emacs.git] / lisp / makefile.w32-in
index ae9a517..82c3975 100644 (file)
@@ -1,6 +1,6 @@
 #  -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
 #  Copyright (C) 2000, 2001, 2002, 2003, 2004,
-#                2005, 2006, 2007  Free Software Foundation, Inc.
+#                2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 #
 #  This file is part of GNU Emacs.
 #
@@ -56,6 +56,15 @@ lisptagsfiles1 = $(lisp)/*.el
 lisptagsfiles2 = $(lisp)/*/*.el
 ETAGS = "../lib-src/$(BLD)/etags"
 
+# Automatically generated autoload files, apart from lisp/loaddefs.el.
+LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
+       $(lisp)/calendar/diary-loaddefs.el $(lisp)/calendar/hol-loaddefs.el \
+       $(lisp)/mh-e/mh-loaddefs.el
+
+AUTOGENEL = $(lisp)/loaddefs.el $(LOADDEFS) $(lisp)/cus-load.el \
+       $(lisp)/finder-inf.el $(lisp)/subdirs.el $(lisp)/eshell/esh-groups.el \
+       $(lisp)/calc/calc-loaddefs.el
+
 # Files to compile before others during a bootstrap.  This is done to
 # speed up the bootstrap process.  The CC files are compiled first
 # because CC mode tweaks the compilation process, and requiring
@@ -91,13 +100,14 @@ WINS_ALMOST=\
        mh-e \
        net \
        nxml \
+       org \
        play \
        progmodes \
-       term \
        textmodes \
        url
 
 WINS= $(WINS_ALMOST) \
+       term \
        obsolete
 
 doit:
@@ -107,12 +117,12 @@ $(lisp)/cus-load.el:
 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
 #          this can break with GNU Make 3.81 and later if sh.exe is used.
 custom-deps: $(lisp)/cus-load.el $(lisp)/loaddefs.el doit
-       @echo Directories: $(WINS)
-       -$(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hook nil)$(ARGQUOTE) -f custom-make-dependencies $(lisp) $(WINS)
+       @echo Directories: $(WINS_ALMOST)
+       -$(emacs) -l cus-dep --eval $(ARGQUOTE)(setq find-file-hook nil)$(ARGQUOTE) -f custom-make-dependencies $(lisp) $(WINS_ALMOST)
 
 finder-data: $(lisp)/loaddefs.el doit
-       @echo Directories: $(WINS)
-       $(emacs) -l finder -f finder-compile-keywords-make-dist $(lisp) $(WINS)
+       @echo Directories: $(WINS_ALMOST)
+       $(emacs) -l finder -f finder-compile-keywords-make-dist $(lisp) $(WINS_ALMOST)
 
 $(lisp)/loaddefs.el:
        $(MAKE) $(MFLAGS) loaddefs.el-$(SHELLTYPE)
@@ -162,7 +172,7 @@ loaddefs.el-CMD:
 #
 # WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
 #          this can break with GNU Make 3.81 and later if sh.exe is used.
-autoloads: $(lisp)/loaddefs.el doit
+autoloads: $(lisp)/loaddefs.el $(LOADDEFS) doit
        @echo Directories: . $(WINS_ALMOST)
        $(emacs) -l autoload \
                --eval $(ARGQUOTE)(setq find-file-hook nil find-file-suppress-same-file-warnings t)$(ARGQUOTE) \
@@ -310,6 +320,30 @@ $(lisp)/progmodes/cc-mode.elc: \
        $(lisp)/progmodes/cc-defs.el
        $(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el
 
+$(lisp)/calendar/cal-loaddefs.el:
+       "$(EMACS)" $(EMACSOPT) -l autoload \
+          --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \
+          --eval "(setq find-file-suppress-same-file-warnings t)" \
+          --eval "(setq make-backup-files nil)" \
+          -f w32-batch-update-autoloads "$(lisp)/calendar/cal-loaddefs.el" \
+             ./calendar
+
+$(lisp)/calendar/diary-loaddefs.el:
+       "$(EMACS)" $(EMACSOPT) -l autoload \
+          --eval "(setq generate-autoload-cookie \";;;###diary-autoload\")" \
+          --eval "(setq find-file-suppress-same-file-warnings t)" \
+          --eval "(setq make-backup-files nil)" \
+          -f w32-batch-update-autoloads $(lisp)/calendar/diary-loaddefs.el \
+             ./calendar
+
+$(lisp)/calendar/hol-loaddefs.el:
+       "$(EMACS)" $(EMACSOPT) -l autoload \
+          --eval "(setq generate-autoload-cookie \";;;###holiday-autoload\")" \
+          --eval "(setq find-file-suppress-same-file-warnings t)" \
+          --eval "(setq make-backup-files nil)" \
+          -f w32-batch-update-autoloads $(lisp)/calendar/hol-loaddefs.el \
+             ./calendar
+
 # 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.
@@ -331,52 +365,13 @@ MH_E_SRC = $(lisp)/mh-e/mh-acros.el $(lisp)/mh-e/mh-alias.el      \
 # instead of $(lisp)/mh-e.
 mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el
 $(lisp)/mh-e/mh-loaddefs.el: $(MH_E_SRC)
-       $(MAKE) $(MFLAGS) pre-mh-loaddefs.el-$(SHELLTYPE)
-       cp pre-mh-loaddefs.el-$(SHELLTYPE) $@
-       rm pre-mh-loaddefs.el-$(SHELLTYPE)
        "$(EMACS)" $(EMACSOPT) \
           -l autoload \
-          --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \
-          --eval "(setq find-file-suppress-same-file-warnings t)" \
-          --eval "(setq make-backup-files nil)" \
+          --eval $(ARGQUOTE)(setq generate-autoload-cookie $(DQUOTE);;;###mh-autoload$(DQUOTE))$(ARGQUOTE) \
+          --eval $(ARGQUOTE)(setq find-file-suppress-same-file-warnings t)$(ARGQUOTE) \
+          --eval $(ARGQUOTE)(setq make-backup-files nil)$(ARGQUOTE) \
           -f w32-batch-update-autoloads \
-          "$(lisp)/mh-e/mh-loaddefs.el" ./mh-e
-
-pre-mh-loaddefs.el-SH:
-       echo ";;; mh-loaddefs.el --- automatically extracted autoloads" > $@
-       echo ";;" >> $@
-       echo ";; Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc." >> $@
-       echo ";; Author: Bill Wohler <wohler@newt.com>" >> $@
-       echo ";; Keywords: mail" >> $@
-       echo ";;; Commentary:" >> $@
-       echo ";;; Change Log:" >> $@
-       echo ";;; Code:" >> $@
-       echo "\f" >> $@
-       echo "(provide 'mh-loaddefs)" >> $@
-       echo ";; Local Variables:" >> $@
-       echo ";; version-control: never" >> $@
-       echo ";; no-byte-compile: t" >> $@
-       echo ";; no-update-autoloads: t" >> $@
-       echo ";; End:" >> $@
-       echo ";;; mh-loaddefs.el ends here" >> $@
-
-pre-mh-loaddefs.el-CMD:
-       echo ;;; mh-loaddefs.el --- automatically extracted autoloads> $@
-       echo ;;>> $@
-       echo ;; Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.>> $@
-       echo ;; Author: Bill Wohler (wohler@newt.com)>> $@
-       echo ;; Keywords: mail>> $@
-       echo ;;; Commentary:>> $@
-       echo ;;; Change Log:>> $@
-       echo ;;; Code:>> $@
-       echo.\f>> $@
-       echo (provide 'mh-loaddefs)>> $@
-       echo ;; Local Variables:>> $@
-       echo ;; version-control: never>> $@
-       echo ;; no-byte-compile: t>> $@
-       echo ;; no-update-autoloads: t>> $@
-       echo ;; End:>> $@
-       echo ;;; mh-loaddefs.el ends here>> $@
+          $(ARGQUOTE)$(lisp)/mh-e/mh-loaddefs.el$(ARGQUOTE) ./mh-e
 
 # Prepare a bootstrap in the lisp subdirectory.
 #
@@ -469,4 +464,10 @@ check-declare:
 # We used to delete *~ here, but that might inadvertently remove
 # precious files if it happens to match their short 8+3 aliases.
 clean:
-               - $(DEL) *.el~
+       - $(DEL) *.el~
+
+distclean:
+       - $(DEL) $(lisp)/Makefile
+
+maintainer-clean: bootstrap-clean distclean
+       - $(DEL) $(AUTOGENEL)