11766
|
1 #
|
|
2 # Top level makefile for building GNU Emacs on Windows NT
|
|
3 #
|
|
4 # This file is part of GNU Emacs.
|
|
5 #
|
|
6 # GNU Emacs is free software; you can redistribute it and/or modify
|
|
7 # it under the terms of the GNU General Public License as published by
|
|
8 # the Free Software Foundation; either version 2, or (at your option)
|
|
9 # any later version.
|
|
10 #
|
|
11 # GNU Emacs is distributed in the hope that it will be useful,
|
|
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 # GNU General Public License for more details.
|
|
15 #
|
|
16 # You should have received a copy of the GNU General Public License
|
|
17 # along with GNU Emacs; see the file COPYING. If not, write to
|
|
18 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
19 #
|
|
20 # Geoff Voelker (voelker@cs.washington.edu) 11-20-93
|
|
21 # 9-6-94
|
|
22 !include makefile.def
|
|
23
|
11938
|
24 # Since Windows 95 does not support multiple commands on one command line
|
|
25 # (e.g., in for loops), we cannot use for loops any more.
|
|
26 # SUBDIRS = lib-src src lisp
|
11766
|
27
|
|
28 #
|
|
29 # Build emacs
|
|
30 #
|
11938
|
31 BUILD_CMD = $(MAKE) -f makefile.nt all
|
|
32 all:; cd ..\lib-src
|
|
33 $(BUILD_CMD)
|
|
34 cd ..\src
|
|
35 $(BUILD_CMD)
|
|
36 cd ..\lisp
|
|
37 $(BUILD_CMD)
|
|
38 cd ..\nt
|
|
39
|
11766
|
40
|
|
41 #
|
|
42 # Build and install emacs in INSTALL_DIR
|
|
43 #
|
11938
|
44 INSTALL_CMD = $(MAKE) -f makefile.nt install
|
11766
|
45 install: all
|
|
46 - mkdir $(INSTALL_DIR)
|
11938
|
47 cd ..\lib-src
|
|
48 $(INSTALL_CMD)
|
|
49 cd ..\src
|
|
50 $(INSTALL_CMD)
|
|
51 cd ..\lisp
|
|
52 $(INSTALL_CMD)
|
|
53 cd ..\nt
|
11766
|
54 - $(CP) emacs.bat $(INSTALL_DIR)\bin
|
|
55 - del /q ..\same-dir.tst
|
|
56 - del /q $(INSTALL_DIR)\same-dir.tst
|
|
57 echo SameDirTest > ..\same-dir.tst
|
|
58 if not exist $(INSTALL_DIR)\same-dir.tst $(MAKE) -f makefile.nt real_install
|
|
59 - del /q ..\same-dir.tst
|
|
60 - del /q $(INSTALL_DIR)\same-dir.tst
|
|
61
|
|
62 #
|
|
63 # This installs executables from ..\bin into the installation directory
|
|
64 # without building anything.
|
|
65 #
|
|
66 fast_install:
|
|
67 - mkdir $(INSTALL_DIR)\data
|
|
68 $(CP) ..\lib-src\DOC $(INSTALL_DIR)\etc
|
|
69 - mkdir $(INSTALL_DIR)\bin
|
|
70 - $(CP) emacs.bat $(INSTALL_DIR)\bin
|
|
71 - del /q ..\same-dir.tst
|
|
72 - del /q $(INSTALL_DIR)\same-dir.tst
|
|
73 echo SameDirTest > ..\same-dir.tst
|
|
74 if not exist $(INSTALL_DIR)\same-dir.tst $(CP) ..\bin\emacs.exe $(INSTALL_DIR)\bin
|
|
75 if not exist $(INSTALL_DIR)\same-dir.tst $(CP) ..\bin\etags.exe $(INSTALL_DIR)\bin
|
|
76 if not exist $(INSTALL_DIR)\same-dir.tst $(CP) ..\bin\ctags.exe $(INSTALL_DIR)\bin
|
|
77 if not exist $(INSTALL_DIR)\same-dir.tst nmake -f $(MAKE) real_install
|
|
78 - del /q ..\same-dir.tst
|
|
79 - del /q $(INSTALL_DIR)\same-dir.tst
|
|
80
|
|
81 real_install:
|
|
82 - del /q ..\same-dir.tst
|
|
83 - del /q $(INSTALL_DIR)\same-dir.tst
|
|
84 echo SameDirTest > ..\same-dir.tst
|
|
85 - mkdir $(INSTALL_DIR)\etc
|
|
86 - mkdir $(INSTALL_DIR)\info
|
|
87 - mkdir $(INSTALL_DIR)\lock
|
|
88 - mkdir $(INSTALL_DIR)\data
|
|
89 if not exist $(INSTALL_DIR)\nt\same-dir.tst $(CP_DIR) ..\etc $(INSTALL_DIR)\etc
|
|
90 if not exist $(INSTALL_DIR)\nt\same-dir.tst $(CP_DIR) ..\info $(INSTALL_DIR)\info
|
|
91 - del /q ..\same-dir.tst
|
|
92 - del /q $(INSTALL_DIR)\same-dir.tst
|
|
93
|
|
94 #
|
|
95 # Maintenance
|
|
96 #
|
11938
|
97 CLEAN_CMD = $(MAKE) -f makefile.nt clean
|
11766
|
98 clean:; - del /q /s *~
|
|
99 - $(DEL_TREE) deleted
|
|
100 - $(DEL_TREE) ..\bin
|
11938
|
101 cd ..\lib-src
|
|
102 $(CLEAN_CMD)
|
|
103 cd ..\src
|
|
104 $(CLEAN_CMD)
|
|
105 cd ..\lisp
|
|
106 $(CLEAN_CMD)
|
|
107 cd ..\nt
|