1 # Top-level Makefile for Emacs under MS-DOS/DJGPP v2.0 or higher. -*-makefile-*-
3 # make all to compile and build Emacs.
4 # make install to install it.
5 # make TAGS to update tags tables.
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
14 # Delete `.dvi' files here if they are not part of the distribution.
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
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.
30 # Still more severe - delete backup and autosave files, too.
32 # Generate a full pathname of the top-level installation directory
33 topdir := $(subst \,/,$(shell cd))
45 redir -o gdb.sed echo '/-geometry/s,^.*,set environment HOME $(topdir),'
46 redir -oa gdb.sed echo '/environment *TERM/s/^.*/set environment TERM internal/'
47 redir -oa gdb.sed echo '/x_error_quitter/s/^.*/set environment NAME root/'
48 redir -o gdb.tmp sed -f gdb.sed _gdbinit
49 redir -oa gdb.tmp echo 'set environment USER root'
50 redir -oa gdb.tmp echo 'set environment EMACSPATH $(topdir)/bin'
51 redir -oa gdb.tmp echo 'set environment SHELL $(subst \,/,$(COMSPEC))'
52 redir -oa gdb.tmp echo 'set environment PATH $(subst \,/,$(PATH))'
53 update gdb.tmp gdb.ini
58 if not exist bin\\nul md bin
60 if exist hexl.exe mv -f hexl.exe ../bin
61 if exist etags.exe mv -f etags.exe ../bin
62 if exist ctags.exe mv -f ctags.exe ../bin
63 if exist b2m.exe mv -f b2m.exe ../bin
67 stubedit emacs.exe minstack=512k
68 mv -f emacs.exe ../bin/
73 TAGS tags: lib-src FRC
75 if exist etags.exe mv -f etags.exe ../bin
78 ../bin/etags [a-zA-Z]*.el term/[a-zA-Z]*.el
81 ../bin/etags --include=../lisp/TAGS \
82 '--regex=/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' *.c *.h s/msdos.h m/intel386.h
84 ./bin/etags --include=src/TAGS
87 @echo "We don't have any tests for GNU Emacs yet."