removed ^Ms
[bpt/emacs.git] / nt / makefile.nt
CommitLineData
efdeeb2b
GV
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
24SUBDIRS = lib-src src lisp
25
26#
27# Build emacs
28#
29all:; for %%f in ( $(SUBDIRS) ) do cd ..\%%f & $(MAKE) -f makefile.nt all
30
31#
32# Build and install emacs in INSTALL_DIR
33#
34install: all
35 - mkdir $(INSTALL_DIR)
36 for %%f in ( $(SUBDIRS) ) do cd ..\%%f & $(MAKE) -f makefile.nt install
37 - $(CP) emacs.bat $(INSTALL_DIR)\bin
38 - del /q ..\same-dir.tst
39 - del /q $(INSTALL_DIR)\same-dir.tst
40 echo SameDirTest > ..\same-dir.tst
41 if not exist $(INSTALL_DIR)\same-dir.tst $(MAKE) -f makefile.nt real_install
42 - del /q ..\same-dir.tst
43 - del /q $(INSTALL_DIR)\same-dir.tst
44
45#
46# This installs executables from ..\bin into the installation directory
47# without building anything.
48#
49fast_install:
50 - mkdir $(INSTALL_DIR)\data
51 $(CP) ..\lib-src\DOC $(INSTALL_DIR)\etc
52 - mkdir $(INSTALL_DIR)\bin
53 - $(CP) emacs.bat $(INSTALL_DIR)\bin
54 - del /q ..\same-dir.tst
55 - del /q $(INSTALL_DIR)\same-dir.tst
56 echo SameDirTest > ..\same-dir.tst
57 if not exist $(INSTALL_DIR)\same-dir.tst $(CP) ..\bin\emacs.exe $(INSTALL_DIR)\bin
58 if not exist $(INSTALL_DIR)\same-dir.tst $(CP) ..\bin\etags.exe $(INSTALL_DIR)\bin
59 if not exist $(INSTALL_DIR)\same-dir.tst $(CP) ..\bin\ctags.exe $(INSTALL_DIR)\bin
60 if not exist $(INSTALL_DIR)\same-dir.tst nmake -f $(MAKE) real_install
61 - del /q ..\same-dir.tst
62 - del /q $(INSTALL_DIR)\same-dir.tst
63
64real_install:
65 - del /q ..\same-dir.tst
66 - del /q $(INSTALL_DIR)\same-dir.tst
67 echo SameDirTest > ..\same-dir.tst
68 - mkdir $(INSTALL_DIR)\etc
69 - mkdir $(INSTALL_DIR)\info
70 - mkdir $(INSTALL_DIR)\lock
71 - mkdir $(INSTALL_DIR)\data
72 if not exist $(INSTALL_DIR)\nt\same-dir.tst $(CP_DIR) ..\etc $(INSTALL_DIR)\etc
73 if not exist $(INSTALL_DIR)\nt\same-dir.tst $(CP_DIR) ..\info $(INSTALL_DIR)\info
74 - del /q ..\same-dir.tst
75 - del /q $(INSTALL_DIR)\same-dir.tst
76
77#
78# Maintenance
79#
80clean:; - del /q /s *~
81 - $(DEL_TREE) deleted
82 - $(DEL_TREE) ..\bin
83 for %%f in ( $(SUBDIRS) ) do cd ..\%%f & $(MAKE) -f makefile.nt clean