Mercurial > emacs
annotate nt/makefile.w32-in @ 41015:987844bd98c9
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 13 Nov 2001 16:39:40 +0000 |
parents | 21c599d3bce3 |
children | afe310730a69 |
rev | line source |
---|---|
36375 | 1 # Makefile for GNU Emacs on the Microsoft W32 API. |
2 # Copyright (c) 2000-2001 Free Software Foundation, Inc. | |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
3 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
4 # Top level makefile for building GNU Emacs on Windows NT |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
5 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
6 # This file is part of GNU Emacs. |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
7 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
8 # GNU Emacs is free software; you can redistribute it and/or modify |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
9 # it under the terms of the GNU General Public License as published by |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
10 # the Free Software Foundation; either version 2, or (at your option) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
11 # any later version. |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
12 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
13 # GNU Emacs is distributed in the hope that it will be useful, |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
16 # GNU General Public License for more details. |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
17 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
18 # You should have received a copy of the GNU General Public License |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
19 # along with GNU Emacs; see the file COPYING. If not, write to |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
20 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
21 # Boston, MA 02111-1307, USA. |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
22 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
23 ALL = addpm ddeclient runemacs cmdproxy addsection preprep |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
24 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
25 .PHONY: $(ALL) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
26 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
27 TRES = $(BLD)/emacs.res |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
28 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
29 addpm: $(BLD) $(BLD)/addpm.exe |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
30 $(BLD)/addpm.exe: $(BLD)/addpm.$(O) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
31 $(LINK) $(LINK_OUT)$@ \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
32 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
33 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
34 ddeclient: $(BLD) $(BLD)/ddeclient.exe |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
35 $(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
36 $(LINK) $(LINK_OUT)$@ \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
37 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
38 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
39 cmdproxy: $(BLD) $(BLD)/cmdproxy.exe |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
40 $(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
41 $(LINK) $(LINK_OUT)$@ \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
42 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
43 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
44 addsection: $(BLD) $(BLD)/addsection.exe |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
45 $(BLD)/addsection.exe: $(BLD)/addsection.$(O) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
46 $(LINK) $(LINK_OUT)$@ \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
47 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
48 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
49 preprep: $(BLD) $(BLD)/preprep.exe |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
50 $(BLD)/preprep.exe: $(BLD)/preprep.$(O) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
51 $(LINK) $(LINK_OUT)$@ \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
52 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
53 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
54 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
55 # The resource file. NT 3.10 requires the use of cvtres; even though |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
56 # it is not necessary on later versions, it is still ok to use it. |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
57 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
58 $(TRES): emacs.rc |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
59 $(RC) $(RC_OUT)$(BLD)/emacs.res $(ALL_DEPS) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
60 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
61 runemacs: $(BLD) $(BLD)/runemacs.exe |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
62 $(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
63 $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \ |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
64 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
65 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
66 which-sh: |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
67 @echo Using $(THE_SHELL) as shell. |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
68 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
69 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
70 # Build emacs |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
71 # |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
72 all: which-sh $(BLD) $(ALL) all-other-dirs-$(MAKETYPE) |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
73 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
74 all-other-dirs-nmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
75 cd ..\lib-src |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
76 $(MAKE) $(MFLAGS) all |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
77 cd ..\src |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
78 $(MAKE) $(MFLAGS) all |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
79 cd ..\lisp |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
80 $(MAKE) $(MFLAGS) all |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
81 cd ..\leim |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
82 $(MAKE) $(MFLAGS) all |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
83 cd ..\nt |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
84 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
85 all-other-dirs-gmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
86 $(MAKE) $(MFLAGS) -C ../lib-src all |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
87 $(MAKE) $(MFLAGS) -C ../src all |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
88 $(MAKE) $(MFLAGS) -C ../lisp all |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
89 $(MAKE) $(MFLAGS) -C ../leim all |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
90 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
91 recompile: recompile-$(MAKETYPE) |
32568
9add78d15256
(recompile): New target to recompile lisp
Andrew Innes <andrewi@gnu.org>
parents:
31631
diff
changeset
|
92 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
93 recompile-nmake: |
32568
9add78d15256
(recompile): New target to recompile lisp
Andrew Innes <andrewi@gnu.org>
parents:
31631
diff
changeset
|
94 cd ..\lisp |
9add78d15256
(recompile): New target to recompile lisp
Andrew Innes <andrewi@gnu.org>
parents:
31631
diff
changeset
|
95 $(MAKE) $(MFLAGS) recompile |
9add78d15256
(recompile): New target to recompile lisp
Andrew Innes <andrewi@gnu.org>
parents:
31631
diff
changeset
|
96 cd ..\nt |
9add78d15256
(recompile): New target to recompile lisp
Andrew Innes <andrewi@gnu.org>
parents:
31631
diff
changeset
|
97 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
98 recompile-gmake: |
32568
9add78d15256
(recompile): New target to recompile lisp
Andrew Innes <andrewi@gnu.org>
parents:
31631
diff
changeset
|
99 $(MAKE) $(MFLAGS) -C ../lisp recompile |
9add78d15256
(recompile): New target to recompile lisp
Andrew Innes <andrewi@gnu.org>
parents:
31631
diff
changeset
|
100 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
101 bootstrap: $(BLD) $(ALL) bootstrap-$(MAKETYPE) |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
102 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
103 bootstrap-nmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
104 cd ..\src |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
105 $(MAKE) $(MFLAGS) bootstrap |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
106 $(MAKE) $(MFLAGS) bootstrap-clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
107 cd ..\lisp |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
108 $(MAKE) $(MFLAGS) bootstrap |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
109 cd ..\nt |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
110 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
111 bootstrap-gmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
112 $(MAKE) $(MFLAGS) -C ../src bootstrap |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
113 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
114 $(MAKE) $(MFLAGS) -C ../lisp bootstrap |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
115 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
116 bootstrap-clean: bootstrap-clean-$(MAKETYPE) |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
117 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
118 bootstrap-clean-nmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
119 cd ..\src |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
120 $(MAKE) $(MFLAGS) bootstrap-clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
121 cd ..\lisp |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
122 $(MAKE) $(MFLAGS) bootstrap-clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
123 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
124 bootstrap-clean-gmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
125 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
126 $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
127 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
128 $(INSTALL_DIR): |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
129 - mkdir "$(INSTALL_DIR)" |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
130 |
39113
21c599d3bce3
($(INSTALL_DIR)/bin): Depend on $(INSTALL_DIR),
Eli Zaretskii <eliz@gnu.org>
parents:
39053
diff
changeset
|
131 $(INSTALL_DIR)/bin: $(INSTALL_DIR) |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
132 - mkdir "$(INSTALL_DIR)/bin" |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
133 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
134 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
135 # Build and install emacs in INSTALL_DIR |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
136 # |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
137 install: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
138 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
139 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
140 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
141 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
142 - $(CP) ../lib-src/fns-*.el $(INSTALL_DIR)/bin |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
143 - "$(INSTALL_DIR)/bin/addpm" /q |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
144 - $(DEL) ../same-dir.tst |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
145 - $(DEL) $(INSTALL_DIR)/same-dir.tst |
34642
03059a61bb11
(install): Copy directories to the correct
Andrew Innes <andrewi@gnu.org>
parents:
32568
diff
changeset
|
146 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" |
03059a61bb11
(install): Copy directories to the correct
Andrew Innes <andrewi@gnu.org>
parents:
32568
diff
changeset
|
147 - mkdir "$(INSTALL_DIR)/etc" |
03059a61bb11
(install): Copy directories to the correct
Andrew Innes <andrewi@gnu.org>
parents:
32568
diff
changeset
|
148 - mkdir "$(INSTALL_DIR)/info" |
03059a61bb11
(install): Copy directories to the correct
Andrew Innes <andrewi@gnu.org>
parents:
32568
diff
changeset
|
149 - mkdir "$(INSTALL_DIR)/lock" |
03059a61bb11
(install): Copy directories to the correct
Andrew Innes <andrewi@gnu.org>
parents:
32568
diff
changeset
|
150 - mkdir "$(INSTALL_DIR)/data" |
03059a61bb11
(install): Copy directories to the correct
Andrew Innes <andrewi@gnu.org>
parents:
32568
diff
changeset
|
151 - mkdir "$(INSTALL_DIR)/site-lisp" |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
152 - mkdir "$(INSTALL_DIR)/etc/icons" |
39053
172e8e99458f
(install): Copy subdirs.el to the installation directory.
Eli Zaretskii <eliz@gnu.org>
parents:
36375
diff
changeset
|
153 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF) |
34642
03059a61bb11
(install): Copy directories to the correct
Andrew Innes <andrewi@gnu.org>
parents:
32568
diff
changeset
|
154 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF) |
03059a61bb11
(install): Copy directories to the correct
Andrew Innes <andrewi@gnu.org>
parents:
32568
diff
changeset
|
155 - $(CP_DIR) icons $(INSTALL_DIR)/etc |
03059a61bb11
(install): Copy directories to the correct
Andrew Innes <andrewi@gnu.org>
parents:
32568
diff
changeset
|
156 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF) |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
157 - $(DEL) ../same-dir.tst |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
158 - $(DEL) $(INSTALL_DIR)/same-dir.tst |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
159 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
160 install-other-dirs-nmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
161 cd ..\lib-src |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
162 $(MAKE) $(MFLAGS) install |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
163 cd ..\src |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
164 $(MAKE) $(MFLAGS) install |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
165 cd ..\lisp |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
166 $(MAKE) $(MFLAGS) install |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
167 cd ..\leim |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
168 $(MAKE) $(MFLAGS) install |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
169 cd ..\nt |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
170 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
171 install-other-dirs-gmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
172 $(MAKE) $(MFLAGS) -C ../lib-src install |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
173 $(MAKE) $(MFLAGS) -C ../src install |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
174 $(MAKE) $(MFLAGS) -C ../lisp install |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
175 $(MAKE) $(MFLAGS) -C ../leim install |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
176 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
177 # |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
178 # Maintenance |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
179 # |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
180 clean: clean-other-dirs-$(MAKETYPE) |
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
181 - $(DEL) *~ $(COMPILER_TEMP_FILES) |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
182 - $(DEL_TREE) $(OBJDIR) |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
183 - $(DEL) ../etc/DOC ../etc/DOC-X |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
184 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
185 clean-other-dirs-nmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
186 cd ..\lib-src |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
187 $(MAKE) $(MFLAGS) clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
188 cd ..\src |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
189 $(MAKE) $(MFLAGS) clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
190 cd ..\lisp |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
191 $(MAKE) $(MFLAGS) clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
192 cd ..\leim |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
193 $(MAKE) $(MFLAGS) clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
194 cd ..\nt |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
195 |
35104
72dc0b4e554c
Use $(MAKETYPE) instead of $(SHELLTYPE) to
Andrew Innes <andrewi@gnu.org>
parents:
34642
diff
changeset
|
196 clean-other-dirs-gmake: |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
197 $(MAKE) $(MFLAGS) -C ../lib-src clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
198 $(MAKE) $(MFLAGS) -C ../src clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
199 $(MAKE) $(MFLAGS) -C ../lisp clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
200 $(MAKE) $(MFLAGS) -C ../leim clean |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
201 |
35502
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
202 cleanall-other-dirs-nmake: |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
203 cd ..\lib-src |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
204 $(MAKE) $(MFLAGS) cleanall |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
205 cd ..\src |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
206 $(MAKE) $(MFLAGS) cleanall |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
207 cd ..\nt |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
208 |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
209 cleanall-other-dirs-gmake: |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
210 $(MAKE) $(MFLAGS) -C ../lib-src cleanall |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
211 $(MAKE) $(MFLAGS) -C ../src cleanall |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
212 |
b74a256555ac
(cleanall-other-dirs-nmake):
Andrew Innes <andrewi@gnu.org>
parents:
35104
diff
changeset
|
213 cleanall: clean cleanall-other-dirs-$(MAKETYPE) |
31631
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
214 - $(DEL_TREE) obj |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
215 - $(DEL_TREE) obj-spd |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
216 - $(DEL_TREE) oo |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
217 - $(DEL_TREE) oo-spd |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
218 |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
219 realclean: cleanall |
011566e20a32
Revert to Unix line endings.
Andrew Innes <andrewi@gnu.org>
parents:
31629
diff
changeset
|
220 - $(DEL_TREE) ../bin |