(add_menu_item): Draw menu items like titles if call_data is 0.
[bpt/emacs.git] / msdos / mainmake.v2
CommitLineData
4a7c8265 1# Top-level Makefile for Emacs under MS-DOS/DJGPP v2.0 or higher. -*-makefile-*-
2d0300ef
RS
2#
3# make all to compile and build Emacs.
4# make install to install it.
5# make TAGS to update tags tables.
6#
7# make clean or make mostlyclean
8# Delete all files from the current directory that are normally
9# created by building the program. Don't delete the files that
10# record the configuration. Also preserve files that could be made
11# by building, but normally aren't because the distribution comes
12# with them.
13#
14# Delete `.dvi' files here if they are not part of the distribution.
15#
16# make distclean
17# Delete all files from the current directory that are created by
18# configuring or building the program. If you have unpacked the
19# source and built the program without creating any other files,
20# `make distclean' should leave only the files that were in the
21# distribution.
22#
23# make realclean
24# Delete everything from the current directory that can be
25# reconstructed with this Makefile. This typically includes
26# everything deleted by distclean, plus more: C source files
27# produced by Bison, tags tables, info files, and so on.
28#
29# make extraclean
30# Still more severe - delete backup and autosave files, too.
31
32# Generate a full pathname of the top-level installation directory
de219b90
EZ
33top_srcdir := $(subst \,/,$(shell cd))
34
35# Find out which version of Emacs this is.
36version := ${shell sed -n -e '/(defconst emacs-version/s/^[^"]*\("[^"]*"\).*/\1/p' lisp/version.el}
2d0300ef 37
9830885f 38all: lib-src src man
2d0300ef
RS
39
40lib-src: FRC
41 cd lib-src
de219b90 42 $(MAKE) top_srcdir=${top_srcdir} version=${version}
2d0300ef
RS
43 cd ..
44
45src: FRC
46 cd src
de219b90 47 $(MAKE) top_srcdir=${top_srcdir}
63d4cd24 48 redir -o gdb.sed echo '/-geometry/s,^.*,set environment HOME $(top_srcdir),'
d04127d3
RS
49 redir -oa gdb.sed echo '/environment *TERM/s/^.*/set environment TERM internal/'
50 redir -oa gdb.sed echo '/x_error_quitter/s/^.*/set environment NAME root/'
51 redir -o gdb.tmp sed -f gdb.sed _gdbinit
2d0300ef 52 redir -oa gdb.tmp echo 'set environment USER root'
63d4cd24 53 redir -oa gdb.tmp echo 'set environment EMACSPATH $(top_srcdir)/bin'
2d0300ef
RS
54 redir -oa gdb.tmp echo 'set environment SHELL $(subst \,/,$(COMSPEC))'
55 redir -oa gdb.tmp echo 'set environment PATH $(subst \,/,$(PATH))'
56 update gdb.tmp gdb.ini
d04127d3 57 rm -f gdb.tmp gdb.sed
2d0300ef
RS
58 cd ..
59
9830885f
EZ
60man: FRC
61 cd man
de219b90 62 $(MAKE) top_srcdir=${top_srcdir}
9830885f
EZ
63 cd ..
64
2d0300ef 65install: all
9830885f 66 if not exist bin\nul md bin
2d0300ef 67 cd lib-src
d04127d3
RS
68 if exist hexl.exe mv -f hexl.exe ../bin
69 if exist etags.exe mv -f etags.exe ../bin
70 if exist ctags.exe mv -f ctags.exe ../bin
71 if exist b2m.exe mv -f b2m.exe ../bin
2d0300ef
RS
72 cd ..
73 cd src
74 stubify emacs
75 stubedit emacs.exe minstack=512k
76 mv -f emacs.exe ../bin/
77 cd ..
78
79FRC:
80
53f7e7ad
RS
81TAGS tags: lib-src FRC
82 cd lib-src
83 if exist etags.exe mv -f etags.exe ../bin
84 cd ..
2d0300ef 85 cd lisp
b35c3bf6 86 ../bin/etags [a-zA-Z]*.el [a-zA-Z]*/[a-zA-Z]*.el
2d0300ef
RS
87 cd ..
88 cd src
89 ../bin/etags --include=../lisp/TAGS \
90 '--regex=/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' *.c *.h s/msdos.h m/intel386.h
91 cd ..
92 ./bin/etags --include=src/TAGS
93
94check:
95 @echo "We don't have any tests for GNU Emacs yet."
96
97clean:
98 cd lib-src
99 $(MAKE) clean
100 cd ..
101 cd src
102 $(MAKE) clean
103 cd ..
104 cd oldxmenu
105 -$(MAKE) clean
106 cd ..