annotate msdos/mainmake.v2 @ 23809:2a6ad78388b3

(check_windows_init_file): Use decode_env_path when using EMACSLOADPATH.
author Geoff Voelker <voelker@cs.washington.edu>
date Thu, 03 Dec 1998 03:14:46 +0000
parents a0da0fa2edfd
children 4946582b4411
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.
23662
a0da0fa2edfd (SHELL, MAKESHELL): Don't use `override'.
Eli Zaretskii <eliz@gnu.org>
parents: 23496
diff changeset
35 SHELL=/dos/command
a0da0fa2edfd (SHELL, MAKESHELL): Don't use `override'.
Eli Zaretskii <eliz@gnu.org>
parents: 23496
diff changeset
36 MAKESHELL=/dos/command
23496
1518b5946f9f Forcibly set SHELL and MAKESHELL to force Make to use
Eli Zaretskii <eliz@gnu.org>
parents: 21934
diff changeset
37
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 # 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
39 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
40
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
41 # 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
42 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
43
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
44 all: lib-src src man
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 lib-src: FRC
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
47 cd lib-src
21483
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
48 $(MAKE) top_srcdir=${top_srcdir} version=${version}
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 src: FRC
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 cd src
21483
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
53 $(MAKE) top_srcdir=${top_srcdir}
21492
09022f09dbbf Replace topdir with top_srcdir.
Eli Zaretskii <eliz@gnu.org>
parents: 21483
diff changeset
54 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
55 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
56 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
57 redir -o gdb.tmp sed -f gdb.sed _gdbinit
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58 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
59 redir -oa gdb.tmp echo 'set environment EMACSPATH $(top_srcdir)/bin'
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60 redir -oa gdb.tmp echo 'set environment SHELL $(subst \,/,$(COMSPEC))'
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61 redir -oa gdb.tmp echo 'set environment PATH $(subst \,/,$(PATH))'
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 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
63 rm -f gdb.tmp gdb.sed
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
66 man: FRC
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
67 cd man
21483
c6d7001a262c Determine emacs-version from lisp/version.el. Pass it to
Eli Zaretskii <eliz@gnu.org>
parents: 20282
diff changeset
68 $(MAKE) top_srcdir=${top_srcdir}
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
69 cd ..
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
70
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 install: all
20282
6de74098af01 (man): New target to build the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 18768
diff changeset
72 if not exist bin\nul md bin
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73 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
74 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
75 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
76 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
77 if exist b2m.exe mv -f b2m.exe ../bin
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 cd src
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 stubify emacs
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 stubedit emacs.exe minstack=512k
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82 mv -f emacs.exe ../bin/
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 FRC:
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86
15781
5cd40832a444 (TAGS): Make sure bin/etags.exe is current. Make
Richard M. Stallman <rms@gnu.org>
parents: 15024
diff changeset
87 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
88 cd lib-src
5cd40832a444 (TAGS): Make sure bin/etags.exe is current. Make
Richard M. Stallman <rms@gnu.org>
parents: 15024
diff changeset
89 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
90 cd ..
14995
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 cd lisp
21934
809dbde64976 (TAGS): Fix file name wildcards in lisp directory.
Eli Zaretskii <eliz@gnu.org>
parents: 21492
diff changeset
92 ../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
93 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 cd src
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 ../bin/etags --include=../lisp/TAGS \
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 '--regex=/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' *.c *.h s/msdos.h m/intel386.h
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 ./bin/etags --include=src/TAGS
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 check:
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 @echo "We don't have any tests for GNU Emacs yet."
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103 clean:
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 cd lib-src
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105 $(MAKE) clean
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 $(MAKE) clean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109 cd ..
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 cd oldxmenu
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 -$(MAKE) clean
f355434dee03 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 cd ..