annotate msdos/mainmake.v2 @ 30411:41f228350eca

Got rid of all byte-compiler warnings on Emacs Load ada-xref.el before ada-prj.el, so that the Project menu is created when ada-prj tries to add to it. (ada-activate-keys-for-case): Suppress the characters that are not part of the Ada syntax. Better compatibility with else-mode (ada-adjust-case-interactive): When auto-casing is not active, correctly insert newlines (used to insert only ^M). Prevent the syntax table from being changed in case of an error (or '_' becomes part of a word and some commands are confused). Do nothing if ada-auto-case is nil. (ada-after-keyword-p): Ignore keywords that are also attributes (ada-batch-reformat): Update usage comment (ada-call-from-contextual-menu): New function (ada-case-read-exceptions): Reinitialize the casing exception list first to nil first, so that the casing exception file can be shared. (ada-check-defun-name): Handles "configure" keyword for gnatdist files. (ada-compile-goto-error): Fix regexp used to detect a file:line anywhere in the error message (ada-contextual-menu-last-point): New variable (ada-create-keymap): If the variable delete-key-deletes-forward is t on XEmacs, it means that DEL should delete one character forward. (ada-create-menu): Use :included instead of :visible for XEmacs. New submenu "Options". (ada-end-stmt-re): Correctly indent "select ... then abort" statements. (ada-fill-comment-paragraph): Correctly delete all leading '--' even if they don't match ada-fill-comment-prefix Fix handling of paragraphs on the first or last line of a file. (ada-format-paramlist): Fix handling of default parameter values. (ada-get-body-name): New function. (ada-get-current-indent): Optimized by searchling directly for an existing generic part or a statement outside of it. Handle ada-indent-align-comments when indenting comments Replaced some regexps by testing directly the next character. This results in a huge speedup on some files. New indentation scheme for renames statements. Stop looking for the 'while' or 'for' associated with a 'loop' at the first semicolon encountered. A "return" can also match an anonymous access subprogram declaration. (ada-get-indent-noindent): Ignore strings and comments when looking for the keywords "record" and "private". (ada-goto-matching-decl-start): When matching "if", make sure we are not in fact seeing "end if". Ignore "when" statements except when initial keyword was "begin". Fix handling of nested procedures. Add a recursive call to this function to skip over other 'end' statmts. Fix indentation for "when .. => begin" (ada-in-open-paren-p): Fix indentation for complex boolean expressions, where 'and then', 'or else' and parenthesis statements are mixed up. (ada-in-paramlist-p): Skip comments while searching for the beginning Fix handling of operator declarations. (ada-indent-align-comments): New variable (ada-indent-current): Change the syntax table only in the protected section, so that we are sure it is restored correctly. (ada-indent-on-previous-lines): Use ada-use-indent and ada-with-indent Correctly indent "select ... then" (ada-indent-region): Slight speedup. (ada-indent-renames): New variable. (ada-last-which-function-subprog, ada-last-which-function-line): New variables (ada-looking-at-semi-private): Correctly indent the 'private' keyword when it is the first word in a package declaration. (ada-loose-case-word): Stop searching if at the end of the buffer. (ada-loose-case-word, ada-capitalize-word): Recase the whole word even if point is not initially at the end of the word. (ada-matching-decl-start-re): Add "when". (ada-mode): Add support for abbrev-mode, outline-mode and which-func-mode Override the old find-file.el entry in ff-special-constructs since it is using the obsolete ada-spec-suffix variable (ada-no-auto-case): New function (ada-scan-paramlist): When parsing the argument type, accept spaces (as in "X 'Class", generated by Rational Rose). (ada-other-file-name): No longer loads the other file. (ada-popup-menu): Save and restore the current buffer and cursor position before and after displaying the menu. (ada-search-ignore-complex-boolean): New function. (ada-uncomment-region): Emacs21 already knows how to delete comments not starting in the first column. (ada-use-indent): New variable (ada-which-function): New function. (ada-with-indent): New variable (ada-xemacs): evaluate it at compile time too, so that ada-mode.el can be batch-compiled from the command line.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 24 Jul 2000 11:14:26 +0000
parents b2c3baf84d16
children 442861d7c78a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15014
5894f7cb55e9 entered into RCS
Richard M. Stallman <rms@gnu.org>
parents: 15009
diff changeset
1 # Top-level Makefile for Emacs under MS-DOS/DJGPP v2.0 or higher. -*-makefile-*-
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 #
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 # make all to compile and build Emacs.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 # make install to install it.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5 # make TAGS to update tags tables.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 #
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 # make clean or make mostlyclean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 # Delete all files from the current directory that are normally
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 # created by building the program. Don't delete the files that
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 # record the configuration. Also preserve files that could be made
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 # by building, but normally aren't because the distribution comes
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 # with them.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 #
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 # Delete `.dvi' files here if they are not part of the distribution.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 #
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 # make distclean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 # Delete all files from the current directory that are created by
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 # configuring or building the program. If you have unpacked the
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19 # source and built the program without creating any other files,
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20 # `make distclean' should leave only the files that were in the
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 # distribution.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 #
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 # make realclean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 # Delete everything from the current directory that can be
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 # reconstructed with this Makefile. This typically includes
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 # everything deleted by distclean, plus more: C source files
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 # produced by Bison, tags tables, info files, and so on.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 #
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 # make extraclean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 # Still more severe - delete backup and autosave files, too.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31
23496
1518b5946f9f Forcibly set SHELL and MAKESHELL to force Make to use
Eli Zaretskii <eliz@gnu.org>
parents: 21934
diff changeset
32 # This gork is required for those who use a Unix-style shell, and
1518b5946f9f Forcibly set SHELL and MAKESHELL to force Make to use
Eli Zaretskii <eliz@gnu.org>
parents: 21934
diff changeset
33 # have SHELL in the environment pointing to it. Here we force
1518b5946f9f Forcibly set SHELL and MAKESHELL to force Make to use
Eli Zaretskii <eliz@gnu.org>
parents: 21934
diff changeset
34 # Make to use COMMAND.COM instead. This Makefile won't work otherwise.
24908
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
35 # (The /xyzzy directory is used to minimize the chance that someone
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
36 # actually has such a directory with an incompatible command.com. We
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
37 # used to have /dos there, but some Windows installations have an old
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
38 # version of DOS stashed in that directory, and command.com from there
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
39 # won't run on Windows, complaining about "Incorrect DOS version".
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
40 # Make will look up PATH for the shell executable, so the directory name
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
41 # is not important.)
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
42 SHELL=/xyzzy/command
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
43 MAKESHELL=/xyzzy/command
23496
1518b5946f9f Forcibly set SHELL and MAKESHELL to force Make to use
Eli Zaretskii <eliz@gnu.org>
parents: 21934
diff changeset
44
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 # Generate a full pathname of the top-level installation directory
21483
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
46 top_srcdir := $(subst \,/,$(shell cd))
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
47
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
48 # Find out which version of Emacs this is.
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
49 version := ${shell sed -n -e '/(defconst emacs-version/s/^[^"]*\("[^"]*"\).*/\1/p' lisp/version.el}
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
51 all: lib-src src man
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53 lib-src: FRC
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 cd lib-src
21483
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
55 $(MAKE) top_srcdir=${top_srcdir} version=${version}
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 src: FRC
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59 cd src
21483
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
60 $(MAKE) top_srcdir=${top_srcdir}
21492
09022f09dbbf Replace topdir with top_srcdir.
Eli Zaretskii <eliz@gnu.org>
parents: 21483
diff changeset
61 redir -o gdb.sed echo '/-geometry/s,^.*,set environment HOME $(top_srcdir),'
15024
46fab7ac485b (src): Create a file with sed commands instead of using
Richard M. Stallman <rms@gnu.org>
parents: 15014
diff changeset
62 redir -oa gdb.sed echo '/environment *TERM/s/^.*/set environment TERM internal/'
46fab7ac485b (src): Create a file with sed commands instead of using
Richard M. Stallman <rms@gnu.org>
parents: 15014
diff changeset
63 redir -oa gdb.sed echo '/x_error_quitter/s/^.*/set environment NAME root/'
46fab7ac485b (src): Create a file with sed commands instead of using
Richard M. Stallman <rms@gnu.org>
parents: 15014
diff changeset
64 redir -o gdb.tmp sed -f gdb.sed _gdbinit
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65 redir -oa gdb.tmp echo 'set environment USER root'
21492
09022f09dbbf Replace topdir with top_srcdir.
Eli Zaretskii <eliz@gnu.org>
parents: 21483
diff changeset
66 redir -oa gdb.tmp echo 'set environment EMACSPATH $(top_srcdir)/bin'
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 redir -oa gdb.tmp echo 'set environment SHELL $(subst \,/,$(COMSPEC))'
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68 redir -oa gdb.tmp echo 'set environment PATH $(subst \,/,$(PATH))'
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 update gdb.tmp gdb.ini
15024
46fab7ac485b (src): Create a file with sed commands instead of using
Richard M. Stallman <rms@gnu.org>
parents: 15014
diff changeset
70 rm -f gdb.tmp gdb.sed
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 cd ..
24019
4946582b4411 (src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents: 23662
diff changeset
72 if exist leim\Makefile redir $(MAKE) -C leim top_srcdir=${top_srcdir}
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
74 man: FRC
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
75 cd man
21483
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
76 $(MAKE) top_srcdir=${top_srcdir}
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
77 cd ..
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
78
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 install: all
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
80 if not exist bin\nul md bin
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 cd lib-src
15024
46fab7ac485b (src): Create a file with sed commands instead of using
Richard M. Stallman <rms@gnu.org>
parents: 15014
diff changeset
82 if exist hexl.exe mv -f hexl.exe ../bin
46fab7ac485b (src): Create a file with sed commands instead of using
Richard M. Stallman <rms@gnu.org>
parents: 15014
diff changeset
83 if exist etags.exe mv -f etags.exe ../bin
46fab7ac485b (src): Create a file with sed commands instead of using
Richard M. Stallman <rms@gnu.org>
parents: 15014
diff changeset
84 if exist ctags.exe mv -f ctags.exe ../bin
46fab7ac485b (src): Create a file with sed commands instead of using
Richard M. Stallman <rms@gnu.org>
parents: 15014
diff changeset
85 if exist b2m.exe mv -f b2m.exe ../bin
28768
b2c3baf84d16 (install): Install ebrowse.exe.
Eli Zaretskii <eliz@gnu.org>
parents: 24908
diff changeset
86 if exist ebrowse.exe mv -f ebrowse.exe ../bin
24071
8db408246555 (install): Use update instead of sed to install fns.el.
Eli Zaretskii <eliz@gnu.org>
parents: 24047
diff changeset
87 if exist fns.el update fns.el ../bin/fns.el
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 cd src
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 stubify emacs
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 stubedit emacs.exe minstack=512k
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 mv -f emacs.exe ../bin/
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 FRC:
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96
15781
5cd40832a444 (TAGS): Make sure bin/etags.exe is current. Make
Richard M. Stallman <rms@gnu.org>
parents: 15024
diff changeset
97 TAGS tags: lib-src FRC
5cd40832a444 (TAGS): Make sure bin/etags.exe is current. Make
Richard M. Stallman <rms@gnu.org>
parents: 15024
diff changeset
98 cd lib-src
5cd40832a444 (TAGS): Make sure bin/etags.exe is current. Make
Richard M. Stallman <rms@gnu.org>
parents: 15024
diff changeset
99 if exist etags.exe mv -f etags.exe ../bin
5cd40832a444 (TAGS): Make sure bin/etags.exe is current. Make
Richard M. Stallman <rms@gnu.org>
parents: 15024
diff changeset
100 cd ..
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 cd lisp
21934
809dbde64976 (TAGS): Fix file name wildcards in lisp directory.
Eli Zaretskii <eliz@gnu.org>
parents: 21492
diff changeset
102 ../bin/etags [a-zA-Z]*.el [a-zA-Z]*/[a-zA-Z]*.el
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 cd src
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105 ../bin/etags --include=../lisp/TAGS \
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106 '--regex=/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' *.c *.h s/msdos.h m/intel386.h
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108 ./bin/etags --include=src/TAGS
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 check:
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 @echo "We don't have any tests for GNU Emacs yet."
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113 clean:
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114 cd lib-src
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115 $(MAKE) clean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 cd src
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 $(MAKE) clean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120 cd oldxmenu
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
121 -$(MAKE) clean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122 cd ..
24019
4946582b4411 (src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents: 23662
diff changeset
123 cd leim
4946582b4411 (src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents: 23662
diff changeset
124 if exist Makefile redir $(MAKE) clean
4946582b4411 (src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents: 23662
diff changeset
125 cd ..