annotate msdos/mainmake.v2 @ 92148:f991f10f15ec

Merge from emacs--rel--22 Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
author Miles Bader <miles@gnu.org>
date Sun, 24 Feb 2008 10:09:07 +0000
parents 319d87609e42
children 606f2d163a64 fa41f74280f5
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-*-
36236
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
2
64890
3723093a21fd Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64084
diff changeset
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
79742
319d87609e42 Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78247
diff changeset
4 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
36236
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
5
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
6 # This file is part of GNU Emacs.
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
7
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
8 # GNU Emacs is free software; you can redistribute it and/or modify
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
9 # it under the terms of the GNU General Public License as published by
78247
7d31ae4193f1 Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75348
diff changeset
10 # the Free Software Foundation; either version 3, or (at your option)
36236
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
11 # any later version.
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
12
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
13 # GNU Emacs is distributed in the hope that it will be useful,
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
16 # GNU General Public License for more details.
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
17
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
18 # You should have received a copy of the GNU General Public License
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
19 # along with GNU Emacs; see the file COPYING. If not, write to
64084
a8fa7c632ee4 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 58034
diff changeset
20 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
a8fa7c632ee4 Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 58034
diff changeset
21 # Boston, MA 02110-1301, USA.
36236
40a7360c9f8d Add copyright notice.
Eli Zaretskii <eliz@gnu.org>
parents: 31054
diff changeset
22
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 # make all to compile and build Emacs.
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
24 # make install to install it (installs in-place, in `bin' subdir of top dir).
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 # make TAGS to update tags tables.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 #
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 # make clean or make mostlyclean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28 # Delete all files from the current directory that are normally
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 # created by building the program. Don't delete the files that
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 # record the configuration. Also preserve files that could be made
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 # by building, but normally aren't because the distribution comes
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 # with them.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 #
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34 # Delete `.dvi' files here if they are not part of the distribution.
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 44037
diff changeset
35 #
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 # make distclean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 # Delete all files from the current directory that are created by
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 # configuring or building the program. If you have unpacked the
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 # source and built the program without creating any other files,
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 # `make distclean' should leave only the files that were in the
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 # distribution.
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 44037
diff changeset
42 #
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
43 # make maintainer-clean
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 # Delete everything from the current directory that can be
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 # reconstructed with this Makefile. This typically includes
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
46 # everything deleted by distclean, plus more: *.elc files,
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
47 # C source files produced by Bison, tags tables, info files,
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
48 # and so on.
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 #
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50 # make extraclean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 # Still more severe - delete backup and autosave files, too.
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52
23496
1518b5946f9f Forcibly set SHELL and MAKESHELL to force Make to use
Eli Zaretskii <eliz@gnu.org>
parents: 21934
diff changeset
53 # 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
54 # 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
55 # 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
56 # (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
57 # 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
58 # 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
59 # 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
60 # 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
61 # 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
62 # is not important.)
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
63 SHELL=/xyzzy/command
075da7e5be80 (SHELL, MAKESHELL): Don't use /dos/command, it can
Eli Zaretskii <eliz@gnu.org>
parents: 24071
diff changeset
64 MAKESHELL=/xyzzy/command
23496
1518b5946f9f Forcibly set SHELL and MAKESHELL to force Make to use
Eli Zaretskii <eliz@gnu.org>
parents: 21934
diff changeset
65
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66 # 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
67 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
68
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
69 # 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
70 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
71
43801
97a0f070b8ce (all): Depend on maybe_bootstrap.
Eli Zaretskii <eliz@gnu.org>
parents: 43800
diff changeset
72 all: maybe_bootstrap lib-src src man lispref lispintro
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74 lib-src: FRC
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75 cd lib-src
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} version=${version}
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 src: FRC
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 cd src
21483
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
81 $(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
82 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
83 '/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
84 '/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
85 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
86 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
87 '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
88 '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
89 'set environment PATH $(subst \,/,$(PATH))'
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 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
91 rm -f gdb.tmp gdb.sed
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 cd ..
24019
4946582b4411 (src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents: 23662
diff changeset
93 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
94
41425
ebb701a79bdc (lispintro): New target.
Eli Zaretskii <eliz@gnu.org>
parents: 40881
diff changeset
95 man lispref lispintro: FRC
40881
596f296037e3 (all): Add lispref.
Eli Zaretskii <eliz@gnu.org>
parents: 38506
diff changeset
96 cd $@
52580
ac7e8287a67e (man lispref lispintro): Specify an explicit target `info',
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
97 $(MAKE) top_srcdir=${top_srcdir} info
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
98 cd ..
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
99
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 install: all
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
101 if not exist bin\nul md bin
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 cd lib-src
30535
442861d7c78a (src): Make the rule faster by using a single djecho
Eli Zaretskii <eliz@gnu.org>
parents: 28768
diff changeset
103 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
104 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
105 if exist fns.el update fns.el ../bin/fns.el
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 cd src
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108 stubify emacs
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109 stubedit emacs.exe minstack=512k
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 mv -f emacs.exe ../bin/
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 cd ..
38506
6c5d7bb4a940 (install): Create site-lisp/subdirs.el if it is not already there.
Eli Zaretskii <eliz@gnu.org>
parents: 36236
diff changeset
112 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
113 " (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
114 > ./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 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
116 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
117 rm -f ./subdirs.el
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119 FRC:
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120
31054
0eab133958e6 (TAGS): Don't use [a-zA-Z]*, as it causes wildcard
Eli Zaretskii <eliz@gnu.org>
parents: 30599
diff changeset
121 # 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
122 # 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
123 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
124 cd lib-src
5cd40832a444 (TAGS): Make sure bin/etags.exe is current. Make
Richard M. Stallman <rms@gnu.org>
parents: 15024
diff changeset
125 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
126 cd ..
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
127 cd lisp
31054
0eab133958e6 (TAGS): Don't use [a-zA-Z]*, as it causes wildcard
Eli Zaretskii <eliz@gnu.org>
parents: 30599
diff changeset
128 ../bin/etags .../*.el
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 cd src
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 ../bin/etags --include=../lisp/TAGS \
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132 '--regex=/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' *.c *.h s/msdos.h m/intel386.h
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134 ./bin/etags --include=src/TAGS
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 check:
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137 @echo "We don't have any tests for GNU Emacs yet."
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
139 clean mostlyclean:
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140 cd lib-src
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
141 $(MAKE) $(MFLAGS) $@
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143 cd src
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
144 $(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
145 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
146 cd oldxmenu
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
147 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
148 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
149 cd man
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
150 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
151 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
152 cd lispref
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
153 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
154 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
155 cd lispintro
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
156 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
157 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
158 cd leim
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
159 if exist Makefile redir $(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
160 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
161 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
162
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
163 top_distclean=rm -f Makefile */Makefile src/_gdbinit
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
164
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
165 distclean maintainer-clean: FRC
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
166 cd src
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
167 $(MAKE) $(MFLAGS) $@
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
169 cd oldxmenu
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
170 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
171 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
172 cd lib-src
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
173 $(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
174 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
175 cd man
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
176 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
177 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
178 cd lispref
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
179 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
180 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
181 cd lispintro
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
182 -$(MAKE) $(MFLAGS) $@
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
183 cd ..
24019
4946582b4411 (src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents: 23662
diff changeset
184 cd leim
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
185 if exist Makefile redir $(MAKE) $(MFLAGS) $@
24019
4946582b4411 (src): Build files in leim if leim/Makefile exists.
Eli Zaretskii <eliz@gnu.org>
parents: 23662
diff changeset
186 cd ..
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
187 cd lisp
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
188 $(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
189 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
190 ${top_distclean}
43800
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
191
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
192 extraclean:
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
193 cd src
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
194 $(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
195 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
196 cd oldxmenu
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
197 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
198 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
199 cd lib-src
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
200 $(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
201 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
202 cd man
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
203 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
204 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
205 cd lispref
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
206 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
207 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
208 cd lispintro
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
209 -$(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
210 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
211 cd leim
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
212 if exist Makefile redir $(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
213 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
214 cd lisp
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
215 $(MAKE) $(MFLAGS) $@
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
216 cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
217 ${top_distclean}
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
218 -rm -f *~ #*
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
219
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
220 .PHONY: bootstrap bootstrap-lisp-1 bootstrap-src bootstrap-lisp bootstrap-clean
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
221 .PHONY: maybe_bootstrap bootfast
43800
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
222
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
223 maybe_bootstrap:
43806
4afbebf9ec5c (maybe_bootstrap): Fix last change.
Eli Zaretskii <eliz@gnu.org>
parents: 43805
diff changeset
224 @if not exist lisp\abbrev.elc djecho \
43800
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
225 "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
226 @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
227
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
228 bootstrap: bootstrap-clean-before bootstrap-lisp-1 bootstrap-src bootstrap-lisp bootstrap-clean-after all info
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
229 cd lisp; $(MAKE) $(MFLAGS) bootstrap-after; cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
230
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
231 bootfast: bootstrap-clean-before bootstrap-src bootstrap-lisp bootstrap-clean-after all info
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
232 cd lisp; $(MAKE) $(MFLAGS) bootstrap-after; cd ..
43800
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
233
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
234 bootstrap-lisp-1:
44036
d2d6d5e7b5f3 (bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents: 43806
diff changeset
235 cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean; cd ..
43800
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
236
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
237 bootstrap-lisp:
44037
9402752ef1c7 (bootstrap-lisp): Pass an absolute file name as value of ${lisp}.
Eli Zaretskii <eliz@gnu.org>
parents: 44036
diff changeset
238 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
239
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
240 bootstrap-src:
44036
d2d6d5e7b5f3 (bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents: 43806
diff changeset
241 cd src; $(MAKE) $(MFLAGS) bootstrap; cd ..
43800
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
242
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
243 ### 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
244 bootstrap-clean-before: FRC
44036
d2d6d5e7b5f3 (bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents: 43806
diff changeset
245 cd src; $(MAKE) $(MFLAGS) mostlyclean; cd ..
d2d6d5e7b5f3 (bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents: 43806
diff changeset
246 cd lib-src; $(MAKE) $(MFLAGS) clean; cd ..
58034
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
247 -cd man; $(MAKE) $(MFLAGS) clean; cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
248 -cd lispref; $(MAKE) $(MFLAGS) clean; cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
249 -cd lispintro; $(MAKE) $(MFLAGS) clean; cd ..
4d6e721cedf7 (mostlyclean, distclean, maintainer-clean)
Eli Zaretskii <eliz@gnu.org>
parents: 52580
diff changeset
250 cd leim; if exist Makefile redir $(MAKE) $(MFLAGS) clean; cd ..
43800
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
251
1548aa2b7c55 (maybe_bootstrap, bootstrap, bootstrap-lisp-1)
Eli Zaretskii <eliz@gnu.org>
parents: 41425
diff changeset
252 bootstrap-clean-after:
44036
d2d6d5e7b5f3 (bootstrap-lisp-1, bootstrap-lisp, bootstrap-src)
Eli Zaretskii <eliz@gnu.org>
parents: 43806
diff changeset
253 cd src; $(MAKE) $(MFLAGS) mostlyclean; cd ..
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
254
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49600
diff changeset
255 # arch-tag: 6fee5130-4c53-46c6-93d3-d0ea852298b9