]> code.delx.au - gnu-emacs/blob - msdos/mainmake
Determine emacs-version from lisp/version.el. Pass it to
[gnu-emacs] / msdos / mainmake
1 # make all to compile and build Emacs.
2 # make install to install it.
3 # make TAGS to update tags tables.
4 #
5 # make clean or make mostlyclean
6 # Delete all files from the current directory that are normally
7 # created by building the program. Don't delete the files that
8 # record the configuration. Also preserve files that could be made
9 # by building, but normally aren't because the distribution comes
10 # with them.
11 #
12 # Delete `.dvi' files here if they are not part of the distribution.
13 #
14 # make distclean
15 # Delete all files from the current directory that are created by
16 # configuring or building the program. If you have unpacked the
17 # source and built the program without creating any other files,
18 # `make distclean' should leave only the files that were in the
19 # distribution.
20 #
21 # make realclean
22 # Delete everything from the current directory that can be
23 # reconstructed with this Makefile. This typically includes
24 # everything deleted by distclean, plus more: C source files
25 # produced by Bison, tags tables, info files, and so on.
26 #
27 # make extraclean
28 # Still more severe - delete backup and autosave files, too.
29
30 all: lib-src src
31
32 lib-src: FRC
33 cd lib-src
34 $(MAKE)
35 cd ..
36
37 src: FRC
38 cd src
39 $(MAKE)
40 cd ..
41
42 install: all
43 -md bin
44 cd lib-src
45 coff2exe hexl
46 coff2exe etags
47 coff2exe ctags
48 coff2exe b2m
49 mv -f hexl.exe etags.exe ctags.exe b2m.exe ../bin/
50 cd ..
51 cd src
52 coff2exe emacs
53 stubedit emacs.exe minstack=512k
54 mv -f emacs.exe ../bin/
55 cd ..
56
57 FRC:
58
59 TAGS tags: lib-src
60 cd src
61 go32 ../lib-src/etags *.[ch] ../lisp/*.el ../lisp/term/*.el
62 cd ..
63
64 check:
65 @echo "We don't have any tests for GNU Emacs yet."
66
67 clean:
68 cd lib-src
69 $(MAKE) clean
70 cd ..
71 cd src
72 $(MAKE) clean
73 cd ..
74 cd oldxmenu
75 -$(MAKE) clean
76 cd ..