diff options
| author | Richard M. Stallman | 1996-04-11 22:53:07 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-04-11 22:53:07 +0000 |
| commit | 2d0300ef65588f6c1615d2fc0d5e98994227dea7 (patch) | |
| tree | 6495780059eef4ccf3b643951d78ab6fcfffd485 | |
| parent | 4add0ccc025f05e26eaca3c5f8fe331be5bcd438 (diff) | |
| download | emacs-2d0300ef65588f6c1615d2fc0d5e98994227dea7.tar.gz emacs-2d0300ef65588f6c1615d2fc0d5e98994227dea7.zip | |
Initial revision
| -rw-r--r-- | msdos/mainmake.v2 | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/msdos/mainmake.v2 b/msdos/mainmake.v2 new file mode 100644 index 00000000000..5fa9b3e2dd0 --- /dev/null +++ b/msdos/mainmake.v2 | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | # Top-level Makefile for Emacs under MS-DOS/DJGPP v2.0 or higher. | ||
| 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 | ||
| 33 | topdir := $(subst \,/,$(shell cd)) | ||
| 34 | |||
| 35 | all: lib-src src | ||
| 36 | |||
| 37 | lib-src: FRC | ||
| 38 | cd lib-src | ||
| 39 | $(MAKE) | ||
| 40 | cd .. | ||
| 41 | |||
| 42 | src: FRC | ||
| 43 | cd src | ||
| 44 | $(MAKE) | ||
| 45 | redir -o gdb.tmp sed \ | ||
| 46 | -e '/-geometry/s,^.*,set environment HOME $(topdir),' \ | ||
| 47 | -e '/environment *TERM/s/^.*/set environment TERM internal/' \ | ||
| 48 | -e '/x_error_quitter/s/^.*/set environment NAME root/' _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 | ||
| 54 | cd .. | ||
| 55 | |||
| 56 | install: all | ||
| 57 | if not exist bin\\nul md bin | ||
| 58 | cd lib-src | ||
| 59 | for %%p in (hexl.exe etags.exe ctags.exe b2m.exe) do if exist %%p mv -f %%p ../bin/ | ||
| 60 | cd .. | ||
| 61 | cd src | ||
| 62 | stubify emacs | ||
| 63 | stubedit emacs.exe minstack=512k | ||
| 64 | mv -f emacs.exe ../bin/ | ||
| 65 | cd .. | ||
| 66 | |||
| 67 | FRC: | ||
| 68 | |||
| 69 | TAGS tags: lib-src | ||
| 70 | cd lisp | ||
| 71 | ../bin/etags [a-zA-Z]*.el term/[a-zA-Z]*.el | ||
| 72 | cd .. | ||
| 73 | cd src | ||
| 74 | ../bin/etags --include=../lisp/TAGS \ | ||
| 75 | '--regex=/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' *.c *.h s/msdos.h m/intel386.h | ||
| 76 | cd .. | ||
| 77 | ./bin/etags --include=src/TAGS | ||
| 78 | |||
| 79 | check: | ||
| 80 | @echo "We don't have any tests for GNU Emacs yet." | ||
| 81 | |||
| 82 | clean: | ||
| 83 | cd lib-src | ||
| 84 | $(MAKE) clean | ||
| 85 | cd .. | ||
| 86 | cd src | ||
| 87 | $(MAKE) clean | ||
| 88 | cd .. | ||
| 89 | cd oldxmenu | ||
| 90 | -$(MAKE) clean | ||
| 91 | cd .. | ||