annotate lisp/makefile.nt @ 28569:e2b3c1885fb1

Use keywordp.
author Dave Love <fx@gnu.org>
date Thu, 13 Apr 2000 19:05:47 +0000
parents e024ab46002c
children 39e2dae95929
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 # Hacked up Nmake makefile for GNU Emacs
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 # Geoff Voelker (voelker@cs.washington.edu)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3 # Copyright (c) 1994 Free Software Foundation, Inc.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 #
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5 # This file is part of GNU Emacs.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 #
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 # GNU Emacs is free software; you can redistribute it and/or modify
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 # it under the terms of the GNU General Public License as published by
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 # the Free Software Foundation; either version 2, or (at your option)
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10 # any later version.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 #
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 # GNU Emacs is distributed in the hope that it will be useful,
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15 # GNU General Public License for more details.
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 #
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License
15742
80562f089595 Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 14899
diff changeset
18 # along with GNU Emacs; see the file COPYING. If not, write to the
80562f089595 Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 14899
diff changeset
19 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
80562f089595 Fix FSF address in comment.
Karl Heuer <kwzh@gnu.org>
parents: 14899
diff changeset
20 # Boston, MA 02111-1307, USA.
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 #
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 !include ..\nt\makefile.def
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 all:
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26
27622
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
27 # You can specify a different executable on the make command line,
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
28 # e.g. "make EMACS=../src/emacs ...".
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
29
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
30 EMACS = ..\src\$(BLD)\emacs
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
31
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
32 # Command line flags for Emacs. This must include --multibyte,
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
33 # otherwise some files will not compile.
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
34
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
35 EMACSOPT = --no-init-file --no-site-file --multibyte -batch
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
36
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
37 # Files which should not be compiled. All file names must be relative
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
38 # to the `lisp' directory.
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
39 # - emacs-lisp/cl-specs.el: only contains `def-edebug-spec's so there's
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
40 # no point compiling it, although it doesn't hurt.
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
41
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
42 DONTCOMPILE = bindings.el mail/blessmail.el play/bruce.el cus-load.el \
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
43 cus-start.el forms-d2.el forms-pass.el \
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
44 international/latin-1.el international/latin-2.el \
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
45 international/latin-3.el international/latin-4.el \
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
46 international/latin-5.el \
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
47 loaddefs.el loadup.el international/mule-conf.el patcomp.el \
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
48 paths.el mail/sc.el subdirs.el version.el \
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
49 generic-x.el international/latin-8.el international/latin-9.el \
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
50 emacs-lisp/cl-specs.el finder-inf.el term/internal.el
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
51
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
52 # The actual Emacs command run in the targets below.
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
53
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
54 emacs = $(EMACS) $(EMACSOPT)
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
55
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
56 .el.elc:
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
57 -$(emacs) -f batch-byte-compile $<
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
58
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
59 $(DONTCOMPILE:.el=.elc):
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
60 -$(DEL) $@
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
61
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
62 # Recompile all Lisp files which are newer than their .elc files.
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
63 # Note that this doesn't create .elc files. It only recompiles if an
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
64 # .elc is present.
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
65
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
66 recompile:
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
67 $(emacs) -f batch-byte-recompile-directory .
21596
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
68
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 #
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70 # Assuming INSTALL_DIR is defined, copy the elisp files to it
24320
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
71 # Windows 95 makes this harder than it should be.
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72 #
27622
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
73 install:
e024ab46002c (install): Synchronize rules for compiling with Unix version.
Andrew Innes <andrewi@gnu.org>
parents: 24320
diff changeset
74 - mkdir $(INSTALL_DIR)\lisp
14899
4b7b8a937a5d Change uses of del to $(DEL).
Geoff Voelker <voelker@cs.washington.edu>
parents: 13632
diff changeset
75 - $(DEL) .\same-dir.tst
4b7b8a937a5d Change uses of del to $(DEL).
Geoff Voelker <voelker@cs.washington.edu>
parents: 13632
diff changeset
76 - $(DEL) $(INSTALL_DIR)\lisp\same-dir.tst
13535
b077415f487d (install): Change same-dir test to create test file in
Geoff Voelker <voelker@cs.washington.edu>
parents: 11400
diff changeset
77 echo SameDirTest > $(INSTALL_DIR)\lisp\same-dir.tst
21596
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
78 !ifdef COPY_LISP_SOURCE
13535
b077415f487d (install): Change same-dir test to create test file in
Geoff Voelker <voelker@cs.washington.edu>
parents: 11400
diff changeset
79 if not exist .\same-dir.tst $(CP_DIR) . $(INSTALL_DIR)\lisp
21596
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
80 !else
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
81 if not exist .\same-dir.tst $(CP_DIR) *.elc $(INSTALL_DIR)\lisp
24320
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
82 if not exist .\same-dir.tst $(CP) cus-load.el $(INSTALL_DIR)\lisp
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
83 if not exist .\same-dir.tst $(CP) forms*.el $(INSTALL_DIR)\lisp
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
84 if not exist .\same-dir.tst $(CP) patcomp.el $(INSTALL_DIR)\lisp
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
85 if not exist .\same-dir.tst $(CP) subdirs.el $(INSTALL_DIR)\lisp
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
86 if not exist .\same-dir.tst $(CP) version.el $(INSTALL_DIR)\lisp
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
87 if not exist .\same-dir.tst $(CP) mail\blessmail.el $(INSTALL_DIR)\lisp\mail
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
88 if not exist .\same-dir.tst $(CP) mail\sc.el $(INSTALL_DIR)\lisp\mail
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
89 if not exist .\same-dir.tst $(CP) play\bruce.el $(INSTALL_DIR)\lisp\play
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
90 if not exist .\same-dir.tst $(CP) international\latin-*.el $(INSTALL_DIR)\lisp\international
5df541fa3e2b (INSTALL): Copy the handful of uncompiled lisp files
Geoff Voelker <voelker@cs.washington.edu>
parents: 23833
diff changeset
91 if not exist .\same-dir.tst $(CP) international\mule-conf.el $(INSTALL_DIR)\lisp\international
14899
4b7b8a937a5d Change uses of del to $(DEL).
Geoff Voelker <voelker@cs.washington.edu>
parents: 13632
diff changeset
92 - $(DEL) $(INSTALL_DIR)\lisp\same-dir.tst
23833
088714863cc9 (install) [COPY_LISP_SOURCE]: Fix end of conditional.
Geoff Voelker <voelker@cs.washington.edu>
parents: 21655
diff changeset
93 !endif
21655
cfb05eddeb55 (interdontcompile): New macro.
Geoff Voelker <voelker@cs.washington.edu>
parents: 21596
diff changeset
94
9803
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 #
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 # Maintenance
fa698fd10c05 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 #
21596
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
98 clean:; - $(DEL) *~ term\*~
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
99 - $(DEL) *.orig *.rej *.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
100 - $(DEL) emacs-lisp\*.orig emacs-lisp\*.rej emacs-lisp\*.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
101 - $(DEL) emulation\*.orig emulation\*.rej emulation\*.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
102 - $(DEL) gnus\*.orig gnus\*.rej gnus\*.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
103 - $(DEL) international\*.orig international\*.rej international\*.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
104 - $(DEL) language\*.orig language\*.rej language\*.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
105 - $(DEL) mail\*.orig mail\*.rej mail\*.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
106 - $(DEL) play\*.orig play\*.rej play\*.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
107 - $(DEL) progmodes\*.orig progmodes\*.rej progmodes\*.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
108 - $(DEL) term\*.orig term\*.rej term\*.crlf
de7ecc11ba03 (install): Copy elisp files that are not compiled.
Geoff Voelker <voelker@cs.washington.edu>
parents: 15742
diff changeset
109 - $(DEL) textmodes\*.orig textmodes\*.rej textmodes\*.crlf
11400
110427887843 (all): Use DEL_TREE instead of delnode.
Karl Heuer <kwzh@gnu.org>
parents: 9803
diff changeset
110 - $(DEL_TREE) deleted