Mercurial > emacs
annotate msdos/mainmake.v2 @ 47408:2239db3433ca
(transient-mark-mode, line-number-mode, column-number-mode):
Use define-minor-mode.
(define-mail-user-agent): Delete. Moved to subr.el.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 11 Sep 2002 20:46:33 +0000 |
parents | 9402752ef1c7 |
children | 23a1cea22d13 |
rev | line source |
---|---|
15014 | 1 # Top-level Makefile for Emacs under MS-DOS/DJGPP v2.0 or higher. -*-makefile-*- |
36236 | 2 |
43803 | 3 # Copyright (C) 1996,1997,1998,1999,2000,2001,2002 |
4 # Free Software Foundation, Inc. | |
36236 | 5 |
6 # This file is part of GNU Emacs. | |
7 | |
8 # GNU Emacs is free software; you can redistribute it and/or modify | |
9 # it under the terms of the GNU General Public License as published by | |
10 # the Free Software Foundation; either version 2, or (at your option) | |
11 # any later version. | |
12 | |
13 # GNU Emacs is distributed in the hope that it will be useful, | |
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 # GNU General Public License for more details. | |
17 | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with GNU Emacs; see the file COPYING. If not, write to | |
20 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
21 # Boston, MA 02111-1307, USA. | |
22 | |
14995 | 23 # make all to compile and build Emacs. |
24 # make install to install it. | |
25 # make TAGS to update tags tables. | |
26 # | |
27 # make clean or make mostlyclean | |
28 # Delete all files from the current directory that are normally | |
29 # created by building the program. Don't delete the files that | |
30 # record the configuration. Also preserve files that could be made | |
31 # by building, but normally aren't because the distribution comes | |
32 # with them. | |
33 # | |
34 # Delete `.dvi' files here if they are not part of the distribution. | |
35 # | |
36 # make distclean | |
37 # Delete all files from the current directory that are created by | |
38 # configuring or building the program. If you have unpacked the | |
39 # source and built the program without creating any other files, | |
40 # `make distclean' should leave only the files that were in the | |
41 # distribution. | |
42 # | |
43 # make realclean | |
44 # Delete everything from the current directory that can be | |
45 # reconstructed with this Makefile. This typically includes | |
46 # everything deleted by distclean, plus more: C source files | |
47 # produced by Bison, tags tables, info files, and so on. | |
48 # | |
49 # make extraclean | |
50 # Still more severe - delete backup and autosave files, too. | |
51 | |
23496
1518b5946f9f
Forcibly set SHELL and MAKESHELL to force Make to use
Eli Zaretskii <eliz@gnu.org>
parents:
21934
diff
changeset
|
52 # 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
|
53 # 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
|
54 # 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
|
55 # (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
|
56 # 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
|
57 # 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
|
58 # 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
|
59 # 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
|
60 # 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
|
61 # is not important.) |
075da7e5be80
(SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents:
24071
diff
changeset
|
62 SHELL=/xyzzy/command |
075da7e5be80
(SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents:
24071
diff
changeset
|
63 MAKESHELL=/xyzzy/command |
23496
1518b5946f9f
Forcibly set SHELL and MAKESHELL to force Make to use
Eli Zaretskii <eliz@gnu.org>
parents:
21934
diff
changeset
|
64 |
14995 | 65 # 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
|
66 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
|
67 |
c6d7001a262c
Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents:
20282
diff
changeset
|
68 # 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
|
69 version := ${shell sed -n -e '/(defconst emacs-version/s/^[^"]*\("[^"]*"\).*/\1/p' lisp/version.el} |
14995 | 70 |
43801
97a0f070b8ce
(all): Depend on maybe_bootstrap.
Eli Zaretskii <eliz@gnu.org>
parents:
43800
diff
changeset
|
71 all: maybe_bootstrap lib-src src man lispref lispintro |
14995 | 72 |
73 lib-src: FRC | |
74 cd lib-src | |
21483
c6d7001a262c
Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents:
20282
diff
changeset
|
75 $(MAKE) top_srcdir=${top_srcdir} version=${version} |
14995 | 76 cd .. |
77 | |
78 src: FRC | |
79 cd src | |
21483
c6d7001a262c
Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents:
20282
diff
changeset
|
80 $(MAKE) top_srcdir=${top_srcdir} |
30535
442861d7c78a
(src): Make the rule faster by using a single djecho
Eli Zaretskii <eliz@gnu.org>
parents:
28768
diff
changeset
|
81 djecho -s '/-geometry/s,^.*,set environment HOME $(top_srcdir),' \ |
442861d7c78a
(src): Make the rule faster by using a single djecho
Eli Zaretskii <eliz@gnu.org>
parents:
28768
diff
changeset
|
82 '/environment *TERM/s/^.*/set environment TERM internal/' \ |
442861d7c78a
(src): Make the rule faster by using a single djecho
Eli Zaretskii <eliz@gnu.org>
parents:
28768
diff
changeset
|
83 '/x_error_quitter/s/^.*/set environment NAME root/' >gdb.sed |
442861d7c78a
(src): Make the rule faster by using a single djecho
Eli Zaretskii <eliz@gnu.org>
parents:
28768
diff
changeset
|
84 sed -f gdb.sed _gdbinit >gdb.tmp |
30599
296c06699a96
(src): Put gdb.tmp after -a, since -a requires an argument.
Eli Zaretskii <eliz@gnu.org>
parents:
30535
diff
changeset
|
85 djecho -a gdb.tmp -s 'set environment USER root' \ |
296c06699a96
(src): Put gdb.tmp after -a, since -a requires an argument.
Eli Zaretskii <eliz@gnu.org>
parents:
30535
diff
changeset
|
86 'set environment EMACSPATH $(top_srcdir)/bin' \ |
296c06699a96
(src): Put gdb.tmp after -a, since -a requires an argument.
Eli Zaretskii <eliz@gnu.org>
parents:
30535
diff
changeset
|
87 'set environment SHELL $(subst \,/,$(COMSPEC))' \ |
296c06699a96
(src): Put gdb.tmp after -a, since -a requires an argument.
Eli Zaretskii <eliz@gnu.org>
parents:
30535
diff
changeset
|
88 'set environment PATH $(subst \,/,$(PATH))' |
14995 | 89 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
|
90 rm -f gdb.tmp gdb.sed |
14995 | 91 cd .. |
24019
4946582b4411
(src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents:
23662
diff
changeset
|
92 if exist leim\Makefile redir $(MAKE) -C leim top_srcdir=${top_srcdir} |
14995 | 93 |
41425 | 94 man lispref lispintro: FRC |
40881 | 95 cd $@ |
21483
c6d7001a262c
Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents:
20282
diff
changeset
|
96 $(MAKE) top_srcdir=${top_srcdir} |
20282
6de74098af01
(man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents:
18768
diff
changeset
|
97 cd .. |
6de74098af01
(man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents:
18768
diff
changeset
|
98 |
14995 | 99 install: all |
20282
6de74098af01
(man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents:
18768
diff
changeset
|
100 if not exist bin\nul md bin |
14995 | 101 cd lib-src |
30535
442861d7c78a
(src): Make the rule faster by using a single djecho
Eli Zaretskii <eliz@gnu.org>
parents:
28768
diff
changeset
|
102 command.com /c >/dev/null for %p in (hexl etags ctags b2m ebrowse) do\ |
442861d7c78a
(src): Make the rule faster by using a single djecho
Eli Zaretskii <eliz@gnu.org>
parents:
28768
diff
changeset
|
103 if exist %p.exe mv -f %p.exe ../bin |
24071
8db408246555
(install): Use update instead of sed to install fns.el.
Eli Zaretskii <eliz@gnu.org>
parents:
24047
diff
changeset
|
104 if exist fns.el update fns.el ../bin/fns.el |
14995 | 105 cd .. |
106 cd src | |
107 stubify emacs | |
108 stubedit emacs.exe minstack=512k | |
109 mv -f emacs.exe ../bin/ | |
110 cd .. | |
38506
6c5d7bb4a940
(install): Create site-lisp/subdirs.el if it is not already there.
Eli Zaretskii <eliz@gnu.org>
parents:
36236
diff
changeset
|
111 djecho -s "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)" \ |
6c5d7bb4a940
(install): Create site-lisp/subdirs.el if it is not already there.
Eli Zaretskii <eliz@gnu.org>
parents:
36236
diff
changeset
|
112 " (normal-top-level-add-subdirs-to-load-path))" \ |
6c5d7bb4a940
(install): Create site-lisp/subdirs.el if it is not already there.
Eli Zaretskii <eliz@gnu.org>
parents:
36236
diff
changeset
|
113 > ./subdirs.el |
6c5d7bb4a940
(install): Create site-lisp/subdirs.el if it is not already there.
Eli Zaretskii <eliz@gnu.org>
parents:
36236
diff
changeset
|
114 if not exist .\site-lisp\subdirs.el \ |
6c5d7bb4a940
(install): Create site-lisp/subdirs.el if it is not already there.
Eli Zaretskii <eliz@gnu.org>
parents:
36236
diff
changeset
|
115 update ./subdirs.el ./site-lisp/subdirs.el |
6c5d7bb4a940
(install): Create site-lisp/subdirs.el if it is not already there.
Eli Zaretskii <eliz@gnu.org>
parents:
36236
diff
changeset
|
116 rm -f ./subdirs.el |
14995 | 117 |
118 FRC: | |
119 | |
31054
0eab133958e6
(TAGS): Don't use [a-zA-Z]*, as it causes wildcard
Eli Zaretskii <eliz@gnu.org>
parents:
30599
diff
changeset
|
120 # We cannot use [a-zA-Z]* like the mainline distribution does, because |
0eab133958e6
(TAGS): Don't use [a-zA-Z]*, as it causes wildcard
Eli Zaretskii <eliz@gnu.org>
parents:
30599
diff
changeset
|
121 # that causes all file names to be returned in upper-case on DOS... |
15781
5cd40832a444
(TAGS): Make sure bin/etags.exe is current. Make
Richard M. Stallman <rms@gnu.org>
parents:
15024
diff
changeset
|
122 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
|
123 cd lib-src |
5cd40832a444
(TAGS): Make sure bin/etags.exe is current. Make
Richard M. Stallman <rms@gnu.org>
parents:
15024
diff
changeset
|
124 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
|
125 cd .. |
14995 | 126 cd lisp |
31054
0eab133958e6
(TAGS): Don't use [a-zA-Z]*, as it causes wildcard
Eli Zaretskii <eliz@gnu.org>
parents:
30599
diff
changeset
|
127 ../bin/etags .../*.el |
14995 | 128 cd .. |
129 cd src | |
130 ../bin/etags --include=../lisp/TAGS \ | |
131 '--regex=/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' *.c *.h s/msdos.h m/intel386.h | |
132 cd .. | |
133 ./bin/etags --include=src/TAGS | |
134 | |
135 check: | |
136 @echo "We don't have any tests for GNU Emacs yet." | |
137 | |
138 clean: | |
139 cd lib-src | |
140 $(MAKE) clean | |
141 cd .. | |
142 cd src | |
143 $(MAKE) clean | |
144 cd .. | |
145 cd oldxmenu | |
146 -$(MAKE) clean | |
147 cd .. | |
24019
4946582b4411
(src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents:
23662
diff
changeset
|
148 cd leim |
4946582b4411
(src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents:
23662
diff
changeset
|
149 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
|
150 cd .. |
43800
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
151 |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
152 .PHONY: bootstrap bootstrap-lisp-1 boostrap-src bootstrap-lisp bootstrap-clean |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
153 .PHONY: maybe_bootstrap |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
154 |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
155 maybe_bootstrap: |
43806
4afbebf9ec5c
(maybe_bootstrap): Fix last change.
Eli Zaretskii <eliz@gnu.org>
parents:
43805
diff
changeset
|
156 @if not exist lisp\abbrev.elc djecho \ |
43800
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
157 "Some *.elc files are missing. You should do a `make bootstrap'." |
43806
4afbebf9ec5c
(maybe_bootstrap): Fix last change.
Eli Zaretskii <eliz@gnu.org>
parents:
43805
diff
changeset
|
158 @if not exist lisp\abbrev.elc redir -e /dev/null -oe redir fail-this-make.exe |
43800
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
159 |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
160 bootstrap: bootstrap-clean-before bootstrap-lisp-1 bootstrap-src bootstrap-lisp bootstrap-clean-after all info |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
161 |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
162 bootstrap-lisp-1: |
44036
d2d6d5e7b5f3
(bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents:
43806
diff
changeset
|
163 cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean; cd .. |
43800
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
164 |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
165 bootstrap-lisp: |
44037
9402752ef1c7
(bootstrap-lisp): Pass an absolute file name as value of ${lisp}.
Eli Zaretskii <eliz@gnu.org>
parents:
44036
diff
changeset
|
166 cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=${top_srcdir}/src/b-emacs.exe lisp=${top_srcdir}/lisp; cd .. |
43800
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
167 |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
168 bootstrap-src: |
44036
d2d6d5e7b5f3
(bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents:
43806
diff
changeset
|
169 cd src; $(MAKE) $(MFLAGS) bootstrap; cd .. |
43800
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
170 |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
171 ### Used for `bootstrap' to avoid deleting existing dumped Emacs executables. |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
172 bootstrap-clean-before: FRC |
44036
d2d6d5e7b5f3
(bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents:
43806
diff
changeset
|
173 cd src; $(MAKE) $(MFLAGS) mostlyclean; cd .. |
d2d6d5e7b5f3
(bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents:
43806
diff
changeset
|
174 cd lib-src; $(MAKE) $(MFLAGS) clean; cd .. |
d2d6d5e7b5f3
(bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents:
43806
diff
changeset
|
175 cd leim; $(MAKE) $(MFLAGS) clean; cd .. |
43800
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
176 |
1548aa2b7c55
(maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents:
41425
diff
changeset
|
177 bootstrap-clean-after: |
44036
d2d6d5e7b5f3
(bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents:
43806
diff
changeset
|
178 cd src; $(MAKE) $(MFLAGS) mostlyclean; cd .. |