4 |
# Top level makefile for building GNU Emacs on Windows NT |
# Top level makefile for building GNU Emacs on Windows NT |
5 |
# |
# |
6 |
# This file is part of GNU Emacs. |
# This file is part of GNU Emacs. |
7 |
# |
# |
8 |
# GNU Emacs is free software; you can redistribute it and/or modify |
# GNU Emacs is free software; you can redistribute it and/or modify |
9 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
10 |
# the Free Software Foundation; either version 2, or (at your option) |
# the Free Software Foundation; either version 2, or (at your option) |
11 |
# any later version. |
# any later version. |
12 |
# |
# |
13 |
# GNU Emacs is distributed in the hope that it will be useful, |
# GNU Emacs is distributed in the hope that it will be useful, |
14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
# GNU General Public License for more details. |
# GNU General Public License for more details. |
17 |
# |
# |
18 |
# You should have received a copy of the GNU General Public License |
# You should have received a copy of the GNU General Public License |
19 |
# along with GNU Emacs; see the file COPYING. If not, write to |
# along with GNU Emacs; see the file COPYING. If not, write to |
20 |
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
69 |
# |
# |
70 |
# Build emacs |
# Build emacs |
71 |
# |
# |
72 |
all: which-sh $(BLD) $(ALL) all-other-dirs-$(MAKETYPE) |
all: which-sh $(BLD) $(ALL) maybe-bootstrap all-other-dirs-$(MAKETYPE) |
73 |
|
|
74 |
all-other-dirs-nmake: |
all-other-dirs-nmake: |
75 |
cd ..\lib-src |
cd ..\lib-src |
105 |
### special emacs executable is built from Lisp sources, which is then |
### special emacs executable is built from Lisp sources, which is then |
106 |
### used to compile Lisp files. The last step is a "normal" make. |
### used to compile Lisp files. The last step is a "normal" make. |
107 |
|
|
108 |
|
maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE) |
109 |
|
|
110 |
|
# dummy target to force other targets to be evaluated. |
111 |
|
doit: |
112 |
|
|
113 |
|
maybe-bootstrap-CMD: doit |
114 |
|
@echo. |
115 |
|
@if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing. You should either |
116 |
|
@if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow |
117 |
|
@echo. |
118 |
|
@if not EXIST ..\lisp\abbrev.elc exit -1 |
119 |
|
|
120 |
|
maybe-bootstrap-SH: doit |
121 |
|
@if [ ! -f ../lisp/abbrev.elc ] ; then \ |
122 |
|
echo; \ |
123 |
|
echo "Essential Lisp files seem to be missing. You should either"; \ |
124 |
|
echo "do \`make bootstrap' or create \`lisp/abbrev.elc' somehow."; \ |
125 |
|
echo; \ |
126 |
|
exit -1; \ |
127 |
|
fi |
128 |
|
|
129 |
bootstrap: addsection bootstrap-$(MAKETYPE) all |
bootstrap: addsection bootstrap-$(MAKETYPE) all |
130 |
|
|
131 |
bootstrap-nmake: |
bootstrap-nmake: |
216 |
|
|
217 |
# |
# |
218 |
# Maintenance |
# Maintenance |
219 |
# |
# |
220 |
clean: clean-other-dirs-$(MAKETYPE) |
clean: clean-other-dirs-$(MAKETYPE) |
221 |
- $(DEL) *~ $(COMPILER_TEMP_FILES) |
- $(DEL) *~ $(COMPILER_TEMP_FILES) |
222 |
- $(DEL_TREE) $(OBJDIR) |
- $(DEL_TREE) $(OBJDIR) |