Mercurial > emacs
annotate Makefile.in @ 30689:194b7f43b959
(auto-mode-interpreter-regexp): New variable.
(set-auto-mode): Use it.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 08 Aug 2000 18:32:10 +0000 |
parents | 90d9fcda2a65 |
children | 368fc6c53953 |
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 |
617 | 5 # make all to compile and build Emacs. |
6 # 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
|
7 # 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
|
8 # |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
9 # make clean or make mostlyclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
10 # 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
|
11 # 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
|
12 # 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
|
13 # 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
|
14 # with them. |
491 | 15 # |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
16 # Delete `.dvi' files here if they are not part of the distribution. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
17 # |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
18 # make distclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
19 # 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
|
20 # 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
|
21 # 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
|
22 # `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
|
23 # distribution. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
24 # |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
25 # make maintainer-clean |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
26 # 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
|
27 # reconstructed with this Makefile. This typically includes |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
28 # everything deleted by distclean, plus more: C source files |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
29 # produced by Bison, tags tables, info files, and so on. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
30 # |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
31 # make extraclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
32 # Still more severe - delete backup and autosave files, too. |
491 | 33 |
34 SHELL = /bin/sh | |
6868
f2edac55dc7a
(MAKE): Don't just assign it--use @SET_MAKE@.
Richard M. Stallman <rms@gnu.org>
parents:
6514
diff
changeset
|
35 |
f2edac55dc7a
(MAKE): Don't just assign it--use @SET_MAKE@.
Richard M. Stallman <rms@gnu.org>
parents:
6514
diff
changeset
|
36 # 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
|
37 @SET_MAKE@ |
491 | 38 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
39 # ==================== Things `configure' Might Edit ==================== |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
40 |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
41 CC=@CC@ |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
42 CPP=@CPP@ |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
43 C_SWITCH_SYSTEM=@c_switch_system@ |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
44 ALLOCA=@ALLOCA@ |
2710
c64e97b1685b
* Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
Jim Blandy <jimb@redhat.com>
parents:
2623
diff
changeset
|
45 LN_S=@LN_S@ |
c64e97b1685b
* Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
Jim Blandy <jimb@redhat.com>
parents:
2623
diff
changeset
|
46 CFLAGS=@CFLAGS@ |
19013
2d2812dac5f7
(LDFLAGS): Get this from configure, like CFLAGS.
Richard M. Stallman <rms@gnu.org>
parents:
18897
diff
changeset
|
47 LDFLAGS=@LDFLAGS@ |
19037
f37a8bfe3364
(CPPFLAGS): Get this from configure, like CFLAGS.
Richard M. Stallman <rms@gnu.org>
parents:
19013
diff
changeset
|
48 CPPFLAGS=@CPPFLAGS@ |
2988
9403c9149e79
* Makefile.in (C_SWITCH_X_SITE): New variable - get this from
Jim Blandy <jimb@redhat.com>
parents:
2974
diff
changeset
|
49 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ |
3344 | 50 LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@ |
3582
eb75df1104eb
* configure.in: Test for bison.
Jim Blandy <jimb@redhat.com>
parents:
3426
diff
changeset
|
51 YACC=@YACC@ |
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 ### 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
|
54 ### to install files in. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
55 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
56 ### 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
|
57 ### like `18.59' or `19.0'. |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
58 version=@version@ |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
59 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
60 ### 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
|
61 ### 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
|
62 configuration=@configuration@ |
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
63 |
617 | 64 # ==================== Where To Install Things ==================== |
65 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
66 # 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
|
67 # 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
|
68 # 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
|
69 # 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
|
70 prefix=@prefix@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
71 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
72 # 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
|
73 exec_prefix=@exec_prefix@ |
617 | 74 |
75 # Where to install Emacs and other binaries that people will want to | |
76 # 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
|
77 bindir=@bindir@ |
491 | 78 |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
79 # 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
|
80 # 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
|
81 datadir=@datadir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
82 |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
83 # 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
|
84 # runs. These files are all architecture-independent. |
33bdcdd88f19
(mkdir): Don't create lockdir.
Richard M. Stallman <rms@gnu.org>
parents:
19037
diff
changeset
|
85 # Right now, this is not used. |
9561
4ec345bfb51f
(sharedstatedir): Substitute sharedstatedir properly.
Richard M. Stallman <rms@gnu.org>
parents:
9556
diff
changeset
|
86 sharedstatedir=@sharedstatedir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
87 |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
88 # 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
|
89 # 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
|
90 # 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
|
91 libexecdir=@libexecdir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
92 |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
93 # Where to install Emacs's man pages, and what extension they should have. |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
94 mandir=@mandir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
95 manext=.1 |
13518
9e55dae21315
(mkdir): Create man1dir, not mandir.
Richard M. Stallman <rms@gnu.org>
parents:
13280
diff
changeset
|
96 man1dir=$(mandir)/man1 |
617 | 97 |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
98 # 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
|
99 # 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
|
100 # 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
|
101 # 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
|
102 infodir=@infodir@ |
491 | 103 |
9556
28320cad8c38
(bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
9506
diff
changeset
|
104 # Where to look for bitmap files. |
28320cad8c38
(bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
9506
diff
changeset
|
105 bitmapdir=@bitmapdir@ |
28320cad8c38
(bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
9506
diff
changeset
|
106 |
3079
7c17d7f9d242
* Makefile.in (srcdir): Remove comment saying this doesn't work.
Jim Blandy <jimb@redhat.com>
parents:
3060
diff
changeset
|
107 # 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
|
108 # 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
|
109 # 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
|
110 # set by the configure script's `--srcdir' option. |
22869 | 111 |
112 # 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
|
113 srcdir=@srcdir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
114 |
4809
499783e8afb2
(VPATH): Define to @srcdir@.
Roland McGrath <roland@gnu.org>
parents:
4793
diff
changeset
|
115 # 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
|
116 VPATH=@srcdir@ |
499783e8afb2
(VPATH): Define to @srcdir@.
Roland McGrath <roland@gnu.org>
parents:
4793
diff
changeset
|
117 |
19387
252bf4f45d18
(paths-force): Store PATH_X_DEFAULTS in paths.h.
Richard M. Stallman <rms@gnu.org>
parents:
19218
diff
changeset
|
118 # 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
|
119 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
|
120 |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
121 # ==================== Emacs-specific directories ==================== |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
122 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
123 # 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
|
124 # 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
|
125 |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
126 # 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
|
127 # 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
|
128 # 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
|
129 # themselves in separate directories. |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
130 lispdir=@lispdir@ |
617 | 131 |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
132 # 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
|
133 # 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
|
134 # ${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
|
135 # directories. |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
136 locallisppath=@locallisppath@ |
491 | 137 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
138 # 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
|
139 # 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
|
140 # better be served by changing locallisppath. This |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
141 # 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
|
142 lisppath=@lisppath@ |
491 | 143 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
144 # 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
|
145 # 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
|
146 # 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
|
147 # before they've been installed in their final location. |
8499 | 148 # It's usually identical to lisppath, except that |
149 # 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
|
150 # 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
|
151 # 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
|
152 # colon-separated list of directories. |
2817
d28c54ba888e
More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents:
2812
diff
changeset
|
153 buildlisppath=${srcdir}/lisp |
491 | 154 |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
155 # 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
|
156 # 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
|
157 # 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
|
158 # 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
|
159 # 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
|
160 # at once. |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
161 etcdir=@etcdir@ |
491 | 162 |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
163 # 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
|
164 # 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
|
165 # 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
|
166 # 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
|
167 # once. |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
168 archlibdir=@archlibdir@ |
2225
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
169 |
6033
f4dead15502f
Use docdir to initialize PATH_DOC in paths.h.
Karl Heuer <kwzh@gnu.org>
parents:
6013
diff
changeset
|
170 # 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
|
171 docdir=@docdir@ |
f4dead15502f
Use docdir to initialize PATH_DOC in paths.h.
Karl Heuer <kwzh@gnu.org>
parents:
6013
diff
changeset
|
172 |
617 | 173 # ==================== Utility Programs for the Build ==================== |
174 | |
175 # Allow the user to specify the install program. | |
3090
7b418622d32b
(INSTALL): Add definition.
Richard M. Stallman <rms@gnu.org>
parents:
3079
diff
changeset
|
176 INSTALL = @INSTALL@ |
3010
4ca5a6bd174b
* configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents:
2988
diff
changeset
|
177 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
4ca5a6bd174b
* configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents:
2988
diff
changeset
|
178 INSTALL_DATA = @INSTALL_DATA@ |
21809
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
179 INSTALL_INFO = install-info |
15975
9d392663cd09
(INSTALL_STRIP): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
15898
diff
changeset
|
180 # By default, we uphold the dignity of our programs. |
9d392663cd09
(INSTALL_STRIP): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
15898
diff
changeset
|
181 INSTALL_STRIP = |
617 | 182 |
183 # ============================= Targets ============================== | |
491 | 184 |
7032
2c8a6d503e76
(.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents:
6970
diff
changeset
|
185 # What emacs should be called when installed. |
2c8a6d503e76
(.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents:
6970
diff
changeset
|
186 EMACS = emacs |
2c8a6d503e76
(.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents:
6970
diff
changeset
|
187 |
491 | 188 # Subdirectories to make recursively. `lisp' is not included |
189 # because the compiled lisp files are part of the distribution | |
190 # and you cannot remake them without installing Emacs first. | |
18516 | 191 SUBDIR = lib-src src leim |
491 | 192 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
193 # The makefiles of the directories in $SUBDIR. |
18516 | 194 SUBDIR_MAKEFILES = lib-src/Makefile man/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile leim/Makefile |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
195 |
1860
f7565191703b
* Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
196 # 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
|
197 # lib-src's makefile knows how to install it, so we don't do that here. |
18516 | 198 # 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
|
199 # 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
|
200 # 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
|
201 # 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
|
202 COPYDIR = ${srcdir}/etc ${srcdir}/lisp |
e54c45bae557
(COPYDESTS, COPYDIR): Delete external-lisp dir.
Richard M. Stallman <rms@gnu.org>
parents:
3179
diff
changeset
|
203 COPYDESTS = ${etcdir} ${lispdir} |
491 | 204 |
15897
d9496ad1f3a6
(src/paths.h): Target deleted.
Richard M. Stallman <rms@gnu.org>
parents:
15869
diff
changeset
|
205 all: ${SUBDIR} |
491 | 206 |
8163
d836abb05e48
(mkdir, removenullpaths): Put g in sed replace commands.
Richard M. Stallman <rms@gnu.org>
parents:
7704
diff
changeset
|
207 removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g' |
617 | 208 |
24409
4aaf84a4a5d5
(epaths-force): Renamed from paths-force;
Richard M. Stallman <rms@gnu.org>
parents:
23821
diff
changeset
|
209 # 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
|
210 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
|
211 @(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
|
212 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
|
213 x_default_search_path=`echo ${x_default_search_path}`; \ |
24409
4aaf84a4a5d5
(epaths-force): Renamed from paths-force;
Richard M. Stallman <rms@gnu.org>
parents:
23821
diff
changeset
|
214 sed < ${srcdir}/src/epaths.in > epaths.h.$$$$ \ |
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
|
215 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
216 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
217 -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
|
218 -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
|
219 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ |
9556
28320cad8c38
(bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
9506
diff
changeset
|
220 -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
|
221 -e 's;\(#.*PATH_X_DEFAULTS\).*$$;\1 "${x_default_search_path}";' \ |
19218 | 222 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";') && \ |
24409
4aaf84a4a5d5
(epaths-force): Renamed from paths-force;
Richard M. Stallman <rms@gnu.org>
parents:
23821
diff
changeset
|
223 ${srcdir}/move-if-change epaths.h.$$$$ src/epaths.h |
491 | 224 |
19946
d44bb51c42b5
(install-leim): Depend on mkdir.
Richard M. Stallman <rms@gnu.org>
parents:
19739
diff
changeset
|
225 # For parallel make, src should be build before leim. |
d44bb51c42b5
(install-leim): Depend on mkdir.
Richard M. Stallman <rms@gnu.org>
parents:
19739
diff
changeset
|
226 leim: src |
d44bb51c42b5
(install-leim): Depend on mkdir.
Richard M. Stallman <rms@gnu.org>
parents:
19739
diff
changeset
|
227 |
15897
d9496ad1f3a6
(src/paths.h): Target deleted.
Richard M. Stallman <rms@gnu.org>
parents:
15869
diff
changeset
|
228 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
|
229 |
18409
009cc28fa3ec
(src/config.stamp): Target renamed from src/config.h and touch it explicitly.
Richard M. Stallman <rms@gnu.org>
parents:
18404
diff
changeset
|
230 lib-src: FRC src/config.stamp |
491 | 231 |
232 .RECURSIVE: ${SUBDIR} | |
233 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
234 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
235 cd $@; $(MAKE) all $(MFLAGS) \ |
5413
8c0dd3e81e28
(${SUBDIR} target): Pass down LDFLAGS and CPPFLAGS.
Richard M. Stallman <rms@gnu.org>
parents:
5321
diff
changeset
|
236 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \ |
8c0dd3e81e28
(${SUBDIR} target): Pass down LDFLAGS and CPPFLAGS.
Richard M. Stallman <rms@gnu.org>
parents:
5321
diff
changeset
|
237 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
238 |
7704
022727dbe5f3
(install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents:
7603
diff
changeset
|
239 blessmail: ${SUBDIR_MAKEFILES} src FRC |
10969
c66a0a2a7bb3
(blessmail): Pass archlibdir to the sub-make.
Richard M. Stallman <rms@gnu.org>
parents:
10685
diff
changeset
|
240 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
|
241 MAKE='${MAKE}' archlibdir='$(archlibdir)' |
7311
b4ef2060b171
(lib-src): Undo previous change.
Richard M. Stallman <rms@gnu.org>
parents:
7293
diff
changeset
|
242 |
22868
79e11bd92691
(Makefile, src/Makefile, src/config.stamp)
Richard M. Stallman <rms@gnu.org>
parents:
22312
diff
changeset
|
243 Makefile: $(srcdir)/Makefile.in config.status |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
244 ./config.status |
491 | 245 |
30638
90d9fcda2a65
(config.status): Prepend `$(srcdir)/' to
Gerd Moellmann <gerd@gnu.org>
parents:
29701
diff
changeset
|
246 config.status: ${srcdir}/configure |
25879
4351ac02c1e1
Add rules for config.status, configure.
Dave Love <fx@gnu.org>
parents:
24607
diff
changeset
|
247 ./config.status --recheck |
4351ac02c1e1
Add rules for config.status, configure.
Dave Love <fx@gnu.org>
parents:
24607
diff
changeset
|
248 |
28605
4619454313ce
(${srcdir}/configure): Depend on aclocal.m4.
Dave Love <fx@gnu.org>
parents:
28319
diff
changeset
|
249 ${srcdir}/configure: configure.in aclocal.m4 |
25879
4351ac02c1e1
Add rules for config.status, configure.
Dave Love <fx@gnu.org>
parents:
24607
diff
changeset
|
250 cd ${srcdir} && autoconf |
4351ac02c1e1
Add rules for config.status, configure.
Dave Love <fx@gnu.org>
parents:
24607
diff
changeset
|
251 |
22868
79e11bd92691
(Makefile, src/Makefile, src/config.stamp)
Richard M. Stallman <rms@gnu.org>
parents:
22312
diff
changeset
|
252 src/Makefile: $(srcdir)/src/Makefile.in config.status |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
253 ./config.status |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
254 |
22868
79e11bd92691
(Makefile, src/Makefile, src/config.stamp)
Richard M. Stallman <rms@gnu.org>
parents:
22312
diff
changeset
|
255 src/config.stamp: $(srcdir)/src/config.in config.status |
18404
2af2dc0cd97f
(lib-src): Depend on src/config.h (e.g. for movemail.o).
Richard M. Stallman <rms@gnu.org>
parents:
17749
diff
changeset
|
256 ./config.status |
18409
009cc28fa3ec
(src/config.stamp): Target renamed from src/config.h and touch it explicitly.
Richard M. Stallman <rms@gnu.org>
parents:
18404
diff
changeset
|
257 touch src/config.stamp |
18404
2af2dc0cd97f
(lib-src): Depend on src/config.h (e.g. for movemail.o).
Richard M. Stallman <rms@gnu.org>
parents:
17749
diff
changeset
|
258 |
22868
79e11bd92691
(Makefile, src/Makefile, src/config.stamp)
Richard M. Stallman <rms@gnu.org>
parents:
22312
diff
changeset
|
259 lib-src/Makefile: $(srcdir)/lib-src/Makefile.in config.status |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
260 ./config.status |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
261 |
22868
79e11bd92691
(Makefile, src/Makefile, src/config.stamp)
Richard M. Stallman <rms@gnu.org>
parents:
22312
diff
changeset
|
262 man/Makefile: $(srcdir)/man/Makefile.in config.status |
19623
390656cf7e41
(man/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
19534
diff
changeset
|
263 ./config.status |
390656cf7e41
(man/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
19534
diff
changeset
|
264 |
22868
79e11bd92691
(Makefile, src/Makefile, src/config.stamp)
Richard M. Stallman <rms@gnu.org>
parents:
22312
diff
changeset
|
265 oldXMenu/Makefile: $(srcdir)/oldXMenu/Makefile.in config.status |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
266 ./config.status |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
267 |
22868
79e11bd92691
(Makefile, src/Makefile, src/config.stamp)
Richard M. Stallman <rms@gnu.org>
parents:
22312
diff
changeset
|
268 lwlib/Makefile: $(srcdir)/lwlib/Makefile.in config.status |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
269 ./config.status |
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
270 |
22868
79e11bd92691
(Makefile, src/Makefile, src/config.stamp)
Richard M. Stallman <rms@gnu.org>
parents:
22312
diff
changeset
|
271 leim/Makefile: $(srcdir)/leim/Makefile.in config.status |
18516 | 272 ./config.status |
273 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
274 # ==================== Installation ==================== |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
275 |
1821
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1767
diff
changeset
|
276 ## 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
|
277 ## 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
|
278 ## this Makefile as well. |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
279 |
2817
d28c54ba888e
More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents:
2812
diff
changeset
|
280 ## On AIX, use tar xBf. |
d28c54ba888e
More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents:
2812
diff
changeset
|
281 ## On Xenix, use tar xpf. |
d28c54ba888e
More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents:
2812
diff
changeset
|
282 |
7032
2c8a6d503e76
(.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents:
6970
diff
changeset
|
283 .PHONY: install mkdir |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
284 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
285 ## 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
|
286 ## 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
|
287 ## 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
|
288 ## 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
|
289 ## 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
|
290 ### 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
|
291 ### 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
|
292 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
|
293 @true |
3060
6bb1c8f853cb
* Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents:
3021
diff
changeset
|
294 |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
295 ### 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
|
296 ### 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
|
297 ### 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
|
298 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
|
299 (cd lib-src; \ |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
300 $(MAKE) install $(MFLAGS) prefix=${prefix} \ |
9457
a9a8a2326411
Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
9051
diff
changeset
|
301 exec_prefix=${exec_prefix} bindir=${bindir} \ |
15975
9d392663cd09
(INSTALL_STRIP): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
15898
diff
changeset
|
302 libexecdir=${libexecdir} archlibdir=${archlibdir} \ |
9d392663cd09
(INSTALL_STRIP): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
15898
diff
changeset
|
303 INSTALL_STRIP=${INSTALL_STRIP}) |
9d392663cd09
(INSTALL_STRIP): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
15898
diff
changeset
|
304 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs ${bindir}/emacs-${version} |
6013
f03d2629a6a3
(install-arch-dep, install-arch-indep):
Richard M. Stallman <rms@gnu.org>
parents:
5630
diff
changeset
|
305 -chmod 1755 ${bindir}/emacs-${version} |
7032
2c8a6d503e76
(.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents:
6970
diff
changeset
|
306 rm -f ${bindir}/$(EMACS) |
2c8a6d503e76
(.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents:
6970
diff
changeset
|
307 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS) |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
308 -unset CDPATH; \ |
23781
4e3665e2c42b
(install-arch-dep): Copy fns-*.el from lib-src.
Richard M. Stallman <rms@gnu.org>
parents:
23618
diff
changeset
|
309 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
|
310 if test -r lib-src/$$f ; then \ |
c58cb815dcfd
* Makefile.in (install-arch-dep): Install fns-*.el only if it
Ken Raeburn <raeburn@raeburn.org>
parents:
29176
diff
changeset
|
311 ${INSTALL_DATA} lib-src/$$f ${archlibdir}/$$f; \ |
c58cb815dcfd
* Makefile.in (install-arch-dep): Install fns-*.el only if it
Ken Raeburn <raeburn@raeburn.org>
parents:
29176
diff
changeset
|
312 else true; fi ; \ |
23573
e26894ec8369
(install-arch-dep): Install src/fns-*.el in
Andreas Schwab <schwab@suse.de>
parents:
22869
diff
changeset
|
313 done |
6013
f03d2629a6a3
(install-arch-dep, install-arch-indep):
Richard M. Stallman <rms@gnu.org>
parents:
5630
diff
changeset
|
314 |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
315 ### 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
|
316 ### 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
|
317 ### the exception is the DOC-* files, which are copied |
18533
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
318 ## from the build directory. |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
319 |
18533
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
320 ## Note that we copy DOC* and then delete DOC |
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
321 ## as a workaround for a bug in tar on Ultrix 4.2. |
26704
b81a30ac8e52
(install-arch-indep): Depend on `info'.
Dave Love <fx@gnu.org>
parents:
26146
diff
changeset
|
322 install-arch-indep: mkdir info |
617 | 323 -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
|
324 unset CDPATH; \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
325 for dir in ${COPYDIR} ; do \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
326 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
|
327 rm -rf $$1 ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
328 fi ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
329 shift ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
330 done |
3123
0e9f73b6245d
* Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents:
3090
diff
changeset
|
331 -set ${COPYDESTS} ; \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
332 mkdir ${COPYDESTS} ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
333 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
|
334 unset CDPATH; \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
335 for dir in ${COPYDIR} ; do \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
336 dest=$$1 ; shift ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
337 [ -d $${dir} ] \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
338 && [ `(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
|
339 && (echo "Copying $${dir} to $${dest}..." ; \ |
19534
f2fe77b50fb1
(install-arch-indep): Discard extra data in tar | tar pipes.
Richard M. Stallman <rms@gnu.org>
parents:
19387
diff
changeset
|
340 (cd $${dir}; tar -cf - . ) \ |
f2fe77b50fb1
(install-arch-indep): Discard extra data in tar | tar pipes.
Richard M. Stallman <rms@gnu.org>
parents:
19387
diff
changeset
|
341 |(cd $${dest};umask 022; tar -xvf - && cat > /dev/null); \ |
28850
1fdfc579d0bd
(install-arch-indep): Filter CVS as well as RCS.
Dave Love <fx@gnu.org>
parents:
28605
diff
changeset
|
342 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
|
343 chmod a+rx $${subdir} ; \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
344 rm -rf $${subdir}/RCS ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
345 rm -rf $${subdir}/CVS ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
346 rm -f $${subdir}/\#* ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
347 rm -f $${subdir}/.\#* ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
348 rm -f $${subdir}/*~ ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
349 rm -f $${subdir}/*.orig ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
350 rm -f $${subdir}/[mM]akefile* ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
351 rm -f $${subdir}/ChangeLog* ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
352 rm -f $${subdir}/dired.todo ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
353 done) ; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
354 done |
9556
28320cad8c38
(bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
9506
diff
changeset
|
355 -rm -f ${lispdir}/subdirs.el |
11227
91377b178920
(install-arch-indep, dist): look for `update-subdir' in $(srcdir).
Richard M. Stallman <rms@gnu.org>
parents:
10969
diff
changeset
|
356 $(srcdir)/update-subdirs ${lispdir} |
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
|
357 if [ -f ${datadir}/emacs/${version}/site-lisp/subdirs.el ]; \ |
8299c71438c4
(install-arch-indep): Don't alter site-lisp/subdirs.el if it exists.
Richard M. Stallman <rms@gnu.org>
parents:
22044
diff
changeset
|
358 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
|
359 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
|
360 (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
|
361 echo " (normal-top-level-add-subdirs-to-load-path))") \ |
22065
dd225ba510b4
(install-arch-indep): Fix previous change.
Richard M. Stallman <rms@gnu.org>
parents:
22058
diff
changeset
|
362 > ${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
|
363 fi |
21809
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
364 chmod a+r ${datadir}/emacs/${version}/site-lisp/subdirs.el |
22312
eed3a1470e83
(install-arch-indep): Don't die if site-lisp/ isn't writable.
Karl Heuer <kwzh@gnu.org>
parents:
22065
diff
changeset
|
365 -if [ -f ${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
|
366 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
|
367 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
|
368 (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
|
369 echo " (normal-top-level-add-subdirs-to-load-path))") \ |
22065
dd225ba510b4
(install-arch-indep): Fix previous change.
Richard M. Stallman <rms@gnu.org>
parents:
22058
diff
changeset
|
370 > ${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
|
371 fi |
22312
eed3a1470e83
(install-arch-indep): Don't die if site-lisp/ isn't writable.
Karl Heuer <kwzh@gnu.org>
parents:
22065
diff
changeset
|
372 -chmod a+r ${datadir}/emacs/site-lisp/subdirs.el |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
373 -unset CDPATH; \ |
7390
989492b57d5e
(install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents:
7311
diff
changeset
|
374 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ |
989492b57d5e
(install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents:
7311
diff
changeset
|
375 then \ |
13757
94f0319d4cbb
Improve copying status message.
Karl Heuer <kwzh@gnu.org>
parents:
13676
diff
changeset
|
376 echo "Copying etc/DOC-* to ${docdir} ..." ; \ |
19534
f2fe77b50fb1
(install-arch-indep): Discard extra data in tar | tar pipes.
Richard M. Stallman <rms@gnu.org>
parents:
19387
diff
changeset
|
377 (cd ./etc; tar -cf - DOC*) \ |
f2fe77b50fb1
(install-arch-indep): Discard extra data in tar | tar pipes.
Richard M. Stallman <rms@gnu.org>
parents:
19387
diff
changeset
|
378 |(cd ${docdir}; umask 0; tar -xvf - && cat > /dev/null); \ |
20673
e8a304f0d461
(install-arch-indep): Add semicolon before `else'.
Karl Heuer <kwzh@gnu.org>
parents:
20415
diff
changeset
|
379 (cd $(docdir); chmod a+r DOC*; rm DOC); \ |
7390
989492b57d5e
(install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents:
7311
diff
changeset
|
380 else true; fi |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
381 -unset CDPATH; \ |
15323
af013b84d1ad
(install-arch-indep): If cd etc makes output,
Richard M. Stallman <rms@gnu.org>
parents:
14864
diff
changeset
|
382 if [ -r ./lisp ] \ |
19640
40bed12c4f2e
(install-arch-indep): Verify ./lisp has simple.el in it
Richard M. Stallman <rms@gnu.org>
parents:
19623
diff
changeset
|
383 && [ -r ./lisp/simple.el ] \ |
15323
af013b84d1ad
(install-arch-indep): If cd etc makes output,
Richard M. Stallman <rms@gnu.org>
parents:
14864
diff
changeset
|
384 && [ x`(cd ./lisp; /bin/pwd)` != x`(cd ${lispdir}; /bin/pwd)` ] \ |
14555
af6c9bc726a9
(install-arch-indep): Install info/ccmode*.
Richard M. Stallman <rms@gnu.org>
parents:
14360
diff
changeset
|
385 && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \ |
af6c9bc726a9
(install-arch-indep): Install info/ccmode*.
Richard M. Stallman <rms@gnu.org>
parents:
14360
diff
changeset
|
386 then \ |
af6c9bc726a9
(install-arch-indep): Install info/ccmode*.
Richard M. Stallman <rms@gnu.org>
parents:
14360
diff
changeset
|
387 echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \ |
19534
f2fe77b50fb1
(install-arch-indep): Discard extra data in tar | tar pipes.
Richard M. Stallman <rms@gnu.org>
parents:
19387
diff
changeset
|
388 (cd lisp; tar -cf - *.el *.elc) \ |
f2fe77b50fb1
(install-arch-indep): Discard extra data in tar | tar pipes.
Richard M. Stallman <rms@gnu.org>
parents:
19387
diff
changeset
|
389 |(cd ${lispdir}; umask 0; tar -xvf - && cat > /dev/null); \ |
14555
af6c9bc726a9
(install-arch-indep): Install info/ccmode*.
Richard M. Stallman <rms@gnu.org>
parents:
14360
diff
changeset
|
390 else true; fi |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
391 -unset CDPATH; \ |
7704
022727dbe5f3
(install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents:
7603
diff
changeset
|
392 thisdir=`/bin/pwd`; \ |
3426
7ecee84713e6
(do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents:
3423
diff
changeset
|
393 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ |
6394
a829e7875542
(install-arch-indep): Add missing backslash after a `then'.
Roland McGrath <roland@gnu.org>
parents:
6350
diff
changeset
|
394 then \ |
13002
237f7920c3a2
(install-arch-indep): Always install the new dir file;
Richard M. Stallman <rms@gnu.org>
parents:
12579
diff
changeset
|
395 (cd ${infodir}; \ |
21809
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
396 if [ -f dir ]; then true; \ |
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
397 else \ |
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
398 (cd $${thisdir}; \ |
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
399 ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir; \ |
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
400 chmod a+r ${infodir}/dir); \ |
13660
7ccd8298d604
(install-arch-indep): Don't install
Richard M. Stallman <rms@gnu.org>
parents:
13570
diff
changeset
|
401 fi; \ |
13002
237f7920c3a2
(install-arch-indep): Always install the new dir file;
Richard M. Stallman <rms@gnu.org>
parents:
12579
diff
changeset
|
402 cd ${srcdir}/info ; \ |
29396
efa9ef0e8457
(install-arch-indep): Add pcl-cvs to list of info files.
Dave Love <fx@gnu.org>
parents:
29221
diff
changeset
|
403 for f in ada-mode* autotype* ccmode* cl* dired-x* ebrowse* ediff* efaq* emacs* eudc* forms* gnus* idlwave* info* message* mh-e* reftex* sc* vip* widget* pcl-cvs; do \ |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
404 (cd $${thisdir}; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
405 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f; \ |
21984
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
406 chmod a+r ${infodir}/$$f); \ |
6350
9feb98fdf5aa
(thisdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
6071
diff
changeset
|
407 done); \ |
3426
7ecee84713e6
(do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents:
3423
diff
changeset
|
408 else true; fi |
25953
d79615c0b727
(uninstall, install-arch-indep, install-arch-dep):
Richard M. Stallman <rms@gnu.org>
parents:
25915
diff
changeset
|
409 -unset CDPATH; \ |
d79615c0b727
(uninstall, install-arch-indep, install-arch-dep):
Richard M. Stallman <rms@gnu.org>
parents:
25915
diff
changeset
|
410 thisdir=`/bin/pwd`; \ |
21984
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
411 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ |
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
412 then \ |
29396
efa9ef0e8457
(install-arch-indep): Add pcl-cvs to list of info files.
Dave Love <fx@gnu.org>
parents:
29221
diff
changeset
|
413 for f in ada-mode autotype ccmode cl dired-x ediff efaq emacs eudc forms gnus idlwave info message mh-e reftex sc vip viper widget pcl-cvs; do \ |
21984
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
414 (cd $${thisdir}; \ |
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
415 ${INSTALL_INFO} --dir-file=${infodir}/dir --info-file=${infodir}/$$f); \ |
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
416 done; \ |
7daf32aabd53
(install-arch-indep): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
21809
diff
changeset
|
417 else true; fi |
24607
1ceb1e45b10d
(mkdir): If we create ${datadir}, make it world-readable.
Richard M. Stallman <rms@gnu.org>
parents:
24409
diff
changeset
|
418 -chmod -R a+r ${datadir}/emacs ${COPYDESTS} ${infodir} |
13901
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
419 thisdir=`/bin/pwd`; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
420 cd ${srcdir}/etc; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
421 for page in emacs etags ctags ; do \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
422 (cd $${thisdir}; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
423 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}; \ |
c9243845a191
(install-arch-indep): Give all files read permission.
Richard M. Stallman <rms@gnu.org>
parents:
13757
diff
changeset
|
424 chmod a+r ${man1dir}/$${page}${manext}); \ |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
425 done |
596 | 426 |
18533
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
427 ### Install LEIM files. Although they are machine-independent, we |
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
428 ### have separate target here instead of including it in |
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
429 ### `install-arch-indep'. People who extracted LEIM files after they |
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
430 ### 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
|
431 install-leim: leim/Makefile mkdir |
18620
ea924276b44b
(install-leim): Correct previous change.
Richard M. Stallman <rms@gnu.org>
parents:
18533
diff
changeset
|
432 cd leim; $(MAKE) install |
18533
d9160fd77816
(install-leim): New target.
Kenichi Handa <handa@m17n.org>
parents:
18516
diff
changeset
|
433 |
14848
831061a3e4f1
(install-strip): New target.
Richard M. Stallman <rms@gnu.org>
parents:
14813
diff
changeset
|
434 ### 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
|
435 install-strip: |
26704
b81a30ac8e52
(install-arch-indep): Depend on `info'.
Dave Love <fx@gnu.org>
parents:
26146
diff
changeset
|
436 $(MAKE) INSTALL_STRIP=-s install |
14848
831061a3e4f1
(install-strip): New target.
Richard M. Stallman <rms@gnu.org>
parents:
14813
diff
changeset
|
437 |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
438 ### 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
|
439 ### 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
|
440 ### /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
|
441 ### instead of mkdir. Not all systems' mkdir programs have the `-p' flag. |
8807
1fb0575ee03a
Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents:
8770
diff
changeset
|
442 mkdir: FRC |
24607
1ceb1e45b10d
(mkdir): If we create ${datadir}, make it world-readable.
Richard M. Stallman <rms@gnu.org>
parents:
24409
diff
changeset
|
443 if [ -d ${datadir} ]; then true; else \ |
1ceb1e45b10d
(mkdir): If we create ${datadir}, make it world-readable.
Richard M. Stallman <rms@gnu.org>
parents:
24409
diff
changeset
|
444 $(srcdir)/mkinstalldirs ${datadir}; \ |
1ceb1e45b10d
(mkdir): If we create ${datadir}, make it world-readable.
Richard M. Stallman <rms@gnu.org>
parents:
24409
diff
changeset
|
445 chmod a+r ${datadir};\ |
1ceb1e45b10d
(mkdir): If we create ${datadir}, make it world-readable.
Richard M. Stallman <rms@gnu.org>
parents:
24409
diff
changeset
|
446 fi |
19214
33bdcdd88f19
(mkdir): Don't create lockdir.
Richard M. Stallman <rms@gnu.org>
parents:
19037
diff
changeset
|
447 $(srcdir)/mkinstalldirs ${COPYDESTS} ${infodir} ${man1dir} \ |
24607
1ceb1e45b10d
(mkdir): If we create ${datadir}, make it world-readable.
Richard M. Stallman <rms@gnu.org>
parents:
24409
diff
changeset
|
448 ${bindir} ${docdir} ${libexecdir} \ |
21809
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
449 ${datadir}/emacs/site-lisp \ |
57a5d5cf9f1b
(INSTALL_INFO): New variable.
Richard M. Stallman <rms@gnu.org>
parents:
21557
diff
changeset
|
450 ${datadir}/emacs/${version}/site-lisp \ |
8163
d836abb05e48
(mkdir, removenullpaths): Put g in sed replace commands.
Richard M. Stallman <rms@gnu.org>
parents:
7704
diff
changeset
|
451 `echo ${locallisppath} | sed 's/:/ /g'` |
491 | 452 |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
453 ### Delete all the installed files that the `install' target would |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
454 ### create (but not the noninstalled files such as `make all' would |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
455 ### create). |
3786
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
456 ### |
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
457 ### 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
|
458 uninstall: |
3786
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
459 (cd lib-src; \ |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
460 $(MAKE) $(MFLAGS) uninstall \ |
3786
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
461 prefix=${prefix} exec_prefix=${exec_prefix} \ |
9457
a9a8a2326411
Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
9051
diff
changeset
|
462 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir}) |
29176
e4bac51dfe65
Ignore exit status of `unset CDPATH' everywhwere.
Gerd Moellmann <gerd@gnu.org>
parents:
28850
diff
changeset
|
463 -unset CDPATH; \ |
3786
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
464 for dir in ${lispdir} ${etcdir} ; do \ |
7405
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
465 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
|
466 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
|
467 `(cd ${srcdir} ; /bin/pwd)`* ) ;; \ |
7405
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
468 * ) rm -rf $${dir} ;; \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
469 esac ; \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
470 case $${dir} in \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
471 ${datadir}/emacs/${version}/* ) \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
472 rm -rf ${datadir}/emacs/${version} \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
473 ;; \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
474 esac ; \ |
a25ee02b41c8
(uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents:
7390
diff
changeset
|
475 fi ; \ |
3786
9f31f2f16644
* Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents:
3780
diff
changeset
|
476 done |
12479
998641b2f5d6
(uninstall, install-arch-indep): Install info/ediff*.
Richard M. Stallman <rms@gnu.org>
parents:
12375
diff
changeset
|
477 (cd ${infodir} && rm -f cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*) |
13518
9e55dae21315
(mkdir): Create man1dir, not mandir.
Richard M. Stallman <rms@gnu.org>
parents:
13280
diff
changeset
|
478 (cd ${man1dir} && rm -f emacs.1 etags.1 ctags.1) |
9815 | 479 (cd ${bindir} && rm -f emacs-${version} $(EMACS)) |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
480 |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
481 |
8807
1fb0575ee03a
Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents:
8770
diff
changeset
|
482 FRC: |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
483 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
484 # ==================== Cleaning up and miscellanea ==================== |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
485 |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
486 .PHONY: mostlyclean clean distclean maintainer-clean extraclean |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
487 |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
488 ### `mostlyclean' |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
489 ### 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
|
490 ### 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
|
491 ### 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
|
492 ### 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
|
493 mostlyclean: FRC |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
494 (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
|
495 (cd oldXMenu; $(MAKE) $(MFLAGS) mostlyclean) |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
496 (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
|
497 (cd lib-src; $(MAKE) $(MFLAGS) mostlyclean) |
7603
1ddcf94fe9c9
(mostlyclean, clean, distclean, realclean)
Richard M. Stallman <rms@gnu.org>
parents:
7584
diff
changeset
|
498 -(cd man && $(MAKE) $(MFLAGS) mostlyclean) |
18695
6928f49dd279
(mostlyclean): Add cleaning leim directory.
Kenichi Handa <handa@m17n.org>
parents:
18658
diff
changeset
|
499 (cd leim; $(MAKE) $(MFLAGS) mostlyclean) |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
500 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
501 ### `clean' |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
502 ### 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
|
503 ### 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
|
504 ### 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
|
505 ### 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
|
506 ### with them. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
507 ### |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
508 ### 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
|
509 clean: FRC |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
510 (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
|
511 (cd oldXMenu; $(MAKE) $(MFLAGS) clean) |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
512 (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
|
513 (cd lib-src; $(MAKE) $(MFLAGS) clean) |
7603
1ddcf94fe9c9
(mostlyclean, clean, distclean, realclean)
Richard M. Stallman <rms@gnu.org>
parents:
7584
diff
changeset
|
514 -(cd man && $(MAKE) $(MFLAGS) clean) |
18695
6928f49dd279
(mostlyclean): Add cleaning leim directory.
Kenichi Handa <handa@m17n.org>
parents:
18658
diff
changeset
|
515 (cd leim; $(MAKE) $(MFLAGS) clean) |
617 | 516 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
517 ### `distclean' |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
518 ### 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
|
519 ### 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
|
520 ### 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
|
521 ### `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
|
522 ### distribution. |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
523 top_distclean=\ |
12375
832d77b36f9d
(mkdir): Use symbolic chmod.
Richard M. Stallman <rms@gnu.org>
parents:
12097
diff
changeset
|
524 rm -f config.status config.cache config.log ; \ |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
525 rm -f Makefile ${SUBDIR_MAKEFILES} ; \ |
21271
6262a19fadeb
(top_distclean): Check the existence of `lock' subdir.
Kenichi Handa <handa@m17n.org>
parents:
21265
diff
changeset
|
526 if [ -d lock ] ; then (cd lock && (rm -f * || true)); else true; fi |
8807
1fb0575ee03a
Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents:
8770
diff
changeset
|
527 distclean: FRC |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
528 (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
|
529 (cd oldXMenu; $(MAKE) $(MFLAGS) distclean) |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
530 (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
|
531 (cd lib-src; $(MAKE) $(MFLAGS) distclean) |
7603
1ddcf94fe9c9
(mostlyclean, clean, distclean, realclean)
Richard M. Stallman <rms@gnu.org>
parents:
7584
diff
changeset
|
532 (cd man && $(MAKE) $(MFLAGS) distclean) |
18695
6928f49dd279
(mostlyclean): Add cleaning leim directory.
Kenichi Handa <handa@m17n.org>
parents:
18658
diff
changeset
|
533 (cd leim; $(MAKE) $(MFLAGS) distclean) |
29701
3678f877d57f
(distclean): Also make distclean in lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
29623
diff
changeset
|
534 (cd lisp; $(MAKE) $(MFLAGS) distclean) |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
535 ${top_distclean} |
617 | 536 |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
537 ### `maintainer-clean' |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
538 ### Delete everything from the current directory that can be |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
539 ### reconstructed with this Makefile. This typically includes |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
540 ### everything deleted by distclean, plus more: C source files |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
541 ### produced by Bison, tags tables, info files, and so on. |
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
542 ### |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
543 ### 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
|
544 ### `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
|
545 ### 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
|
546 ### 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
|
547 ### begin to build the program. |
10685
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
548 maintainer-clean: FRC |
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
549 (cd src; $(MAKE) $(MFLAGS) maintainer-clean) |
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
550 (cd oldXMenu; $(MAKE) $(MFLAGS) maintainer-clean) |
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
551 (cd lwlib; $(MAKE) $(MFLAGS) maintainer-clean) |
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
552 (cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean) |
71fa5c477213
(maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents:
10064
diff
changeset
|
553 -(cd man && $(MAKE) $(MFLAGS) maintainer-clean) |
18695
6928f49dd279
(mostlyclean): Add cleaning leim directory.
Kenichi Handa <handa@m17n.org>
parents:
18658
diff
changeset
|
554 (cd leim; $(MAKE) $(MFLAGS) maintainer-clean) |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
555 ${top_distclean} |
617 | 556 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
557 ### 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
|
558 ### 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
|
559 ### 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
|
560 ### 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
|
561 extraclean: |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
562 for i in ${SUBDIR}; 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
|
563 ${top_distclean} |
74660e3d9659
(extraclean): Use ${top_distclean} to ensure
Richard M. Stallman <rms@gnu.org>
parents:
14143
diff
changeset
|
564 -rm config-tmp-* |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
565 -rm -f *~ \#* |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
566 |
2261
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
567 ### Unlocking and relocking. The idea of these productions is to reduce |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
568 ### hassles when installing an incremental tar of Emacs. Do `make unlock' |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
569 ### before unlocking the file to take the write locks off all sources so |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
570 ### that tar xvof will overwrite them without fuss. Then do `make relock' |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
571 ### afterward so that VC mode will know which files should be checked in |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
572 ### if you want to mung them. |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
573 ### |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
574 ### Note: it's no disaster if these productions miss a file or two; tar |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
575 ### and VC will swiftly let you know if this happens, and it is easily |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
576 ### corrected. |
21090
9de926193693
(SOURCES): Delete PROBLEMS.
Richard M. Stallman <rms@gnu.org>
parents:
20975
diff
changeset
|
577 SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in \ |
9506
2341ee469132
(top_distclean): Don't rm build-install.
Richard M. Stallman <rms@gnu.org>
parents:
9497
diff
changeset
|
578 README configure make-dist move-if-change |
2261
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
579 |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
580 .PHONY: unlock relock |
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
581 |
2261
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
582 unlock: |
20415
2231e5768185
(unlock, relock): Don't reference cpp/ directory.
Karl Heuer <kwzh@gnu.org>
parents:
20214
diff
changeset
|
583 chmod u+w $(SOURCES) |
2261
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
584 -(cd elisp; chmod u+w Makefile README *.texi) |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
585 (cd etc; $(MAKE) $(MFLAGS) unlock) |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
586 (cd lib-src; $(MAKE) $(MFLAGS) unlock) |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
587 (cd lisp; $(MAKE) $(MFLAGS) unlock) |
2261
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
588 (cd lisp/term; chmod u+w README *.el) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
589 (cd man; chmod u+w *texi* ChangeLog split-man) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
590 (cd oldXMenu; chmod u+w *.[ch] Makefile README) |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
591 (cd lwlib; chmod u+w *.[ch] Makefile README) |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
592 (cd src; $(MAKE) $(MFLAGS) unlock) |
2261
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
593 |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
594 relock: |
20415
2231e5768185
(unlock, relock): Don't reference cpp/ directory.
Karl Heuer <kwzh@gnu.org>
parents:
20214
diff
changeset
|
595 chmod u-w $(SOURCES) |
2261
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
596 -(cd elisp; chmod u-w Makefile README *.texi) |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
597 (cd etc; $(MAKE) $(MFLAGS) relock) |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
598 (cd lib-src; $(MAKE) $(MFLAGS) relock) |
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
599 (cd lisp; $(MAKE) $(MFLAGS) relock) |
2261
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
600 (cd lisp/term; chmod u+w README *.el) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
601 (cd man; chmod u+w *texi* ChangeLog split-man) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
602 (cd oldXMenu; chmod u+w *.[ch] Makefile README) |
5630
374b344ce3b6
(lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
5599
diff
changeset
|
603 (cd lwlib; chmod u+w *.[ch] Makefile README) |
4793
0a1aaeea3623
(src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents:
4748
diff
changeset
|
604 (cd src; $(MAKE) $(MFLAGS) relock) |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
605 |
19623
390656cf7e41
(man/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents:
19534
diff
changeset
|
606 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
|
607 # The src subdir knows how to do the right thing |
6bf6679152c5
(TAGS tags): Simply refer this to the src subdir.
Richard M. Stallman <rms@gnu.org>
parents:
19640
diff
changeset
|
608 # even when the build directory and source dir are different. |
6bf6679152c5
(TAGS tags): Simply refer this to the src subdir.
Richard M. Stallman <rms@gnu.org>
parents:
19640
diff
changeset
|
609 cd src; $(MAKE) tags |
617 | 610 |
611 check: | |
612 @echo "We don't have any tests for GNU Emacs yet." | |
621 | 613 |
614 dist: | |
27529 | 615 cd ${srcdir}; ./make-dist |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
616 |
28850
1fdfc579d0bd
(install-arch-indep): Filter CVS as well as RCS.
Dave Love <fx@gnu.org>
parents:
28605
diff
changeset
|
617 .PHONY: info dvi dist check html |
5321
69d64181891b
(mkdir): Make only the lockdir writable.
Richard M. Stallman <rms@gnu.org>
parents:
5200
diff
changeset
|
618 force-info: |
69d64181891b
(mkdir): Make only the lockdir writable.
Richard M. Stallman <rms@gnu.org>
parents:
5200
diff
changeset
|
619 info: force-info |
21318
dd41afae56a4
(info): Run man in build dir, not srcdir.
Richard M. Stallman <rms@gnu.org>
parents:
21311
diff
changeset
|
620 # Note that man/Makefile knows how to |
dd41afae56a4
(info): Run man in build dir, not srcdir.
Richard M. Stallman <rms@gnu.org>
parents:
21311
diff
changeset
|
621 # put the info files in $(srcdir), |
dd41afae56a4
(info): Run man in build dir, not srcdir.
Richard M. Stallman <rms@gnu.org>
parents:
21311
diff
changeset
|
622 # so we can do ok running make in the build dir. |
dd41afae56a4
(info): Run man in build dir, not srcdir.
Richard M. Stallman <rms@gnu.org>
parents:
21311
diff
changeset
|
623 (cd man; $(MAKE) $(MFLAGS) info) |
3780
20b847f36ade
* Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents:
3749
diff
changeset
|
624 dvi: |
10064
9d103084f33b
(dvi): Run Make in our man subdir.
Richard M. Stallman <rms@gnu.org>
parents:
9866
diff
changeset
|
625 (cd man; $(MAKE) $(MFLAGS) dvi) |
26146 | 626 |
627 #### Bootstrapping. | |
628 | |
629 ### This is meant for Emacs maintainers only. It first cleans the | |
630 ### lisp subdirectory, removing all compiled Lisp files. Then a | |
631 ### special emacs executable is built from Lisp sources, which is then | |
632 ### used to compile Lisp files. The last step is a "normal" make. | |
633 | |
28319
47ca83e58412
(bootstrap-lisp-1, bootstrap-list, bootstrap-src):
Gerd Moellmann <gerd@gnu.org>
parents:
27761
diff
changeset
|
634 bootstrap: clean bootstrap-lisp-1 bootstrap-src bootstrap-lisp clean all info |
47ca83e58412
(bootstrap-lisp-1, bootstrap-list, bootstrap-src):
Gerd Moellmann <gerd@gnu.org>
parents:
27761
diff
changeset
|
635 |
47ca83e58412
(bootstrap-lisp-1, bootstrap-list, bootstrap-src):
Gerd Moellmann <gerd@gnu.org>
parents:
27761
diff
changeset
|
636 bootstrap-lisp-1: |
26146 | 637 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean) |
28319
47ca83e58412
(bootstrap-lisp-1, bootstrap-list, bootstrap-src):
Gerd Moellmann <gerd@gnu.org>
parents:
27761
diff
changeset
|
638 |
47ca83e58412
(bootstrap-lisp-1, bootstrap-list, bootstrap-src):
Gerd Moellmann <gerd@gnu.org>
parents:
27761
diff
changeset
|
639 bootstrap-lisp: |
26146 | 640 -(cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs) |
641 | |
28319
47ca83e58412
(bootstrap-lisp-1, bootstrap-list, bootstrap-src):
Gerd Moellmann <gerd@gnu.org>
parents:
27761
diff
changeset
|
642 bootstrap-src: |
47ca83e58412
(bootstrap-lisp-1, bootstrap-list, bootstrap-src):
Gerd Moellmann <gerd@gnu.org>
parents:
27761
diff
changeset
|
643 (cd src; $(MAKE) $(MFLAGS) bootstrap) |