Updated with latest version. Changes include:
[emacs.git] / lisp / makefile.nt
blob3a492bb5cda2c691d68b4f07b45c20640baad1e3
1 #  Hacked up Nmake makefile for GNU Emacs
2 #   Geoff Voelker (voelker@cs.washington.edu)
3 #  Copyright (c) 1994 Free Software Foundation, Inc.
5 #  This file is part of GNU Emacs.
6 #  
7 #  GNU Emacs is free software; you can redistribute it and/or modify
8 #  it under the terms of the GNU General Public License as published by
9 #  the Free Software Foundation; either version 2, or (at your option)
10 #  any later version.
11 #  
12 #  GNU Emacs is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #  GNU General Public License for more details.
16 #  
17 #  You should have received a copy of the GNU General Public License
18 #  along with GNU Emacs; see the file COPYING.  If not, write to the
19 #  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 #  Boston, MA 02111-1307, USA.
23 !include ..\nt\makefile.def
25 all:
27 topdontcompile = cus-load.el forms-d2.el forms-pass.el patcomp.el \
28                  subdirs.el version.el
29 maildontcompile = mail\blessmail.el mail\sc.el
30 playdontcompile = play\bruce.el
31 interdontcompile = international\latin-1.el international\latin-2.el \
32                  international\latin-3.el international\latin-4.el \
33                  international\latin-5.el international\mule-conf.el
36 # Assuming INSTALL_DIR is defined, copy the elisp files to it
38 install:;       - mkdir $(INSTALL_DIR)\lisp
39                 - $(DEL) .\same-dir.tst
40                 - $(DEL) $(INSTALL_DIR)\lisp\same-dir.tst
41                 echo SameDirTest > $(INSTALL_DIR)\lisp\same-dir.tst
42 !ifdef COPY_LISP_SOURCE
43                 if not exist .\same-dir.tst $(CP_DIR) . $(INSTALL_DIR)\lisp
44 !else
45                 if not exist .\same-dir.tst $(CP_DIR) *.elc $(INSTALL_DIR)\lisp
46                 if not exist .\same-dir.tst for %%f in ( $(topdontcompile) ) do $(CP) %%f $(INSTALL_DIR)\lisp
47                 if not exist .\same-dir.tst for %%f in ( $(maildontcompile) ) do $(CP) %%f $(INSTALL_DIR)\lisp\mail
48                 if not exist .\same-dir.tst for %%f in ( $(playdontcompile) ) do $(CP) %%f $(INSTALL_DIR)\lisp\play
49 !endif
50                 if not exist .\same-dir.tst for %%f in ( $(interdontcompile) ) do $(CP) %%f $(INSTALL_DIR)\lisp\international
51                 - $(DEL) $(INSTALL_DIR)\lisp\same-dir.tst
54 # Maintenance
55
56 clean:;         - $(DEL) *~ term\*~
57                 - $(DEL) *.orig *.rej *.crlf
58                 - $(DEL) emacs-lisp\*.orig emacs-lisp\*.rej emacs-lisp\*.crlf
59                 - $(DEL) emulation\*.orig emulation\*.rej emulation\*.crlf
60                 - $(DEL) gnus\*.orig gnus\*.rej gnus\*.crlf
61                 - $(DEL) international\*.orig international\*.rej international\*.crlf
62                 - $(DEL) language\*.orig language\*.rej language\*.crlf
63                 - $(DEL) mail\*.orig mail\*.rej mail\*.crlf
64                 - $(DEL) play\*.orig play\*.rej play\*.crlf
65                 - $(DEL) progmodes\*.orig progmodes\*.rej progmodes\*.crlf
66                 - $(DEL) term\*.orig term\*.rej term\*.crlf
67                 - $(DEL) textmodes\*.orig textmodes\*.rej textmodes\*.crlf
68                 - $(DEL_TREE) deleted