Mercurial > emacs
annotate Makefile.in @ 108575:f6cfadfc0fb6
* eval.c (specbind): Disallow let-binding frame-local vars.
Remove left-over duplicate test. Add comment.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Fri, 14 May 2010 13:53:42 -0400 |
parents | 39e86d46390a |
children | 438f784b2966 |
rev | line source |
---|---|
617 | 1 # DIST: This is the distribution Makefile for Emacs. configure can |
2 # DIST: make most of the changes to this file you might want, so try | |
3 # DIST: that first. | |
491 | 4 |
74372 | 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
106815 | 6 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
79751 | 7 # Free Software Foundation, Inc. |
36226 | 8 |
9 # This file is part of GNU Emacs. | |
10 | |
94719
1a762a842f80
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94598
diff
changeset
|
11 # GNU Emacs is free software: you can redistribute it and/or modify |
36226 | 12 # it under the terms of the GNU General Public License as published by |
94719
1a762a842f80
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94598
diff
changeset
|
13 # the Free Software Foundation, either version 3 of the License, or |
1a762a842f80
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94598
diff
changeset
|
14 # (at your option) any later version. |
36226 | 15 |
16 # GNU Emacs is distributed in the hope that it will be useful, | |
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 # GNU General Public License for more details. | |
20 | |
21 # You should have received a copy of the GNU General Public License | |
94719
1a762a842f80
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94598
diff
changeset
|
22 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
1a762a842f80
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94598
diff
changeset
|
23 |
1a762a842f80
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
94598
diff
changeset
|
24 ### Commentary: |
36226 | 25 |
617 | 26 # make all to compile and build Emacs. |
27 # make install to install it. | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
28 # make TAGS to update tags tables. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
29 # |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
30 # make clean or make mostlyclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
31 # Delete all files from the current directory that are normally |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
32 # created by building the program. Don't delete the files that |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
33 # record the configuration. Also preserve files that could be made |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
34 # by building, but normally aren't because the distribution comes |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
35 # with them. |
491 | 36 # |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
37 # Delete `.dvi' files here if they are not part of the distribution. |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49549
diff
changeset
|
38 # |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
39 # make distclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
40 # Delete all files from the current directory that are created by |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
41 # configuring or building the program. If you have unpacked the |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
42 # source and built the program without creating any other files, |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
43 # `make distclean' should leave only the files that were in the |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
44 # distribution. |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49549
diff
changeset
|
45 # |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
46 # make maintainer-clean |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
47 # Delete everything from the current directory that can be |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
48 # reconstructed with this Makefile. This typically includes |
54673
09447687fd1f
Mention in comment that `make maintainer-clean' deletes .elc files.
Luc Teirlinck <teirllm@auburn.edu>
parents:
54245
diff
changeset
|
49 # everything deleted by distclean, plus more: .elc files, |
09447687fd1f
Mention in comment that `make maintainer-clean' deletes .elc files.
Luc Teirlinck <teirllm@auburn.edu>
parents:
54245
diff
changeset
|
50 # C source files produced by Bison, tags tables, info files, |
09447687fd1f
Mention in comment that `make maintainer-clean' deletes .elc files.
Luc Teirlinck <teirllm@auburn.edu>
parents:
54245
diff
changeset
|
51 # and so on. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
52 # |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
53 # make extraclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
54 # Still more severe - delete backup and autosave files, too. |
58038 | 55 # |
58137 | 56 # make bootstrap |
96137
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
57 # Removes all the compiled files to force a new bootstrap from a |
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
58 # clean slate, and then build in the normal way. |
491 | 59 |
60 SHELL = /bin/sh | |
6868
f2edac55dc7a
(MAKE): Don't just assign it--use @SET_MAKE@.
Richard M. Stallman <rms@gnu.org>
parents:
6514
diff
changeset
|
61 |
53903
ad44d90738f2
Set CDPATH to an empty string.
Luc Teirlinck <teirllm@auburn.edu>
parents:
53279
diff
changeset
|
62 # This may not work with certain non-GNU make's. It only matters when |
ad44d90738f2
Set CDPATH to an empty string.
Luc Teirlinck <teirllm@auburn.edu>
parents:
53279
diff
changeset
|
63 # inheriting a CDPATH not starting with the current directory. |
ad44d90738f2
Set CDPATH to an empty string.
Luc Teirlinck <teirllm@auburn.edu>
parents:
53279
diff
changeset
|
64 CDPATH= |
ad44d90738f2
Set CDPATH to an empty string.
Luc Teirlinck <teirllm@auburn.edu>
parents:
53279
diff
changeset
|
65 |
6868
f2edac55dc7a
(MAKE): Don't just assign it--use @SET_MAKE@.
Richard M. Stallman <rms@gnu.org>
parents:
6514
diff
changeset
|
66 # If Make doesn't predefine MAKE, set it here. |
f2edac55dc7a
(MAKE): Don't just assign it--use @SET_MAKE@.
Richard M. Stallman <rms@gnu.org>
parents:
6514
diff
changeset
|
67 @SET_MAKE@ |
491 | 68 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
69 # ==================== Things `configure' Might Edit ==================== |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
70 |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
71 CC=@CC@ |
2710
c64e97b1685b
* Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
Jim Blandy <jimb@redhat.com>
parents:
2623
diff
changeset
|
72 CFLAGS=@CFLAGS@ |
19013
2d2812dac5f7
(LDFLAGS): Get this from configure, like CFLAGS.
Richard M. Stallman <rms@gnu.org>
parents:
18897
diff
changeset
|
73 LDFLAGS=@LDFLAGS@ |
19037
f37a8bfe3364
(CPPFLAGS): Get this from configure, like CFLAGS.
Richard M. Stallman <rms@gnu.org>
parents:
19013
diff
changeset
|
74 CPPFLAGS=@CPPFLAGS@ |
49652
5127a1bf36db
(EXEEXT): Define to @EXEEXT@ and use this variable
Andreas Schwab <schwab@suse.de>
parents:
49600
diff
changeset
|
75 EXEEXT=@EXEEXT@ |
94598
bc725ee2bc85
(MAKEINFO): New, set by configure.
Glenn Morris <rgm@gnu.org>
parents:
93334
diff
changeset
|
76 MAKEINFO=@MAKEINFO@ |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
77 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
78 ### These help us choose version- and architecture-specific directories |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
79 ### to install files in. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
80 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
81 ### This should be the number of the Emacs version we're building, |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
82 ### like `18.59' or `19.0'. |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
83 version=@version@ |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
84 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
85 ### This should be the name of the configuration we're building Emacs |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
86 ### for, like `mips-dec-ultrix' or `sparc-sun-sunos'. |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
87 configuration=@configuration@ |
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
88 |
617 | 89 # ==================== Where To Install Things ==================== |
90 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
91 # The default location for installation. Everything is placed in |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
92 # subdirectories of this directory. The default values for many of |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
93 # the variables below are expressed in terms of this one, so you may |
2974
253a291a62ca
* configure.in: Implement the --prefix option.
Jim Blandy <jimb@redhat.com>
parents:
2859
diff
changeset
|
94 # not need to change them. This defaults to /usr/local. |
253a291a62ca
* configure.in: Implement the --prefix option.
Jim Blandy <jimb@redhat.com>
parents:
2859
diff
changeset
|
95 prefix=@prefix@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
96 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
97 # Like `prefix', but used for architecture-specific files. |
3010
4ca5a6bd174b
* configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents:
2988
diff
changeset
|
98 exec_prefix=@exec_prefix@ |
617 | 99 |
100 # Where to install Emacs and other binaries that people will want to | |
101 # run directly (like etags). | |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
102 bindir=@bindir@ |
491 | 103 |
74914 | 104 # The root of the directory tree for read-only architecture-independent |
105 # data files. ${datadir}, ${infodir} and ${mandir} are based on this. | |
106 datarootdir=@datarootdir@ | |
107 | |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
108 # Where to install architecture-independent data files. ${lispdir} |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
109 # and ${etcdir} are subdirectories of this. |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
110 datadir=@datadir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
111 |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
112 # Where to install and expect the files that Emacs modifies as it |
19214
33bdcdd88f19
(mkdir): Don't create lockdir.
Richard M. Stallman <rms@gnu.org>
parents:
19037
diff
changeset
|
113 # runs. These files are all architecture-independent. |
33bdcdd88f19
(mkdir): Don't create lockdir.
Richard M. Stallman <rms@gnu.org>
parents:
19037
diff
changeset
|
114 # Right now, this is not used. |
9561
4ec345bfb51f
(sharedstatedir): Substitute sharedstatedir properly.
Richard M. Stallman <rms@gnu.org>
parents:
9556
diff
changeset
|
115 sharedstatedir=@sharedstatedir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
116 |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
117 # Where to install and expect executable files to be run by Emacs |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
118 # rather than directly by users, and other architecture-dependent |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
119 # data. ${archlibdir} is a subdirectory of this. |
9457
a9a8a2326411
Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
9051
diff
changeset
|
120 libexecdir=@libexecdir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
121 |
100412 | 122 # Where to install Emacs's man pages. |
123 # This used to allow choice of the numeric extension, but this made | |
124 # little sense since the files were always installed in man1/ | |
125 # (and they contain cross-references that expect them to be there). | |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
126 mandir=@mandir@ |
13518
9e55dae21315
(mkdir): Create man1dir, not mandir.
Richard M. Stallman <rms@gnu.org>
parents:
13280
diff
changeset
|
127 man1dir=$(mandir)/man1 |
100412 | 128 MAN_PAGES=b2m.1 ctags.1 ebrowse.1 emacs.1 emacsclient.1 etags.1 \ |
129 grep-changelog.1 rcs-checkin.1 | |
617 | 130 |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
131 # Where to install and expect the info files describing Emacs. In the |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
132 # past, this defaulted to a subdirectory of ${prefix}/lib/emacs, but |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
133 # since there are now many packages documented with the texinfo |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
134 # system, it is inappropriate to imply that it is part of Emacs. |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
135 infodir=@infodir@ |
102389 | 136 INFO_FILES=ada-mode auth autotype calc ccmode cl dbus dired-x ebrowse \ |
106585 | 137 ede ediff edt eieio efaq eintr elisp emacs emacs-mime epa erc \ |
105517
44d58cfb225c
* Makefile.in (INFO_FILES): Add EDE and EIEIO.
Juanma Barranquero <lekktu@gmail.com>
parents:
104885
diff
changeset
|
138 eshell eudc flymake forms gnus idlwave info mairix-el \ |
44d58cfb225c
* Makefile.in (INFO_FILES): Add EDE and EIEIO.
Juanma Barranquero <lekktu@gmail.com>
parents:
104885
diff
changeset
|
139 message mh-e newsticker nxml-mode org pcl-cvs pgg rcirc \ |
106081 | 140 reftex remember sasl sc semantic ses sieve smtpmail speedbar \ |
141 tramp url vip viper widget woman | |
491 | 142 |
46595
195495fef5c8
(gamedir, localstatedir): New variables.
Richard M. Stallman <rms@gnu.org>
parents:
45893
diff
changeset
|
143 # Directory for local state files for all programs. |
195495fef5c8
(gamedir, localstatedir): New variables.
Richard M. Stallman <rms@gnu.org>
parents:
45893
diff
changeset
|
144 localstatedir=@localstatedir@ |
195495fef5c8
(gamedir, localstatedir): New variables.
Richard M. Stallman <rms@gnu.org>
parents:
45893
diff
changeset
|
145 |
9556
28320cad8c38
(bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
9506
diff
changeset
|
146 # Where to look for bitmap files. |
28320cad8c38
(bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
9506
diff
changeset
|
147 bitmapdir=@bitmapdir@ |
28320cad8c38
(bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
9506
diff
changeset
|
148 |
3079
7c17d7f9d242
* Makefile.in (srcdir): Remove comment saying this doesn't work.
Jim Blandy <jimb@redhat.com>
parents:
3060
diff
changeset
|
149 # Where to find the source code. The source code for Emacs's C kernel is |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
150 # expected to be in ${srcdir}/src, and the source code for Emacs's |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
151 # utility programs is expected to be in ${srcdir}/lib-src. This is |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
152 # set by the configure script's `--srcdir' option. |
22869 | 153 |
154 # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. | |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
155 srcdir=@srcdir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
156 |
84331 | 157 # Where the manpage source files are kept. |
158 mansrcdir=$(srcdir)/doc/man | |
159 | |
4809
499783e8afb2
(VPATH): Define to @srcdir@.
Roland McGrath <roland@gnu.org>
parents:
4793
diff
changeset
|
160 # Tell make where to find source files; this is needed for the makefiles. |
499783e8afb2
(VPATH): Define to @srcdir@.
Roland McGrath <roland@gnu.org>
parents:
4793
diff
changeset
|
161 VPATH=@srcdir@ |
499783e8afb2
(VPATH): Define to @srcdir@.
Roland McGrath <roland@gnu.org>
parents:
4793
diff
changeset
|
162 |
19387
252bf4f45d18
(paths-force): Store PATH_X_DEFAULTS in paths.h.
Richard M. Stallman <rms@gnu.org>
parents:
19218
diff
changeset
|
163 # Where to find the application default. |
252bf4f45d18
(paths-force): Store PATH_X_DEFAULTS in paths.h.
Richard M. Stallman <rms@gnu.org>
parents:
19218
diff
changeset
|
164 x_default_search_path=@x_default_search_path@ |
252bf4f45d18
(paths-force): Store PATH_X_DEFAULTS in paths.h.
Richard M. Stallman <rms@gnu.org>
parents:
19218
diff
changeset
|
165 |
96675
d45acf0c8d23
merging Emacs.app (NeXTstep port)
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96279
diff
changeset
|
166 # Location to install Emacs.app under NeXT/Open/GNUstep / Cocoa |
d45acf0c8d23
merging Emacs.app (NeXTstep port)
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96279
diff
changeset
|
167 ns_appdir=@ns_appdir@ |
96769
2b46fd076f88
remove need for nextstep/compile for NS build; also, add NEWS entry about the port
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96675
diff
changeset
|
168 ns_appbindir=@ns_appbindir@ |
2b46fd076f88
remove need for nextstep/compile for NS build; also, add NEWS entry about the port
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96675
diff
changeset
|
169 ns_appresdir=@ns_appresdir@ |
96675
d45acf0c8d23
merging Emacs.app (NeXTstep port)
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96279
diff
changeset
|
170 |
87588
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
171 # Where the etc/emacs.desktop file is to be installed. |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
172 desktopdir=$(datarootdir)/applications |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
173 |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
174 # Where the etc/images/icons/hicolor directory is to be installed. |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
175 icondir=$(datarootdir)/icons |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
176 |
92420 | 177 # The source directory for the icon files. |
178 iconsrcdir=$(srcdir)/etc/images/icons | |
179 | |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
180 # ==================== Emacs-specific directories ==================== |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
181 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
182 # These variables hold the values Emacs will actually use. They are |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
183 # based on the values of the standard Make variables above. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
184 |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
185 # Where to install the lisp files distributed with |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
186 # Emacs. This includes the Emacs version, so that the |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
187 # lisp files for different versions of Emacs will install |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
188 # themselves in separate directories. |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
189 lispdir=@lispdir@ |
617 | 190 |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
191 # Directories Emacs should search for lisp files specific |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
192 # to this site (i.e. customizations), before consulting |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
193 # ${lispdir}. This should be a colon-separated list of |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
194 # directories. |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
195 locallisppath=@locallisppath@ |
491 | 196 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
197 # Where Emacs will search to find its lisp files. Before |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
198 # changing this, check to see if your purpose wouldn't |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
199 # better be served by changing locallisppath. This |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
200 # should be a colon-separated list of directories. |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
201 lisppath=@lisppath@ |
491 | 202 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
203 # Where Emacs will search for its lisp files while |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
204 # building. This is only used during the process of |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
205 # compiling Emacs, to help Emacs find its lisp files |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
206 # before they've been installed in their final location. |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49549
diff
changeset
|
207 # It's usually identical to lisppath, except that |
8499 | 208 # it does not include locallisppath, and the |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
209 # entry for the directory containing the installed lisp |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
210 # files has been replaced with ../lisp. This should be a |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
211 # colon-separated list of directories. |
2817
d28c54ba888e
More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents:
2812
diff
changeset
|
212 buildlisppath=${srcdir}/lisp |
491 | 213 |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
214 # Where to install the other architecture-independent |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
215 # data files distributed with Emacs (like the tutorial, |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
216 # the cookie recipes and the Zippy database). This path |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
217 # usually contains the Emacs version number, so the data |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
218 # files for multiple versions of Emacs may be installed |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
219 # at once. |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
220 etcdir=@etcdir@ |
491 | 221 |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
222 # Where to put executables to be run by Emacs rather than |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
223 # the user. This path usually includes the Emacs version |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
224 # and configuration name, so that multiple configurations |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
225 # for multiple versions of Emacs may be installed at |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
226 # once. |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
227 archlibdir=@archlibdir@ |
2225
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
228 |
6033
f4dead15502f
Use docdir to initialize PATH_DOC in paths.h.
Karl Heuer <kwzh@gnu.org>
parents:
6013
diff
changeset
|
229 # Where to put the docstring file. |
f4dead15502f
Use docdir to initialize PATH_DOC in paths.h.
Karl Heuer <kwzh@gnu.org>
parents:
6013
diff
changeset
|
230 docdir=@docdir@ |
f4dead15502f
Use docdir to initialize PATH_DOC in paths.h.
Karl Heuer <kwzh@gnu.org>
parents:
6013
diff
changeset
|
231 |
46595
195495fef5c8
(gamedir, localstatedir): New variables.
Richard M. Stallman <rms@gnu.org>
parents:
45893
diff
changeset
|
232 # Where to install Emacs game score files. |
195495fef5c8
(gamedir, localstatedir): New variables.
Richard M. Stallman <rms@gnu.org>
parents:
45893
diff
changeset
|
233 gamedir=@gamedir@ |
195495fef5c8
(gamedir, localstatedir): New variables.
Richard M. Stallman <rms@gnu.org>
parents:
45893
diff
changeset
|
234 |
617 | 235 # ==================== Utility Programs for the Build ==================== |
236 | |
237 # Allow the user to specify the install program. | |
3090
7b418622d32b
(INSTALL): Add definition.
Richard M. Stallman <rms@gnu.org>
parents:
3079
diff
changeset
|
238 INSTALL = @INSTALL@ |
3010
4ca5a6bd174b
* configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents:
2988
diff
changeset
|
239 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
4ca5a6bd174b
* configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents:
2988
diff
changeset
|
240 INSTALL_DATA = @INSTALL_DATA@ |
49077
0c6ae1df6eb6
(INSTALL_INFO): Get install-info command from
David Kastrup <dak@gnu.org>
parents:
48747
diff
changeset
|
241 INSTALL_INFO = @INSTALL_INFO@ |
15975
9d392663cd09
(INSTALL_STRIP): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
15898
diff
changeset
|
242 # By default, we uphold the dignity of our programs. |
9d392663cd09
(INSTALL_STRIP): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
15898
diff
changeset
|
243 INSTALL_STRIP = |
617 | 244 |
66609
9578bb750e29
* configure.in: Check for gzip.
Romain Francoise <romain@orebokech.com>
parents:
65531
diff
changeset
|
245 # We use gzip to compress installed .el files. |
66654
a40925b52cdc
(GZIP_PROG): Renamed from GZIP.
Andreas Schwab <schwab@suse.de>
parents:
66619
diff
changeset
|
246 GZIP_PROG = @GZIP_PROG@ |
66609
9578bb750e29
* configure.in: Check for gzip.
Romain Francoise <romain@orebokech.com>
parents:
65531
diff
changeset
|
247 |
617 | 248 # ============================= Targets ============================== |
491 | 249 |
41098
091ed3787464
Add support for --program-prefix, --program-suffix
Pavel Janík <Pavel@Janik.cz>
parents:
41003
diff
changeset
|
250 # Program name transformation. |
091ed3787464
Add support for --program-prefix, --program-suffix
Pavel Janík <Pavel@Janik.cz>
parents:
41003
diff
changeset
|
251 TRANSFORM = @program_transform_name@ |
091ed3787464
Add support for --program-prefix, --program-suffix
Pavel Janík <Pavel@Janik.cz>
parents:
41003
diff
changeset
|
252 |
7032
2c8a6d503e76
(.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents:
6970
diff
changeset
|
253 # What emacs should be called when installed. |
49652
5127a1bf36db
(EXEEXT): Define to @EXEEXT@ and use this variable
Andreas Schwab <schwab@suse.de>
parents:
49600
diff
changeset
|
254 EMACS = `echo emacs${EXEEXT} | sed '$(TRANSFORM)'` |
5127a1bf36db
(EXEEXT): Define to @EXEEXT@ and use this variable
Andreas Schwab <schwab@suse.de>
parents:
49600
diff
changeset
|
255 EMACSFULL = `echo emacs-${version}${EXEEXT} | sed '$(TRANSFORM)'` |
7032
2c8a6d503e76
(.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents:
6970
diff
changeset
|
256 |
491 | 257 # Subdirectories to make recursively. `lisp' is not included |
45157
934e0958b5de
Don't say *.elc files cannot be regenerated.
Eli Zaretskii <eliz@gnu.org>
parents:
44772
diff
changeset
|
258 # because the compiled lisp files are part of the distribution. |
37060 | 259 # leim is not included because it needs special handling. |
96134
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
260 # |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
261 # Actually, we now include `lisp' as well, since the compiled files |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
262 # are not included any more in case of bootstrap or in case Emacs was |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
263 # checked out from a VCS. |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
264 SUBDIR = lib-src src lisp |
491 | 265 |
93334
c598ce296aea
(SUBDIR_MAKEFILES): Add lisp/Makefile.
Andreas Schwab <schwab@suse.de>
parents:
92724
diff
changeset
|
266 # The subdir makefiles created by config.status. |
c598ce296aea
(SUBDIR_MAKEFILES): Add lisp/Makefile.
Andreas Schwab <schwab@suse.de>
parents:
92724
diff
changeset
|
267 SUBDIR_MAKEFILES = lib-src/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispref/Makefile doc/lispintro/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile leim/Makefile lisp/Makefile |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
268 |
1860
f7565191703b
* Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
269 # Subdirectories to install, and where they'll go. |
f7565191703b
* Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
270 # lib-src's makefile knows how to install it, so we don't do that here. |
18516 | 271 # leim's makefile also knows how to install it, so we don't do that here. |
1860
f7565191703b
* Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
272 # When installing the info files, we need to do special things to |
f7565191703b
* Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
273 # avoid nuking an existing dir file, so we don't do that here; |
f7565191703b
* Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
274 # instead, we have written out explicit code in the `install' targets. |
3180
e54c45bae557
(COPYDESTS, COPYDIR): Delete external-lisp dir.
Richard M. Stallman <rms@gnu.org>
parents:
3179
diff
changeset
|
275 COPYDIR = ${srcdir}/etc ${srcdir}/lisp |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
276 COPYDESTS = $(DESTDIR)${etcdir} $(DESTDIR)${lispdir} |
491 | 277 |
43266
56b68a777e75
(maybe_bootstrap): Do `exit 1'.
Richard M. Stallman <rms@gnu.org>
parents:
43191
diff
changeset
|
278 all: ${SUBDIR} leim |
491 | 279 |
8163
d836abb05e48
(mkdir, removenullpaths): Put g in sed replace commands.
Richard M. Stallman <rms@gnu.org>
parents:
7704
diff
changeset
|
280 removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g' |
617 | 281 |
24409
4aaf84a4a5d5
(epaths-force): Renamed from paths-force;
Richard M. Stallman <rms@gnu.org>
parents:
23821
diff
changeset
|
282 # Generate epaths.h from epaths.in. This target is invoked by `configure'. |
4aaf84a4a5d5
(epaths-force): Renamed from paths-force;
Richard M. Stallman <rms@gnu.org>
parents:
23821
diff
changeset
|
283 epaths-force: FRC |
2430
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
284 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
285 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \ |
19387
252bf4f45d18
(paths-force): Store PATH_X_DEFAULTS in paths.h.
Richard M. Stallman <rms@gnu.org>
parents:
19218
diff
changeset
|
286 x_default_search_path=`echo ${x_default_search_path}`; \ |
46595
195495fef5c8
(gamedir, localstatedir): New variables.
Richard M. Stallman <rms@gnu.org>
parents:
45893
diff
changeset
|
287 gamedir=`echo ${gamedir}`; \ |
24409
4aaf84a4a5d5
(epaths-force): Renamed from paths-force;
Richard M. Stallman <rms@gnu.org>
parents:
23821
diff
changeset
|
288 sed < ${srcdir}/src/epaths.in > epaths.h.$$$$ \ |
63597
e087a0391ff8
(epaths-force): Protect both lisppath and buildlisppath from whitespace.
Lute Kamstra <lute@gnu.org>
parents:
58888
diff
changeset
|
289 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'"$${lisppath}"'";' \ |
e087a0391ff8
(epaths-force): Protect both lisppath and buildlisppath from whitespace.
Lute Kamstra <lute@gnu.org>
parents:
58888
diff
changeset
|
290 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'"$${buildlisppath}"'";' \ |
2430
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
291 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \ |
3060
6bb1c8f853cb
* Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents:
3021
diff
changeset
|
292 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \ |
2430
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
293 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ |
9556
28320cad8c38
(bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
9506
diff
changeset
|
294 -e 's;\(#.*PATH_BITMAPS\).*$$;\1 "${bitmapdir}";' \ |
19387
252bf4f45d18
(paths-force): Store PATH_X_DEFAULTS in paths.h.
Richard M. Stallman <rms@gnu.org>
parents:
19218
diff
changeset
|
295 -e 's;\(#.*PATH_X_DEFAULTS\).*$$;\1 "${x_default_search_path}";' \ |
46595
195495fef5c8
(gamedir, localstatedir): New variables.
Richard M. Stallman <rms@gnu.org>
parents:
45893
diff
changeset
|
296 -e 's;\(#.*PATH_GAME\).*$$;\1 "${gamedir}";' \ |
56026
bb6720f21c54
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-396
Miles Bader <miles@gnu.org>
parents:
55787
diff
changeset
|
297 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \ |
bb6720f21c54
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-396
Miles Bader <miles@gnu.org>
parents:
55787
diff
changeset
|
298 -e 's;/[*] *arch-tag:.*;/*;') && \ |
24409
4aaf84a4a5d5
(epaths-force): Renamed from paths-force;
Richard M. Stallman <rms@gnu.org>
parents:
23821
diff
changeset
|
299 ${srcdir}/move-if-change epaths.h.$$$$ src/epaths.h |
491 | 300 |
73679 | 301 # For parallel make, src should be built before leim. |
37060 | 302 # "export PARALLEL=0" is for SGI's Make, to prevent it from |
303 # running more than 1 process in the leim directory, especially for | |
304 # the $TIT files there. | |
96279
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
305 leim: src Makefile FRC |
37060 | 306 (export PARALLEL; PARALLEL=0; cd $@; $(MAKE) all $(MFLAGS) \ |
307 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \ | |
308 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}') | |
19946
d44bb51c42b5
(install-leim): Depend on mkdir.
Richard M. Stallman <rms@gnu.org>
parents:
19739
diff
changeset
|
309 |
15897
d9496ad1f3a6
(src/paths.h): Target deleted.
Richard M. Stallman <rms@gnu.org>
parents:
15869
diff
changeset
|
310 src: lib-src FRC |
7704
022727dbe5f3
(install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents:
7603
diff
changeset
|
311 |
37060 | 312 .RECURSIVE: ${SUBDIR} leim |
491 | 313 |
96134
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
314 # We need to build `emacs' in `src' to compile the *.elc files in `lisp'. |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
315 lisp: src |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
316 |
102319
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
317 # These targets should be "${SUBDIR} without `src'". |
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
318 lib-src lisp: Makefile FRC |
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
319 cd $@; $(MAKE) all $(MFLAGS) \ |
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
320 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \ |
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
321 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' |
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
322 |
96196
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
323 # Pass to src/Makefile.in an additional BOOTSTRAPEMACS variable which |
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
324 # is either set to bootstrap-emacs (in case bootstrap-emacs has not been |
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
325 # constructed yet) or the empty string (otherwise). |
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
326 # src/Makefile.in uses it to implement conditional dependencies, so that |
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
327 # files that need bootstrap-emacs to be built do not additionally need |
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
328 # to be kept fresher than bootstrap-emacs. Otherwise changing a single |
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
329 # file src/foo.c forces dumping a new bootstrap-emacs, then re-byte-compiling |
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
330 # all preloaded elisp files, and only then dump the actual src/emacs, which |
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
331 # is not wrong, but is overkill in 99.99% of the cases. |
102319
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
332 src: Makefile FRC |
96196
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
333 boot=bootstrap-emacs$(EXEEXT); \ |
102319
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
334 if [ ! -x "src/$$boot" ]; then \ |
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
335 cd $@; $(MAKE) all $(MFLAGS) \ |
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
336 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \ |
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
337 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS="$$boot"; \ |
102338
99db2ec427cc
(src): Fix last change so the first `cd' doesn't affect the second.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
102319
diff
changeset
|
338 fi; |
96196
568f14ebb684
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96192
diff
changeset
|
339 cd $@; $(MAKE) all $(MFLAGS) \ |
5413
8c0dd3e81e28
(${SUBDIR} target): Pass down LDFLAGS and CPPFLAGS.
Richard M. Stallman <rms@gnu.org>
parents:
5321
diff
changeset
|
340 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \ |
102319
58c8067194da
(lib-src, lisp): Use simpler rule.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
100959
diff
changeset
|
341 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS="" |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
342 |
96279
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
343 blessmail: Makefile src FRC |
10969
c66a0a2a7bb3
(blessmail): Pass archlibdir to the sub-make.
Richard M. Stallman <rms@gnu.org>
parents:
10685
diff
changeset
|
344 cd lib-src; $(MAKE) maybe-blessmail $(MFLAGS) \ |
c66a0a2a7bb3
(blessmail): Pass archlibdir to the sub-make.
Richard M. Stallman <rms@gnu.org>
parents:
10685
diff
changeset
|
345 MAKE='${MAKE}' archlibdir='$(archlibdir)' |
7311
b4ef2060b171
(lib-src): Undo previous change.
Richard M. Stallman <rms@gnu.org>
parents:
7293
diff
changeset
|
346 |
96279
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
347 # We used to have one rule per */Makefile.in, but that leads to race |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
348 # conditions with parallel makes, so let's assume that the time stamp on |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
349 # ./Makefile is representative of the time stamp on all the other Makefiles. |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
350 Makefile: config.status $(srcdir)/src/config.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
351 $(srcdir)/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
352 $(srcdir)/src/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
353 $(srcdir)/lib-src/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
354 $(srcdir)/doc/emacs/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
355 $(srcdir)/doc/misc/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
356 $(srcdir)/doc/lispref/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
357 $(srcdir)/doc/lispintro/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
358 $(srcdir)/oldXMenu/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
359 $(srcdir)/lwlib/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
360 $(srcdir)/leim/Makefile.in \ |
534958847ee0
* Makefile.in (Makefile): Use it for its timestamp value as well, and
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96196
diff
changeset
|
361 $(srcdir)/lisp/Makefile.in |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
362 ./config.status |
491 | 363 |
77519
a268dce1f560
(config.status): Depend on ${srcdir}/lisp/version.el.
Andreas Schwab <schwab@suse.de>
parents:
75648
diff
changeset
|
364 config.status: ${srcdir}/configure ${srcdir}/lisp/version.el |
25879
4351ac02c1e1
Add rules for config.status, configure.
Dave Love <fx@gnu.org>
parents:
24607
diff
changeset
|
365 ./config.status --recheck |
4351ac02c1e1
Add rules for config.status, configure.
Dave Love <fx@gnu.org>
parents:
24607
diff
changeset
|
366 |
64639
385af3e03206
Merge gnulib getopt implementation into Emacs.
Paul Eggert <eggert@twinsun.com>
parents:
64079
diff
changeset
|
367 AUTOCONF_INPUTS = @MAINT@ $(srcdir)/configure.in $(srcdir)/m4/getopt.m4 |
385af3e03206
Merge gnulib getopt implementation into Emacs.
Paul Eggert <eggert@twinsun.com>
parents:
64079
diff
changeset
|
368 |
385af3e03206
Merge gnulib getopt implementation into Emacs.
Paul Eggert <eggert@twinsun.com>
parents:
64079
diff
changeset
|
369 $(srcdir)/configure: $(AUTOCONF_INPUTS) |
25879
4351ac02c1e1
Add rules for config.status, configure.
Dave Love <fx@gnu.org>
parents:
24607
diff
changeset
|
370 cd ${srcdir} && autoconf |
4351ac02c1e1
Add rules for config.status, configure.
Dave Love <fx@gnu.org>
parents:
24607
diff
changeset
|
371 |
44596
d4d0673b5bd3
($(srcdir)/src/config.in): Generate using autoheader.
Andreas Schwab <schwab@suse.de>
parents:
43649
diff
changeset
|
372 $(srcdir)/src/config.in: $(srcdir)/src/stamp-h.in |
d4d0673b5bd3
($(srcdir)/src/config.in): Generate using autoheader.
Andreas Schwab <schwab@suse.de>
parents:
43649
diff
changeset
|
373 @true |
64639
385af3e03206
Merge gnulib getopt implementation into Emacs.
Paul Eggert <eggert@twinsun.com>
parents:
64079
diff
changeset
|
374 $(srcdir)/src/stamp-h.in: $(AUTOCONF_INPUTS) |
44596
d4d0673b5bd3
($(srcdir)/src/config.in): Generate using autoheader.
Andreas Schwab <schwab@suse.de>
parents:
43649
diff
changeset
|
375 cd ${srcdir} && autoheader |
d4d0673b5bd3
($(srcdir)/src/config.in): Generate using autoheader.
Andreas Schwab <schwab@suse.de>
parents:
43649
diff
changeset
|
376 rm -f $(srcdir)/src/stamp-h.in |
d4d0673b5bd3
($(srcdir)/src/config.in): Generate using autoheader.
Andreas Schwab <schwab@suse.de>
parents:
43649
diff
changeset
|
377 echo timestamp > $(srcdir)/src/stamp-h.in |
d4d0673b5bd3
($(srcdir)/src/config.in): Generate using autoheader.
Andreas Schwab <schwab@suse.de>
parents:
43649
diff
changeset
|
378 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
379 # ==================== Installation ==================== |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
380 |
1821
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1767
diff
changeset
|
381 ## If we let lib-src do its own installation, that means we |
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1767
diff
changeset
|
382 ## don't have to duplicate the list of utilities to install in |
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1767
diff
changeset
|
383 ## this Makefile as well. |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
384 |
2817
d28c54ba888e
More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents:
2812
diff
changeset
|
385 ## On AIX, use tar xBf. |
d28c54ba888e
More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents:
2812
diff
changeset
|
386 ## On Xenix, use tar xpf. |
d28c54ba888e
More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents:
2812
diff
changeset
|
387 |
7032
2c8a6d503e76
(.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents:
6970
diff
changeset
|
388 .PHONY: install mkdir |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
389 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
390 ## We delete each directory in ${COPYDESTS} before we copy into it; |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
391 ## that way, we can reinstall over directories that have been put in |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
392 ## place with their files read-only (perhaps because they are checked |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
393 ## into RCS). In order to make this safe, we make sure that the |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
394 ## source exists and is distinct from the destination. |
14813
2dbe6630a156
(install-arch-dep): Don't depend on install-arch-indep.
Richard M. Stallman <rms@gnu.org>
parents:
14652
diff
changeset
|
395 ### We do install-arch-indep first because |
2dbe6630a156
(install-arch-dep): Don't depend on install-arch-indep.
Richard M. Stallman <rms@gnu.org>
parents:
14652
diff
changeset
|
396 ### the executable needs the Lisp files and DOC file to work properly. |
20214
cdea7c595b88
(install): Move blessmail last.
Karl Heuer <kwzh@gnu.org>
parents:
20007
diff
changeset
|
397 install: all install-arch-indep install-arch-dep install-leim blessmail |
13280
42aa8d8aa019
(distclean): Delete line with just a tab in it.
Richard M. Stallman <rms@gnu.org>
parents:
13031
diff
changeset
|
398 @true |
3060
6bb1c8f853cb
* Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents:
3021
diff
changeset
|
399 |
103141
bbc4e451e5dc
* Makefile.in (install-arch-dep): Avoid using $$(..) construct,
Chong Yidong <cyd@stupidchicken.com>
parents:
102937
diff
changeset
|
400 MV_DIRS = for i in $$dir; do rm -fr `basename "$$i"` ; mv "$$i" . ; done |
100783
14048381c2c5
(install-arch-dep): Remove old directories in
Jan Djärv <jan.h.d@swipnet.se>
parents:
100414
diff
changeset
|
401 |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
402 ### Install the executables that were compiled specifically for this machine. |
14813
2dbe6630a156
(install-arch-dep): Don't depend on install-arch-indep.
Richard M. Stallman <rms@gnu.org>
parents:
14652
diff
changeset
|
403 ### It would be nice to do something for a parallel make |
2dbe6630a156
(install-arch-dep): Don't depend on install-arch-indep.
Richard M. Stallman <rms@gnu.org>
parents:
14652
diff
changeset
|
404 ### to ensure that install-arch-indep finishes before this starts. |
2dbe6630a156
(install-arch-dep): Don't depend on install-arch-indep.
Richard M. Stallman <rms@gnu.org>
parents:
14652
diff
changeset
|
405 install-arch-dep: mkdir |
3060
6bb1c8f853cb
* Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents:
3021
diff
changeset
|
406 (cd lib-src; \ |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
407 $(MAKE) install $(MFLAGS) prefix=${prefix} \ |
9457
a9a8a2326411
Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
9051
diff
changeset
|
408 exec_prefix=${exec_prefix} bindir=${bindir} \ |
15975
9d392663cd09
(INSTALL_STRIP): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
15898
diff
changeset
|
409 libexecdir=${libexecdir} archlibdir=${archlibdir} \ |
9d392663cd09
(INSTALL_STRIP): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
15898
diff
changeset
|
410 INSTALL_STRIP=${INSTALL_STRIP}) |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
411 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL) |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
412 -chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
413 rm -f $(DESTDIR)${bindir}/$(EMACS) |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
414 -ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS) |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
415 -unset CDPATH; \ |
23781
4e3665e2c42b
(install-arch-dep): Copy fns-*.el from lib-src.
Richard M. Stallman <rms@gnu.org>
parents:
23618
diff
changeset
|
416 for f in `cd lib-src && echo fns-*.el`; do \ |
29197
c58cb815dcfd
* Makefile.in (install-arch-dep): Install fns-*.el only if it
Ken Raeburn <raeburn@raeburn.org>
parents:
29176
diff
changeset
|
417 if test -r lib-src/$$f ; then \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
418 ${INSTALL_DATA} lib-src/$$f $(DESTDIR)${archlibdir}/$$f; \ |
29197
c58cb815dcfd
* Makefile.in (install-arch-dep): Install fns-*.el only if it
Ken Raeburn <raeburn@raeburn.org>
parents:
29176
diff
changeset
|
419 else true; fi ; \ |
23573
e26894ec8369
(install-arch-dep): Install src/fns-*.el in
Andreas Schwab <schwab@suse.de>
parents:
22869
diff
changeset
|
420 done |
96675
d45acf0c8d23
merging Emacs.app (NeXTstep port)
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96279
diff
changeset
|
421 if test "${ns_appdir}" != ""; then \ |
96769
2b46fd076f88
remove need for nextstep/compile for NS build; also, add NEWS entry about the port
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96675
diff
changeset
|
422 ( cd ${ns_appresdir} ; \ |
100783
14048381c2c5
(install-arch-dep): Remove old directories in
Jan Djärv <jan.h.d@swipnet.se>
parents:
100414
diff
changeset
|
423 if test -d share/emacs ; then dir=share/emacs/*/*; $(MV_DIRS); fi;\ |
14048381c2c5
(install-arch-dep): Remove old directories in
Jan Djärv <jan.h.d@swipnet.se>
parents:
100414
diff
changeset
|
424 if test -d share/info ; then dir=share/info; $(MV_DIRS) ; fi ; \ |
96769
2b46fd076f88
remove need for nextstep/compile for NS build; also, add NEWS entry about the port
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96675
diff
changeset
|
425 rm -fr share ) ; \ |
100783
14048381c2c5
(install-arch-dep): Remove old directories in
Jan Djärv <jan.h.d@swipnet.se>
parents:
100414
diff
changeset
|
426 ( cd ${ns_appbindir}/libexec ; dir=emacs/*/*/* ; $(MV_DIRS); \ |
14048381c2c5
(install-arch-dep): Remove old directories in
Jan Djärv <jan.h.d@swipnet.se>
parents:
100414
diff
changeset
|
427 rm -fr emacs ) ; \ |
96769
2b46fd076f88
remove need for nextstep/compile for NS build; also, add NEWS entry about the port
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96675
diff
changeset
|
428 ( cd ${ns_appbindir}/bin ; rm -f emacs emacs-23* ; \ |
2b46fd076f88
remove need for nextstep/compile for NS build; also, add NEWS entry about the port
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96675
diff
changeset
|
429 ln -sf ../libexec/* .) ; \ |
2b46fd076f88
remove need for nextstep/compile for NS build; also, add NEWS entry about the port
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
96675
diff
changeset
|
430 else true ; fi |
6013
f03d2629a6a3
(install-arch-dep, install-arch-indep):
Richard M. Stallman <rms@gnu.org>
parents:
5630
diff
changeset
|
431 |
92043 | 432 ## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html |
433 ## Needs to be the user running install, so configure can't set it. | |
434 set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \ | |
435 `id -un 2> /dev/null`; do \ | |
436 [ -n "$${installuser}" ] && break ; \ | |
437 done | |
438 | |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
439 ### Install the files that are machine-independent. |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
440 ### Most of them come straight from the distribution; |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
441 ### the exception is the DOC-* files, which are copied |
75648 | 442 ### from the build directory. |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
443 |
18533
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
444 ## Note that we copy DOC* and then delete DOC |
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
445 ## as a workaround for a bug in tar on Ultrix 4.2. |
45350
954cf2c45e73
Add a comment in case people complain about the h flag for Tar.
Eli Zaretskii <eliz@gnu.org>
parents:
45157
diff
changeset
|
446 |
81236
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
447 ## We install only the relevant DOC file if possible |
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
448 ## (ie DOC-${version}.buildnumber), otherwise DOC-${version}*. |
75648 | 449 |
45350
954cf2c45e73
Add a comment in case people complain about the h flag for Tar.
Eli Zaretskii <eliz@gnu.org>
parents:
45157
diff
changeset
|
450 ## If people complain about the h flag in tar command, take that out. |
954cf2c45e73
Add a comment in case people complain about the h flag for Tar.
Eli Zaretskii <eliz@gnu.org>
parents:
45157
diff
changeset
|
451 ## That flag is also used in leim/Makefile.in |
84481
334c557039a0
(install-arch-indep): Do not exclude the etc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
84474
diff
changeset
|
452 |
334c557039a0
(install-arch-indep): Do not exclude the etc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
84474
diff
changeset
|
453 ## Note that the Makefiles in the etc directory are potentially useful |
334c557039a0
(install-arch-indep): Do not exclude the etc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
84474
diff
changeset
|
454 ## in an installed Emacs, so should not be excluded. |
85820
c38fd117c89c
(install-arch-indep): Fallback to $USER and `id -un' when changing
Glenn Morris <rgm@gnu.org>
parents:
85774
diff
changeset
|
455 |
87588
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
456 install-arch-indep: mkdir info install-etc |
617 | 457 -set ${COPYDESTS} ; \ |
29623
5cc6c13b5376
* Makefile.in (install-arch-indep): Don't use "-unset CDPATH" when it's on a
Ken Raeburn <raeburn@raeburn.org>
parents:
29396
diff
changeset
|
458 unset CDPATH; \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
459 for dir in ${COPYDIR} ; do \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
460 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
461 rm -rf $$1 ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
462 fi ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
463 shift ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
464 done |
3123
0e9f73b6245d
* Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents:
3090
diff
changeset
|
465 -set ${COPYDESTS} ; \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
466 mkdir ${COPYDESTS} ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
467 chmod ugo+rx ${COPYDESTS} ; \ |
29623
5cc6c13b5376
* Makefile.in (install-arch-indep): Don't use "-unset CDPATH" when it's on a
Ken Raeburn <raeburn@raeburn.org>
parents:
29396
diff
changeset
|
468 unset CDPATH; \ |
92043 | 469 $(set_installuser); \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
470 for dir in ${COPYDIR} ; do \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
471 dest=$$1 ; shift ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
472 [ -d $${dir} ] \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
473 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
474 && (echo "Copying $${dir} to $${dest}..." ; \ |
40193
50443598da1a
(install-arch-indep): Add -h (follow symlinks)
Gerd Moellmann <gerd@gnu.org>
parents:
40057
diff
changeset
|
475 (cd $${dir}; tar -chf - . ) \ |
34864
b518b83f61f0
(install-arch-indep): If tar fails, exit with
Gerd Moellmann <gerd@gnu.org>
parents:
34215
diff
changeset
|
476 | (cd $${dest}; umask 022; \ |
b518b83f61f0
(install-arch-indep): If tar fails, exit with
Gerd Moellmann <gerd@gnu.org>
parents:
34215
diff
changeset
|
477 tar -xvf - && cat > /dev/null) || exit 1; \ |
85820
c38fd117c89c
(install-arch-indep): Fallback to $USER and `id -un' when changing
Glenn Morris <rgm@gnu.org>
parents:
85774
diff
changeset
|
478 find $${dest} -exec chown $${installuser} {} ';' ;\ |
28850
1fdfc579d0bd
(install-arch-indep): Filter CVS as well as RCS.
Dave Love <fx@gnu.org>
parents:
28605
diff
changeset
|
479 for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \ |
20975
3a8734a5536c
(install-arch-indep): Do chmod a+x on subdirs.
Karl Heuer <kwzh@gnu.org>
parents:
20673
diff
changeset
|
480 chmod a+rx $${subdir} ; \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
481 rm -rf $${subdir}/RCS ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
482 rm -rf $${subdir}/CVS ; \ |
37215
be0472285506
(install-arch-indep): Remove .cvsignore files.
Gerd Moellmann <gerd@gnu.org>
parents:
37102
diff
changeset
|
483 rm -f $${subdir}/.cvsignore ; \ |
102937
a3293f66b0df
(install-arch-indep): Remove .gitignore files.
Andreas Schwab <schwab@linux-m68k.org>
parents:
102389
diff
changeset
|
484 rm -f $${subdir}/.gitignore ; \ |
56342
17ff79516271
(install-arch-indep): Remove .arch-inventory files.
Andreas Schwab <schwab@suse.de>
parents:
56121
diff
changeset
|
485 rm -f $${subdir}/.arch-inventory ; \ |
104293
012ded1c9caf
* Makefile.in (install-arch-indep): Remove .DS_Store files (MacOSX).
Seiji Zenitani <zenitani@mac.com>
parents:
103141
diff
changeset
|
486 rm -f $${subdir}/.DS_Store ; \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
487 rm -f $${subdir}/\#* ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
488 rm -f $${subdir}/.\#* ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
489 rm -f $${subdir}/*~ ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
490 rm -f $${subdir}/*.orig ; \ |
84481
334c557039a0
(install-arch-indep): Do not exclude the etc/ Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
84474
diff
changeset
|
491 [ "$${dir}" != "${srcdir}/etc" ] && \ |
106045
e05698e35594
(install-arch-indep): Use a more restrictive Makefile
Glenn Morris <rgm@gnu.org>
parents:
105517
diff
changeset
|
492 rm -f $${subdir}/[mM]akefile*.c $${subdir}/[mM]akefile*[.-]in \ |
e05698e35594
(install-arch-indep): Use a more restrictive Makefile
Glenn Morris <rgm@gnu.org>
parents:
105517
diff
changeset
|
493 $${subdir}/[mM]akefile ; \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
494 rm -f $${subdir}/ChangeLog* ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
495 rm -f $${subdir}/dired.todo ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
496 done) ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
497 done |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
498 -rm -f $(DESTDIR)${lispdir}/subdirs.el |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
499 $(srcdir)/update-subdirs $(DESTDIR)${lispdir} |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
500 if [ -f $(DESTDIR)${datadir}/emacs/${version}/site-lisp/subdirs.el ]; \ |
22058
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
501 then true; \ |
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
502 else \ |
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
503 (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \ |
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
504 echo " (normal-top-level-add-subdirs-to-load-path))") \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
505 > $(DESTDIR)${datadir}/emacs/${version}/site-lisp/subdirs.el; \ |
22058
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
506 fi |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
507 chmod a+r $(DESTDIR)${datadir}/emacs/${version}/site-lisp/subdirs.el |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
508 -if [ -f $(DESTDIR)${datadir}/emacs/site-lisp/subdirs.el ]; \ |
22058
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
509 then true; \ |
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
510 else \ |
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
511 (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \ |
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
512 echo " (normal-top-level-add-subdirs-to-load-path))") \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
513 > $(DESTDIR)${datadir}/emacs/site-lisp/subdirs.el; \ |
22058
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
514 fi |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
515 -chmod a+r $(DESTDIR)${datadir}/emacs/site-lisp/subdirs.el |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
516 -unset CDPATH; \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
517 if [ `(cd ./etc; /bin/pwd)` != `(cd $(DESTDIR)${docdir}; /bin/pwd)` ]; \ |
7390
989492b57d5e
(install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents:
7311
diff
changeset
|
518 then \ |
81236
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
519 fullversion=`./src/emacs --version | sed -n '1 s/GNU Emacs *//p'`; \ |
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
520 if [ -f "./etc/DOC-$${fullversion}" ]; \ |
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
521 then \ |
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
522 docfile="DOC-$${fullversion}"; \ |
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
523 else \ |
104557
4ac126250d16
* Makefile.in (install-arch-indep): If the versioned DOC-####
Ken Raeburn <raeburn@raeburn.org>
parents:
104293
diff
changeset
|
524 docfile="DOC"; \ |
81236
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
525 fi; \ |
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
526 echo "Copying etc/$${docfile} to $(DESTDIR)${docdir} ..." ; \ |
6e5cac7193a6
(install-arch-indep): Install only the DOC- file specific to the
Glenn Morris <rgm@gnu.org>
parents:
77519
diff
changeset
|
527 (cd ./etc; tar -chf - $${docfile}) \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
528 |(cd $(DESTDIR)${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ |
85820
c38fd117c89c
(install-arch-indep): Fallback to $USER and `id -un' when changing
Glenn Morris <rgm@gnu.org>
parents:
85774
diff
changeset
|
529 (cd $(DESTDIR)$(docdir); \ |
92043 | 530 $(set_installuser); \ |
85820
c38fd117c89c
(install-arch-indep): Fallback to $USER and `id -un' when changing
Glenn Morris <rgm@gnu.org>
parents:
85774
diff
changeset
|
531 chown $${installuser} DOC*; chmod a+r DOC*; \ |
78351
55a39357e139
(install-arch-indep): Use "rm -f" for removing DOC, to avoid an error message
Eli Zaretskii <eliz@gnu.org>
parents:
78262
diff
changeset
|
532 if test "`echo DOC-*`" != "DOC-*"; then rm -f DOC; fi); \ |
7390
989492b57d5e
(install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents:
7311
diff
changeset
|
533 else true; fi |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
534 -unset CDPATH; \ |
48744
d23316dc877a
(install-arch-indep): Revert last change.
Andreas Schwab <schwab@suse.de>
parents:
48241
diff
changeset
|
535 if [ -r ./lisp ] \ |
d23316dc877a
(install-arch-indep): Revert last change.
Andreas Schwab <schwab@suse.de>
parents:
48241
diff
changeset
|
536 && [ -r ./lisp/simple.el ] \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
537 && [ x`(cd ./lisp; /bin/pwd)` != x`(cd $(DESTDIR)${lispdir}; /bin/pwd)` ] \ |
48747
69713eabe614
(install-arch-indep): Revert second last change completely.
Andreas Schwab <schwab@suse.de>
parents:
48744
diff
changeset
|
538 && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \ |
14555
af6c9bc726a9
(install-arch-indep): Install info/ccmode*.
Richard M. Stallman <rms@gnu.org>
parents:
14360
diff
changeset
|
539 then \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
540 echo "Copying lisp/*.el and lisp/*.elc to $(DESTDIR)${lispdir} ..." ; \ |
48744
d23316dc877a
(install-arch-indep): Revert last change.
Andreas Schwab <schwab@suse.de>
parents:
48241
diff
changeset
|
541 (cd lisp; tar -chf - *.el *.elc) \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
542 |(cd $(DESTDIR)${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ |
85820
c38fd117c89c
(install-arch-indep): Fallback to $USER and `id -un' when changing
Glenn Morris <rgm@gnu.org>
parents:
85774
diff
changeset
|
543 (cd $(DESTDIR)${lispdir}; \ |
92043 | 544 $(set_installuser); \ |
85820
c38fd117c89c
(install-arch-indep): Fallback to $USER and `id -un' when changing
Glenn Morris <rgm@gnu.org>
parents:
85774
diff
changeset
|
545 find . -exec chown $${installuser} {} ';') ; \ |
14555
af6c9bc726a9
(install-arch-indep): Install info/ccmode*.
Richard M. Stallman <rms@gnu.org>
parents:
14360
diff
changeset
|
546 else true; fi |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
547 -unset CDPATH; \ |
66654
a40925b52cdc
(GZIP_PROG): Renamed from GZIP.
Andreas Schwab <schwab@suse.de>
parents:
66619
diff
changeset
|
548 if [ -n "${GZIP_PROG}" ]; \ |
66609
9578bb750e29
* configure.in: Check for gzip.
Romain Francoise <romain@orebokech.com>
parents:
65531
diff
changeset
|
549 then \ |
9578bb750e29
* configure.in: Check for gzip.
Romain Francoise <romain@orebokech.com>
parents:
65531
diff
changeset
|
550 echo "Compressing *.el ..." ; \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
551 (cd $(DESTDIR)${lispdir}; for f in `find . -name "*.elc" -print`; do \ |
66654
a40925b52cdc
(GZIP_PROG): Renamed from GZIP.
Andreas Schwab <schwab@suse.de>
parents:
66619
diff
changeset
|
552 ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ |
66609
9578bb750e29
* configure.in: Check for gzip.
Romain Francoise <romain@orebokech.com>
parents:
65531
diff
changeset
|
553 done) \ |
9578bb750e29
* configure.in: Check for gzip.
Romain Francoise <romain@orebokech.com>
parents:
65531
diff
changeset
|
554 else true; fi |
9578bb750e29
* configure.in: Check for gzip.
Romain Francoise <romain@orebokech.com>
parents:
65531
diff
changeset
|
555 -unset CDPATH; \ |
7704
022727dbe5f3
(install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents:
7603
diff
changeset
|
556 thisdir=`/bin/pwd`; \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
557 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \ |
6394
a829e7875542
(install-arch-indep): Add missing backslash after a `then'.
Roland McGrath <roland@gnu.org>
parents:
6350
diff
changeset
|
558 then \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
559 (cd $(DESTDIR)${infodir}; \ |
21809
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
560 if [ -f dir ]; then true; \ |
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
561 else \ |
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
562 (cd $${thisdir}; \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
563 ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \ |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
564 chmod a+r $(DESTDIR)${infodir}/dir); \ |
13660
7ccd8298d604
(install-arch-indep): Don't install
Richard M. Stallman <rms@gnu.org>
parents:
13570
diff
changeset
|
565 fi; \ |
13002
237f7920c3a2
(install-arch-indep): Always install the new dir file;
Richard M. Stallman <rms@gnu.org>
parents:
12579
diff
changeset
|
566 cd ${srcdir}/info ; \ |
69543
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
567 for elt in $(INFO_FILES); do \ |
94783
4b2ac57a4d30
(install-arch-indep, info): Handle MAKEINFO == off.
Glenn Morris <rgm@gnu.org>
parents:
94719
diff
changeset
|
568 test "$(MAKEINFO)" = "off" && ! test -e $$elt && continue; \ |
69543
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
569 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ |
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
570 ${INSTALL_DATA} $$f $(DESTDIR)${infodir}/$$f; \ |
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
571 chmod a+r $(DESTDIR)${infodir}/$$f; \ |
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
572 done; \ |
6350
9feb98fdf5aa
(thisdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
6071
diff
changeset
|
573 done); \ |
3426
7ecee84713e6
(do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents:
3423
diff
changeset
|
574 else true; fi |
25953
d79615c0b727
(uninstall, install-arch-indep, install-arch-dep):
Richard M. Stallman <rms@gnu.org>
parents:
25915
diff
changeset
|
575 -unset CDPATH; \ |
d79615c0b727
(uninstall, install-arch-indep, install-arch-dep):
Richard M. Stallman <rms@gnu.org>
parents:
25915
diff
changeset
|
576 thisdir=`/bin/pwd`; \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
577 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \ |
21984
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
578 then \ |
69543
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
579 for elt in $(INFO_FILES); do \ |
94783
4b2ac57a4d30
(install-arch-indep, info): Handle MAKEINFO == off.
Glenn Morris <rgm@gnu.org>
parents:
94719
diff
changeset
|
580 test "$(MAKEINFO)" = "off" && ! test -e $$elt && continue; \ |
21984
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
581 (cd $${thisdir}; \ |
69543
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
582 ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ |
21984
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
583 done; \ |
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
584 else true; fi |
104885
978084a76b60
(install-arch-indep): Don't recursively change perms of
Glenn Morris <rgm@gnu.org>
parents:
104696
diff
changeset
|
585 -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS} |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
586 thisdir=`/bin/pwd`; \ |
84331 | 587 cd ${mansrcdir}; \ |
100412 | 588 for page in ${MAN_PAGES}; do \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
589 (cd $${thisdir}; \ |
100412 | 590 ${INSTALL_DATA} ${mansrcdir}/$${page} $(DESTDIR)${man1dir}/$${page}; \ |
591 chmod a+r $(DESTDIR)${man1dir}/$${page}); \ | |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
592 done |
596 | 593 |
87588
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
594 ## Install those items from etc/ that need to end up elsewhere. |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
595 install-etc: mkdir |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
596 ${INSTALL_DATA} ${srcdir}/etc/emacs.desktop \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
597 $(DESTDIR)${desktopdir}/emacs.desktop |
92724
c47de1ae39b5
(install-etc, mkdir): Handle directory etc/images/icons/hicolor/*/mimetypes/.
Glenn Morris <rgm@gnu.org>
parents:
92420
diff
changeset
|
598 for icon in $(iconsrcdir)/*/*/apps/*.* \ |
c47de1ae39b5
(install-etc, mkdir): Handle directory etc/images/icons/hicolor/*/mimetypes/.
Glenn Morris <rgm@gnu.org>
parents:
92420
diff
changeset
|
599 $(iconsrcdir)/*/*/mimetypes/*.*; do \ |
87588
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
600 if [ -r $${icon} ]; then \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
601 iicon=`echo "$${icon}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},'` ; \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
602 ${INSTALL_DATA} $${icon} $${iicon} ; \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
603 fi ; \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
604 done |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
605 |
18533
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
606 ### Install LEIM files. Although they are machine-independent, we |
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
607 ### have separate target here instead of including it in |
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
608 ### `install-arch-indep'. People who extracted LEIM files after they |
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
609 ### insalled Emacs itself can install only LEIM files by this target. |
19946
d44bb51c42b5
(install-leim): Depend on mkdir.
Richard M. Stallman <rms@gnu.org>
parents:
19739
diff
changeset
|
610 install-leim: leim/Makefile mkdir |
18620
ea924276b44b
(install-leim): Correct previous change.
Richard M. Stallman <rms@gnu.org>
parents:
18533
diff
changeset
|
611 cd leim; $(MAKE) install |
18533
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
612 |
14848
831061a3e4f1
(install-strip): New target.
Richard M. Stallman <rms@gnu.org>
parents:
14813
diff
changeset
|
613 ### Build Emacs and install it, stripping binaries while installing them. |
831061a3e4f1
(install-strip): New target.
Richard M. Stallman <rms@gnu.org>
parents:
14813
diff
changeset
|
614 install-strip: |
26704
b81a30ac8e52
(install-arch-indep): Depend on `info'.
Dave Love <fx@gnu.org>
parents:
26146
diff
changeset
|
615 $(MAKE) INSTALL_STRIP=-s install |
14848
831061a3e4f1
(install-strip): New target.
Richard M. Stallman <rms@gnu.org>
parents:
14813
diff
changeset
|
616 |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
617 ### Build all the directories we're going to install Emacs in. Since |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
618 ### we may be creating several layers of directories (for example, |
9497
9d0e3c1c3f8c
use mkinstalldirs instead of make-path
David J. MacKenzie <djm@gnu.org>
parents:
9457
diff
changeset
|
619 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use mkinstalldirs |
10064
9d103084f33b
(dvi): Run Make in our man subdir.
Richard M. Stallman <rms@gnu.org>
parents:
9866
diff
changeset
|
620 ### instead of mkdir. Not all systems' mkdir programs have the `-p' flag. |
104885
978084a76b60
(install-arch-indep): Don't recursively change perms of
Glenn Morris <rgm@gnu.org>
parents:
104696
diff
changeset
|
621 ### We set the umask so that any created directories are world-readable. |
978084a76b60
(install-arch-indep): Don't recursively change perms of
Glenn Morris <rgm@gnu.org>
parents:
104696
diff
changeset
|
622 ### FIXME it would be good to warn about non-standard permissions of |
978084a76b60
(install-arch-indep): Don't recursively change perms of
Glenn Morris <rgm@gnu.org>
parents:
104696
diff
changeset
|
623 ### pre-existing directories, but that does not seem easy. |
8807
1fb0575ee03a
Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents:
8770
diff
changeset
|
624 mkdir: FRC |
87588
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
625 icondirs= ; \ |
92724
c47de1ae39b5
(install-etc, mkdir): Handle directory etc/images/icons/hicolor/*/mimetypes/.
Glenn Morris <rgm@gnu.org>
parents:
92420
diff
changeset
|
626 for dir in $(iconsrcdir)/*/*/apps $(iconsrcdir)/*/*/mimetypes; do \ |
87588
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
627 if [ -d $${dir} ]; then \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
628 icondirs="$${icondirs} $${dir}" ; \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
629 fi ; \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
630 done ; \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
631 icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \ |
104885
978084a76b60
(install-arch-indep): Don't recursively change perms of
Glenn Morris <rgm@gnu.org>
parents:
104696
diff
changeset
|
632 umask 022 ; \ |
978084a76b60
(install-arch-indep): Don't recursively change perms of
Glenn Morris <rgm@gnu.org>
parents:
104696
diff
changeset
|
633 $(srcdir)/mkinstalldirs $(DESTDIR)${datadir} ${COPYDESTS} \ |
978084a76b60
(install-arch-indep): Don't recursively change perms of
Glenn Morris <rgm@gnu.org>
parents:
104696
diff
changeset
|
634 $(DESTDIR)${infodir} $(DESTDIR)${man1dir} \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
635 $(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \ |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
636 $(DESTDIR)${datadir}/emacs/site-lisp \ |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
637 $(DESTDIR)${datadir}/emacs/${version}/site-lisp \ |
87588
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
638 $(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` \ |
32e91443c003
(desktopdir, icondir): New variables.
Glenn Morris <rgm@gnu.org>
parents:
87005
diff
changeset
|
639 $(DESTDIR)${desktopdir} $${icondirs} |
491 | 640 |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
641 ### Delete all the installed files that the `install' target would |
104885
978084a76b60
(install-arch-indep): Don't recursively change perms of
Glenn Morris <rgm@gnu.org>
parents:
104696
diff
changeset
|
642 ### create (but not the noninstalled files such as `make all' would create). |
3786
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
643 ### |
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
644 ### Don't delete the lisp and etc directories if they're in the source tree. |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
645 uninstall: |
3786
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
646 (cd lib-src; \ |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
647 $(MAKE) $(MFLAGS) uninstall \ |
3786
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
648 prefix=${prefix} exec_prefix=${exec_prefix} \ |
9457
a9a8a2326411
Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
9051
diff
changeset
|
649 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir}) |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
650 -unset CDPATH; \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
651 for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \ |
7405
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
652 if [ -d $${dir} ]; then \ |
7704
022727dbe5f3
(install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents:
7603
diff
changeset
|
653 case `(cd $${dir} ; /bin/pwd)` in \ |
022727dbe5f3
(install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents:
7603
diff
changeset
|
654 `(cd ${srcdir} ; /bin/pwd)`* ) ;; \ |
7405
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
655 * ) rm -rf $${dir} ;; \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
656 esac ; \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
657 case $${dir} in \ |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
658 $(DESTDIR)${datadir}/emacs/${version}/* ) \ |
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
659 rm -rf $(DESTDIR)${datadir}/emacs/${version} \ |
7405
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
660 ;; \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
661 esac ; \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
662 fi ; \ |
3786
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
663 done |
107405 | 664 if [ -d $(DESTDIR)${archlibdir} ]; then \ |
665 (cd $(DESTDIR)${archlibdir} && rm -f fns-*) \ | |
666 fi | |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
667 -rm -rf $(DESTDIR)${libexecdir}/emacs/${version} |
69543
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
668 (cd $(DESTDIR)${infodir} && \ |
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
669 for elt in $(INFO_FILES); do \ |
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
670 $(INSTALL_INFO) --remove --info-dir=. $$elt; \ |
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
671 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ |
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
672 rm -f $$f; \ |
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
673 done; \ |
a8f355dce757
(INFO_FILES): New variable, contains all Info file names.
Eli Zaretskii <eliz@gnu.org>
parents:
69257
diff
changeset
|
674 done;) |
100412 | 675 (cd $(DESTDIR)${man1dir} && rm -f $(MAN_PAGES)) |
69257
e0dc4799fa94
Add DESTDIR variable to install and uninstall targets to support staged
Eli Zaretskii <eliz@gnu.org>
parents:
68451
diff
changeset
|
676 (cd $(DESTDIR)${bindir} && rm -f $(EMACSFULL) $(EMACS)) |
100414
3af4af715c06
(uninstall): Use a narrower range of wildcards when deleting the icons.
Glenn Morris <rgm@gnu.org>
parents:
100413
diff
changeset
|
677 (cd $(DESTDIR)${icondir} && rm -f hicolor/*x*/apps/emacs.png hicolor/*x*/apps/emacs22.png hicolor/scalable/apps/emacs.svg hicolor/scalable/mimetypes/emacs-document.svg ) |
100413
ad9479019a3b
(uninstall): Remove desktop file and icons, game scores if empty.
Glenn Morris <rgm@gnu.org>
parents:
100412
diff
changeset
|
678 -rm -f $(DESTDIR)${desktopdir}/emacs.desktop |
ad9479019a3b
(uninstall): Remove desktop file and icons, game scores if empty.
Glenn Morris <rgm@gnu.org>
parents:
100412
diff
changeset
|
679 for file in snake-scores tetris-scores; do \ |
ad9479019a3b
(uninstall): Remove desktop file and icons, game scores if empty.
Glenn Morris <rgm@gnu.org>
parents:
100412
diff
changeset
|
680 file=$(DESTDIR)${gamedir}/$${file}; \ |
ad9479019a3b
(uninstall): Remove desktop file and icons, game scores if empty.
Glenn Morris <rgm@gnu.org>
parents:
100412
diff
changeset
|
681 [ -s $${file} ] || rm -f $$file; \ |
ad9479019a3b
(uninstall): Remove desktop file and icons, game scores if empty.
Glenn Morris <rgm@gnu.org>
parents:
100412
diff
changeset
|
682 done |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
683 |
8807
1fb0575ee03a
Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents:
8770
diff
changeset
|
684 FRC: |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
685 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
686 # ==================== Cleaning up and miscellanea ==================== |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
687 |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
688 .PHONY: mostlyclean clean distclean maintainer-clean extraclean |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
689 |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
690 ### `mostlyclean' |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
691 ### Like `clean', but may refrain from deleting a few files that people |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
692 ### normally don't want to recompile. For example, the `mostlyclean' |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
693 ### target for GCC does not delete `libgcc.a', because recompiling it |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
694 ### is rarely necessary and takes a lot of time. |
8807
1fb0575ee03a
Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents:
8770
diff
changeset
|
695 mostlyclean: FRC |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
696 (cd src; $(MAKE) $(MFLAGS) mostlyclean) |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
697 (cd oldXMenu; $(MAKE) $(MFLAGS) mostlyclean) |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
698 (cd lwlib; $(MAKE) $(MFLAGS) mostlyclean) |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
699 (cd lib-src; $(MAKE) $(MFLAGS) mostlyclean) |
84331 | 700 -(cd doc/emacs && $(MAKE) $(MFLAGS) mostlyclean) |
701 -(cd doc/misc && $(MAKE) $(MFLAGS) mostlyclean) | |
702 -(cd doc/lispref && $(MAKE) $(MFLAGS) mostlyclean) | |
703 -(cd doc/lispintro && $(MAKE) $(MFLAGS) mostlyclean) | |
18695
6928f49dd279
(mostlyclean): Add cleaning leim directory.
Kenichi Handa <handa@m17n.org>
parents:
18658
diff
changeset
|
704 (cd leim; $(MAKE) $(MFLAGS) mostlyclean) |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
705 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
706 ### `clean' |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
707 ### Delete all files from the current directory that are normally |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
708 ### created by building the program. Don't delete the files that |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
709 ### record the configuration. Also preserve files that could be made |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
710 ### by building, but normally aren't because the distribution comes |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
711 ### with them. |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49549
diff
changeset
|
712 ### |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
713 ### Delete `.dvi' files here if they are not part of the distribution. |
8807
1fb0575ee03a
Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents:
8770
diff
changeset
|
714 clean: FRC |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
715 (cd src; $(MAKE) $(MFLAGS) clean) |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
716 (cd oldXMenu; $(MAKE) $(MFLAGS) clean) |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
717 (cd lwlib; $(MAKE) $(MFLAGS) clean) |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
718 (cd lib-src; $(MAKE) $(MFLAGS) clean) |
84331 | 719 -(cd doc/emacs && $(MAKE) $(MFLAGS) clean) |
720 -(cd doc/misc && $(MAKE) $(MFLAGS) clean) | |
721 -(cd doc/lispref && $(MAKE) $(MFLAGS) clean) | |
722 -(cd doc/lispintro && $(MAKE) $(MFLAGS) clean) | |
18695
6928f49dd279
(mostlyclean): Add cleaning leim directory.
Kenichi Handa <handa@m17n.org>
parents:
18658
diff
changeset
|
723 (cd leim; $(MAKE) $(MFLAGS) clean) |
617 | 724 |
96137
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
725 ### `bootclean' |
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
726 ### Delete all files that need to be remade for a clean bootstrap. |
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
727 top_bootclean=\ |
96192
0a76608dd497
(top_bootclean): Remove obsolete references to lock/.
Glenn Morris <rgm@gnu.org>
parents:
96151
diff
changeset
|
728 rm -f config.cache config.log |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
729 ### `distclean' |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
730 ### Delete all files from the current directory that are created by |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
731 ### configuring or building the program. If you have unpacked the |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
732 ### source and built the program without creating any other files, |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
733 ### `make distclean' should leave only the files that were in the |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
734 ### distribution. |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
735 top_distclean=\ |
96137
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
736 ${top_bootclean}; \ |
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
737 rm -f config.status Makefile ${SUBDIR_MAKEFILES} |
8807
1fb0575ee03a
Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents:
8770
diff
changeset
|
738 distclean: FRC |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
739 (cd src; $(MAKE) $(MFLAGS) distclean) |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
740 (cd oldXMenu; $(MAKE) $(MFLAGS) distclean) |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
741 (cd lwlib; $(MAKE) $(MFLAGS) distclean) |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
742 (cd lib-src; $(MAKE) $(MFLAGS) distclean) |
84331 | 743 (cd doc/emacs && $(MAKE) $(MFLAGS) distclean) |
744 (cd doc/misc && $(MAKE) $(MFLAGS) distclean) | |
745 (cd doc/lispref && $(MAKE) $(MFLAGS) distclean) | |
746 (cd doc/lispintro && $(MAKE) $(MFLAGS) distclean) | |
18695
6928f49dd279
(mostlyclean): Add cleaning leim directory.
Kenichi Handa <handa@m17n.org>
parents:
18658
diff
changeset
|
747 (cd leim; $(MAKE) $(MFLAGS) distclean) |
29701
3678f877d57f
(distclean): Also make distclean in lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
29623
diff
changeset
|
748 (cd lisp; $(MAKE) $(MFLAGS) distclean) |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
749 ${top_distclean} |
617 | 750 |
96134
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
751 ### `bootstrap-clean' |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
752 ### Delete everything that can be reconstructed by `make' and that |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
753 ### needs to be deleted in order to force a bootstrap from a clean state. |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
754 bootstrap-clean: FRC |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
755 (cd src; $(MAKE) $(MFLAGS) bootstrap-clean) |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
756 (cd oldXMenu; $(MAKE) $(MFLAGS) maintainer-clean) |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
757 (cd lwlib; $(MAKE) $(MFLAGS) maintainer-clean) |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
758 (cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean) |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
759 -(cd doc/emacs && $(MAKE) $(MFLAGS) maintainer-clean) |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
760 -(cd doc/misc && $(MAKE) $(MFLAGS) maintainer-clean) |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
761 -(cd doc/lispref && $(MAKE) $(MFLAGS) maintainer-clean) |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
762 -(cd doc/lispintro && $(MAKE) $(MFLAGS) maintainer-clean) |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
763 (cd leim; $(MAKE) $(MFLAGS) maintainer-clean) |
96137
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
764 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean) |
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
765 ${top_bootclean} |
96134
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
766 |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
767 ### `maintainer-clean' |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
768 ### Delete everything from the current directory that can be |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
769 ### reconstructed with this Makefile. This typically includes |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
770 ### everything deleted by distclean, plus more: C source files |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
771 ### produced by Bison, tags tables, info files, and so on. |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
49549
diff
changeset
|
772 ### |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
773 ### One exception, however: `make maintainer-clean' should not delete |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
774 ### `configure' even if `configure' can be remade using a rule in the |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
775 ### Makefile. More generally, `make maintainer-clean' should not delete |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
776 ### anything that needs to exist in order to run `configure' and then |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
777 ### begin to build the program. |
96137
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
778 maintainer-clean: bootstrap-clean FRC |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
779 (cd src; $(MAKE) $(MFLAGS) maintainer-clean) |
96137
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
780 (cd lisp; $(MAKE) $(MFLAGS) maintainer-clean) |
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
781 ${top_distclean} |
617 | 782 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
783 ### This doesn't actually appear in the coding standards, but Karl |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
784 ### says GCC supports it, and that's where the configuration part of |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
785 ### the coding standards seem to come from. It's like distclean, but |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
786 ### it deletes backup and autosave files too. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
787 extraclean: |
37060 | 788 for i in ${SUBDIR} leim; do (cd $$i; $(MAKE) $(MFLAGS) extraclean); done |
14360
74660e3d9659
(extraclean): Use ${top_distclean} to ensure
Richard M. Stallman <rms@gnu.org>
parents:
14143
diff
changeset
|
789 ${top_distclean} |
35672
a2006be1b1a7
(extraclean): Added -f to -rm config-tmp-* to keep it quiet.
Bill Wohler <wohler@newt.com>
parents:
35537
diff
changeset
|
790 -rm -f config-tmp-* |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
791 -rm -f *~ \#* |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
792 |
34215
d9775b6caa67
(TAGS, info): Avoid tab-prefixed comments in rules.
Dave Love <fx@gnu.org>
parents:
33687
diff
changeset
|
793 # The src subdir knows how to do the right thing |
d9775b6caa67
(TAGS, info): Avoid tab-prefixed comments in rules.
Dave Love <fx@gnu.org>
parents:
33687
diff
changeset
|
794 # even when the build directory and source dir are different. |
35537 | 795 TAGS tags: lib-src src |
19739
6bf6679152c5
(TAGS tags): Simply refer this to the src subdir.
Richard M. Stallman <rms@gnu.org>
parents:
19640
diff
changeset
|
796 cd src; $(MAKE) tags |
617 | 797 |
798 check: | |
799 @echo "We don't have any tests for GNU Emacs yet." | |
621 | 800 |
801 dist: | |
27529 | 802 cd ${srcdir}; ./make-dist |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
803 |
28850
1fdfc579d0bd
(install-arch-indep): Filter CVS as well as RCS.
Dave Love <fx@gnu.org>
parents:
28605
diff
changeset
|
804 .PHONY: info dvi dist check html |
94598
bc725ee2bc85
(MAKEINFO): New, set by configure.
Glenn Morris <rgm@gnu.org>
parents:
93334
diff
changeset
|
805 |
bc725ee2bc85
(MAKEINFO): New, set by configure.
Glenn Morris <rgm@gnu.org>
parents:
93334
diff
changeset
|
806 info-real: |
104694
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
807 (cd doc/emacs; $(MAKE) $(MFLAGS) info) |
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
808 (cd doc/misc; $(MAKE) $(MFLAGS) info) |
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
809 (cd doc/lispref; $(MAKE) $(MFLAGS) info) |
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
810 (cd doc/lispintro; $(MAKE) $(MFLAGS) info) |
94598
bc725ee2bc85
(MAKEINFO): New, set by configure.
Glenn Morris <rgm@gnu.org>
parents:
93334
diff
changeset
|
811 |
5321
69d64181891b
(mkdir): Make only the lockdir writable.
Richard M. Stallman <rms@gnu.org>
parents:
5200
diff
changeset
|
812 force-info: |
104694
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
813 # Note that man/Makefile knows how to put the info files in $(srcdir), |
34215
d9775b6caa67
(TAGS, info): Avoid tab-prefixed comments in rules.
Dave Love <fx@gnu.org>
parents:
33687
diff
changeset
|
814 # so we can do ok running make in the build dir. |
104694
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
815 # This used to have a clause that exited with an error if MAKEINFO = no. |
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
816 # But it is inappropriate to do so without checking if makeinfo is |
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
817 # actually needed - it is not if the info files are up-to-date. (Bug#3982) |
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
818 # Only the doc/*/Makefiles can decide that, so we let those rules run |
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
819 # and give a standard error if makeinfo is needed but missing. |
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
820 # While it would be nice to give a more detailed error message, that |
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
821 # would require changing every rule in doc/ that builds an info file, |
104696 | 822 # and it's not worth it. This case is only relevant if you download a |
104694
dbb1369b5eaf
(info-real): Don't ignore errors from doc Makefiles.
Glenn Morris <rgm@gnu.org>
parents:
104557
diff
changeset
|
823 # release, then change the .texi files. |
5321
69d64181891b
(mkdir): Make only the lockdir writable.
Richard M. Stallman <rms@gnu.org>
parents:
5200
diff
changeset
|
824 info: force-info |
94783
4b2ac57a4d30
(install-arch-indep, info): Handle MAKEINFO == off.
Glenn Morris <rgm@gnu.org>
parents:
94719
diff
changeset
|
825 @if test "$(MAKEINFO)" = "off"; then \ |
4b2ac57a4d30
(install-arch-indep, info): Handle MAKEINFO == off.
Glenn Morris <rgm@gnu.org>
parents:
94719
diff
changeset
|
826 echo "Configured --without-makeinfo, not building manuals" ; \ |
94598
bc725ee2bc85
(MAKEINFO): New, set by configure.
Glenn Morris <rgm@gnu.org>
parents:
93334
diff
changeset
|
827 else \ |
bc725ee2bc85
(MAKEINFO): New, set by configure.
Glenn Morris <rgm@gnu.org>
parents:
93334
diff
changeset
|
828 $(MAKE) $(MFLAGS) info-real ; \ |
bc725ee2bc85
(MAKEINFO): New, set by configure.
Glenn Morris <rgm@gnu.org>
parents:
93334
diff
changeset
|
829 fi |
91679 | 830 |
831 # The info/dir file must be updated by hand when new manuals are added. | |
832 check-info-dir: info | |
833 cd info ; \ | |
834 missing= ; \ | |
835 for file in *; do \ | |
836 test -f "$${file}" || continue ; \ | |
837 case $${file} in \ | |
838 *-[0-9]*|COPYING|dir) continue ;; \ | |
839 esac ; \ | |
840 grep -q -F ": ($${file})." dir || missing="$${missing} $${file}" ; \ | |
841 done ; \ | |
842 if test -n "$${missing}"; then \ | |
843 echo "Missing info/dir entries: $${missing}" ; \ | |
844 exit 1 ; \ | |
845 fi ; \ | |
846 echo "info/dir is OK" | |
847 | |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
848 dvi: |
84331 | 849 (cd doc/emacs; $(MAKE) $(MFLAGS) dvi) |
850 (cd doc/misc; $(MAKE) $(MFLAGS) dvi) | |
851 (cd doc/lispref; $(MAKE) $(MFLAGS) elisp.dvi) | |
852 (cd doc/lispintro; $(MAKE) $(MFLAGS) emacs-lisp-intro.dvi) | |
26146 | 853 |
854 #### Bootstrapping. | |
855 | |
95490 | 856 ### This first cleans the lisp subdirectory, removing all compiled |
96137
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
857 ### Lisp files. Then re-run make to build all the files anew. |
26146 | 858 |
47410
b375ca944a14
(bootstrap-lisp-1, bootstrap-lisp, bootstrap)
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
47038
diff
changeset
|
859 .PHONY: bootstrap |
37102
1a8ad1e74d48
(.PHONY): Add for bootstrap targets.
Gerd Moellmann <gerd@gnu.org>
parents:
37060
diff
changeset
|
860 |
96134
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
861 bootstrap: bootstrap-clean FRC |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
862 if [ -x ./config.status ]; then \ |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
863 ./config.status; \ |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
864 else \ |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
865 ./configure --enable-maintainer-mode; \ |
d143e6de14ec
* src/Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
95634
diff
changeset
|
866 fi |
96137
eae2eee28ad3
Make "make" do a bootstrap if needed.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
96134
diff
changeset
|
867 $(MAKE) $(MFLAGS) info all |
37102
1a8ad1e74d48
(.PHONY): Add for bootstrap targets.
Gerd Moellmann <gerd@gnu.org>
parents:
37060
diff
changeset
|
868 |
86185 | 869 .PHONY: check-declare |
870 | |
871 check-declare: | |
872 @if [ ! -e $(srcdir)/src/emacs ]; then \ | |
873 echo "You must build Emacs to use this command"; \ | |
874 exit 1; \ | |
875 fi | |
876 (cd leim; $(MAKE) $(MFLAGS) $@) | |
877 (cd lisp; $(MAKE) $(MFLAGS) $@) |