Mercurial > emacs
annotate Makefile.in @ 2641:6c044c8796dd
* m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/mips.h,
m/sps7.h, s/hpux.h, s/usg5-4.h (HAVE_DUP2): Removed; derived by
configure script.
* s/hpux.h, s/irix3-3.h, s/aix3-1.h (HAVE_GETHOSTNAME): Removed;
derived by configure script.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 04 May 1993 00:26:07 +0000 |
parents | b951532eca82 |
children | c64e97b1685b |
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. | |
7 # make install.sysv to install on system V. Note that on system V you | |
8 # must change mandir to /usr/local/man/man1. | |
9 # make install.xenix to install on Xenix. | |
596 | 10 # make install.aix to install on AIX. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
11 # 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
|
12 # |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
13 # make clean or make mostlyclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
14 # 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
|
15 # 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
|
16 # 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
|
17 # 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
|
18 # with them. |
491 | 19 # |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
20 # 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
|
21 # |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
22 # make distclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
23 # 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
|
24 # 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
|
25 # 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
|
26 # `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
|
27 # distribution. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
28 # |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
29 # make realclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
30 # 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
|
31 # 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
|
32 # 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
|
33 # 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
|
34 # |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
35 # make extraclean |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
36 # Still more severe - delete backup and autosave files, too. |
491 | 37 |
38 SHELL = /bin/sh | |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
39 MAKE = make # BSD doesn't have it as a default. |
491 | 40 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
41 # ==================== Things `configure' Might Edit ==================== |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
42 |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
43 CC=@CC@ |
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
44 DEFS=@DEFS@ |
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
45 C_SWITCH_SYSTEM=@c_switch_system@ |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
46 ALLOCA=@ALLOCA@ |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
47 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
48 ### 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
|
49 ### to install files in. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
50 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
51 ### 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
|
52 ### like `18.59' or `19.0'. |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
53 version=@version@ |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
54 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
55 ### 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
|
56 ### 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
|
57 configuration=@configuration@ |
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
58 |
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
59 ### Libraries which should be edited into lib-src/Makefile. |
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
60 libsrc_libs=@libsrc_libs@ |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
61 |
617 | 62 # ==================== Where To Install Things ==================== |
63 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
64 # 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
|
65 # 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
|
66 # the variables below are expressed in terms of this one, so you may |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
67 # not need to change them. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
68 prefix=/usr/local |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
69 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
70 # Like `prefix', but used for architecture-specific files. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
71 exec_prefix=${prefix} |
617 | 72 |
73 # Where to install Emacs and other binaries that people will want to | |
74 # run directly (like etags). | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
75 bindir=${exec_prefix}/bin |
491 | 76 |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
77 # 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
|
78 # and ${etcdir} are subdirectories of this. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
79 datadir=${prefix}/lib |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
80 |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
81 # Where to install and expect the files that Emacs modifies as it |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
82 # runs. These files are all architecture-independent. Right now, the |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
83 # only such data is the locking directory; ${lockdir} is a |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
84 # subdirectory of this. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
85 statedir=${prefix}/lib |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
86 |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
87 # 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
|
88 # 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
|
89 # data. ${archlibdir} is a subdirectory of this. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
90 libdir=${exec_prefix}/lib |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
91 |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
92 # Where to install Emacs's man pages, and what extension they should have. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
93 mandir=${prefix}/man/man1 |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
94 manext=.1 |
617 | 95 |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
96 # 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
|
97 # 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
|
98 # 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
|
99 # system, it is inappropriate to imply that it is part of Emacs. |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
100 infodir=${prefix}/info |
491 | 101 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
102 # Where to find the source code - setting this to anything but |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
103 # . doesn't work yet. The source code for Emacs's C kernel is |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
104 # 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
|
105 # 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
|
106 # set by the configure script's `--srcdir' option. |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
107 srcdir=@srcdir@ |
1647
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
108 |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
109 # ==================== Emacs-specific directories ==================== |
bd3afc204773
Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents:
1111
diff
changeset
|
110 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
111 # 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
|
112 # 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
|
113 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
114 @inst_paths@# Where to install the lisp files distributed with |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
115 @inst_paths@# Emacs. This includes the Emacs version, so that the |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
116 @inst_paths@# lisp files for different versions of Emacs will install |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
117 @inst_paths@# themselves in separate directories. |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
118 @inst_paths@lispdir=${datadir}/emacs/${version}/lisp |
617 | 119 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
120 @inst_paths@# Where to install the lisp files which are distributed |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
121 @inst_paths@# with Emacs but not maintained by the FSF. This |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
122 @inst_paths@# includes the Emacs version, so that the lisp files for |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
123 @inst_paths@# different versions of Emacs will install themselves in |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
124 @inst_paths@# separate directories. |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
125 @inst_paths@externallispdir=${datadir}/emacs/${version}/external-lisp |
1899
fb1b9a269763
* Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents:
1860
diff
changeset
|
126 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
127 @inst_paths@# Directories Emacs should search for lisp files specific |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
128 @inst_paths@# to this site (i.e. customizations), before consulting |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
129 @inst_paths@# ${lispdir}. This should be a colon-separated list of |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
130 @inst_paths@# directories. |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
131 @inst_paths@locallisppath=${datadir}/emacs/site-lisp |
491 | 132 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
133 # 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
|
134 # 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
|
135 # better be served by changing locallisppath. This |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
136 # should be a colon-separated list of directories. |
1940
0fe3520eb87b
* Makefile.in (lisppath): Don't include externallispdir in this.
Jim Blandy <jimb@redhat.com>
parents:
1899
diff
changeset
|
137 lisppath=${locallisppath}:${lispdir} |
491 | 138 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
139 # 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
|
140 # 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
|
141 # 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
|
142 # before they've been installed in their final location. |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
143 # It's usually identical to lisppath, except that the |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
144 # 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
|
145 # 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
|
146 # colon-separated list of directories. |
621 | 147 buildlisppath=../lisp |
491 | 148 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
149 @inst_paths@# Where to install the other architecture-independent |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
150 @inst_paths@# data files distributed with Emacs (like the tutorial, |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
151 @inst_paths@# the cookie recipes and the Zippy database). This path |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
152 @inst_paths@# usually contains the Emacs version number, so the data |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
153 @inst_paths@# files for multiple versions of Emacs may be installed |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
154 @inst_paths@# at once. |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
155 @inst_paths@etcdir=${datadir}/emacs/${version}/etc |
617 | 156 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
157 @inst_paths@# Where to create and expect the locking directory, where |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
158 @inst_paths@# the Emacs locking code keeps track of which files are |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
159 @inst_paths@# currently being edited. |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
160 @inst_paths@lockdir=${statedir}/emacs/lock |
491 | 161 |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
162 @inst_paths@# Where to put executables to be run by Emacs rather than |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
163 @inst_paths@# the user. This path usually includes the Emacs version |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
164 @inst_paths@# and configuration name, so that multiple configurations |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
165 @inst_paths@# for multiple versions of Emacs may be installed at |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
166 @inst_paths@# once. |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
167 @inst_paths@archlibdir=${libdir}/emacs/${version}/${configuration} |
491 | 168 |
2225
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
169 # ====================== Developer's configuration ======================= |
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
170 |
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
171 # The following assignments make sense if you're running Emacs on a single |
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
172 # machine, one version at a time, and you want changes to the lisp and etc |
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
173 # directories in the source tree to show up immediately in your working |
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
174 # environment. It saves a great deal of disk space by not duplicating the |
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
175 # lisp and etc directories. |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
176 |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
177 @rip_paths@lispdir=${srcdir}/lisp |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
178 @rip_paths@externallispdir=${srcdir}/externallisp |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
179 @rip_paths@locallisppath=${datadir}/emacs/site-lisp |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
180 @rip_paths@etcdir=${srcdir}/etc |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
181 @rip_paths@lockdir=${srcdir}/lock |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
182 @rip_paths@archlibdir=${srcdir}/lib-src |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
183 @rip_paths@infodir=${srcdir}/info |
2225
19e1e3cb7415
Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2099
diff
changeset
|
184 |
617 | 185 # ==================== Utility Programs for the Build ==================== |
186 | |
187 # Allow the user to specify the install program. | |
188 INSTALL = install | |
189 INSTALLFLAGS = -c | |
190 INSTALL_PROGRAM = ${INSTALL} | |
191 INSTALL_DATA = ${INSTALL} | |
192 | |
193 # ============================= Targets ============================== | |
491 | 194 |
195 # Flags passed down to subdirectory makefiles. | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
196 MFLAGS = |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
197 |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
198 CFLAGS=${DEFS} |
491 | 199 |
200 # Subdirectories to make recursively. `lisp' is not included | |
201 # because the compiled lisp files are part of the distribution | |
202 # and you cannot remake them without installing Emacs first. | |
617 | 203 SUBDIR = lib-src src |
491 | 204 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
205 # The makefiles of the directories in $SUBDIR. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
206 SUBDIR_MAKEFILES = lib-src/Makefile src/Makefile |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
207 |
1860
f7565191703b
* Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents:
1821
diff
changeset
|
208 # 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
|
209 # lib-src's makefile knows how to install it, 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
|
210 # 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
|
211 # 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
|
212 # instead, we have written out explicit code in the `install' targets. |
1899
fb1b9a269763
* Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents:
1860
diff
changeset
|
213 COPYDIR = etc ${srcdir}/lisp ${srcdir}/external-lisp |
fb1b9a269763
* Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents:
1860
diff
changeset
|
214 COPYDESTS = ${etcdir} ${lispdir} ${externallispdir} |
491 | 215 |
216 all: src/paths.h ${SUBDIR} | |
217 | |
617 | 218 removenullpaths=sed -e 's/^://' -e 's/:$$//' -e 's/::/:/' |
219 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
220 # We force the rebuilding of src/paths.h because the user might give |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
221 # make different values for the various directories. Since we use |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
222 # move-if-change, src/paths.h only actually changes if the user did |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
223 # something notable, so the only unnecessary work we do is in building |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
224 # src/paths.h.tmp, which isn't much. |
1035 | 225 # Note that sed is not in /bin on 386bsd. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
226 src/paths.h: Makefile ${srcdir}/src/paths.h.in 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
|
227 @echo "Producing \`src/paths.h' from \`src/paths.h.in'." |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
228 @(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
|
229 buildlisppath=`echo ${buildlisppath} | ${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
|
230 sed < ${srcdir}/src/paths.h.in > src/paths.h.tmp \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
231 -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
|
232 -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
|
233 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
234 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
235 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
236 @${srcdir}/move-if-change src/paths.h.tmp src/paths.h |
491 | 237 |
238 src: lib-src | |
239 | |
240 .RECURSIVE: ${SUBDIR} | |
241 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
242 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
243 cd $@; $(MAKE) all ${MFLAGS} \ |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
244 CC='${CC}' DEFS='${DEFS}' \ |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
245 srcdir='${srcdir}/$@' libdir='${libdir}' |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
246 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
247 ## We build the makefiles for the subdirectories here so that we can |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
248 ## edit the values for the path variables into them. This means that |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
249 ## when the user has built them from this makefile once, they will use |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
250 ## the right default values for the path variables. |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
251 lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
252 rm -f lib-src/Makefile.tmp |
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
|
253 @echo "Producing \`lib-src/Makefile' from \`${srcdir}/lib-src/Makefile.in'." |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
254 @(echo "# This file is generated from \`${srcdir}/lib-src/Makefile.in'." ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
255 echo "# If you are thinking about editing it, you should seriously consider" ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
256 echo "# running \`make lib-src/Makefile' at the top of the" ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
257 echo "# Emacs build tree instead, or editing" ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
258 echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
259 /bin/sed < ${srcdir}/lib-src/Makefile.in \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
260 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \ |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
261 -e 's|^\(configname *=\).*$$|\1'"${configuration}"'|' \ |
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
|
262 -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
263 -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
264 -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
265 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
266 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
267 -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \ |
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
|
268 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
269 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \ |
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
|
270 -e 's|^C_SWITCH_SYSTEM *=.*$$|C_SWITCH_SYSTEM='"${C_SWITCH_SYSTEM}"'|' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
271 -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
272 -e '/^# DIST: /d') > lib-src/Makefile.tmp |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
273 @${srcdir}/move-if-change lib-src/Makefile.tmp lib-src/Makefile |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
274 chmod -w lib-src/Makefile |
491 | 275 |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
276 src/Makefile: ${srcdir}/src/Makefile.in Makefile |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
277 rm -f src/Makefile.tmp |
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
|
278 @echo "Producing \`src/Makefile' from \`${srcdir}/src/Makefile.in'." |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
279 @(echo "# This file is generated from \`${srcdir}/src/Makefile.in'." ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
280 echo "# If you are thinking about editing it, you should seriously consider" ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
281 echo "# running \`make src/Makefile' at the top of the" ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
282 echo "# Emacs build tree instead, or editing" ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
283 echo "# \`${srcdir}/src/Makefile.in' itself." ; \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
284 /bin/sed < ${srcdir}/src/Makefile.in \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
285 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ |
094bec4c13e9
lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents:
2361
diff
changeset
|
286 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
287 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \ |
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
|
288 -e '/^# DIST: /d') > src/Makefile.tmp |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
289 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
290 chmod -w src/Makefile |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
291 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
292 oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile Makefile |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
293 echo "Producing \`src/Makefile' from \`${srcdir}/src/Makefile.in'." |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
294 rm -f src/Makefile.tmp |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
295 cp "${srcdir}"/oldXMenu/Makefile oldXMenu/Makefile |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
296 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
297 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
298 Makefile: |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
299 ./config.status |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
300 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
301 # ==================== Installation ==================== |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
302 |
1821
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1767
diff
changeset
|
303 ## 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
|
304 ## 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
|
305 ## this Makefile as well. |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
306 |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
307 ## 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
|
308 ## 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
|
309 ## 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
|
310 ## 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
|
311 ## source exists and is distinct from the destination. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
312 install: all mkdir |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
313 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir}) |
617 | 314 -set ${COPYDESTS} ; \ |
315 for dir in ${COPYDIR} ; do \ | |
316 dest=$$1 ; shift ; \ | |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
317 [ -d $${dir} ] \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
318 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
319 && (echo "Copying $${dir}..." ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
320 rm -rf $${dest} ; mkdir $${dest} ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
321 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xf - ); \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
322 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
323 rm -rf $${subdir}/RCS ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
324 rm -rf $${subdir}/CVS ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
325 rm -f $${subdir}/\#* ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
326 rm -f $${subdir}/*~ ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
327 done) ; \ |
617 | 328 done |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
329 -(cd info ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
330 if [ ! -f ${infodir}/dir ]; then \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
331 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 ./dir ${infodir}/dir ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
332 fi ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
333 if [ "`echo *.info*`" != "*.info*" ]; then \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
334 for f in *.info* ; do \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
335 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $$f ${infodir}/$$f ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
336 done ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
337 fi) |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
338 for page in emacs etags ctags ; do \ |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
339 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 etc/$${page}.1 \ |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
340 ${mandir}/$${page}${manext} ; \ |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
341 done |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
342 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -m 1755 src/emacs \ |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
343 ${bindir}/emacs-${version} |
617 | 344 -rm -f ${bindir}/emacs |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
345 ln ${bindir}/emacs-${version} ${bindir}/emacs |
491 | 346 |
1821
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1767
diff
changeset
|
347 ## 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
|
348 ## 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
|
349 ## this Makefile as well. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
350 install.sysv: all mkdir |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
351 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir}) |
617 | 352 -set ${COPYDESTS} ; \ |
353 for dir in ${COPYDIR} ; do \ | |
354 dest=$$1 ; shift ; \ | |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
355 [ -d $${dir} ] \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
356 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
357 && (rm -rf $${dest} ; mkdir $${dest} ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
358 (cd $${dir}; find . -print | cpio -pdum $${dest} ) ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
359 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
360 rm -rf $${subdir}/RCS ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
361 rm -rf $${subdir}/CVS ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
362 rm -f $${subdir}/\#* ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
363 rm -f $${subdir}/*~ ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
364 done) ; \ |
617 | 365 done |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
366 -(cd info ; \ |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
367 if [ ! -f ${infodir}/dir ]; then \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
368 cpset ./dir ${infodir} 444 bin bin ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
369 fi ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
370 if [ "`echo *.info*`" != "*.info*" ]; then \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
371 for f in *.info* ; do \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
372 cpset $$f ${infodir} 444 bin bin ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
373 done ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
374 fi) |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
375 -for page in emacs etags ctags ; do \ |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
376 cpset etc/$${page}.1 ${mandir}/$${page}${manext} 444 bin bin ; \ |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
377 done |
617 | 378 -/bin/rm -f ${bindir}/emacs |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
379 -cpset src/emacs ${bindir}/emacs-${version} 1755 bin bin |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
380 -ln ${bindir}/emacs-${version} ${bindir}/emacs |
491 | 381 |
1821
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1767
diff
changeset
|
382 ## 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
|
383 ## 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
|
384 ## this Makefile as well. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
385 install.xenix: all mkdir |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
386 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir}) |
617 | 387 -set ${COPYDESTS} ; \ |
388 for dir in ${COPYDIR} ; do \ | |
389 dest=$$1 ; shift ; \ | |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
390 [ -d $${dir} ] \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
391 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
392 && (rm -rf $${dest} ; mkdir $${dest} ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
393 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xpf - );\ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
394 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
395 rm -rf $${subdir}/RCS ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
396 rm -rf $${subdir}/CVS ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
397 rm -f $${subdir}/\#* ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
398 rm -f $${subdir}/*~ ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
399 done) ; \ |
617 | 400 done |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
401 -(cd info ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
402 if [ ! -f ${infodir}/dir ]; then \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
403 cp ./dir ${infodir} ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
404 chmod 444 ${infodir}/dir ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
405 fi ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
406 if [ "`echo *.info*`" != "*.info*" ]; then \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
407 for f in *.info* ; do \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
408 cp $$f ${infodir} ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
409 chmod 444 ${infodir}/$$f ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
410 done ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
411 fi) |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
412 for page in emacs etags ctags ; do \ |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
413 cp etc/$${page}.1 ${mandir}/$${page}${manext} ; \ |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
414 chmod 444 ${mandir}/$${page}${manext} ; \ |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
415 done |
617 | 416 -mv -f ${bindir}/emacs ${bindir}/emacs.old |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
417 cp src/emacs ${bindir}/emacs-${version} |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
418 ln ${bindir}/emacs-${version} ${bindir}/emacs |
617 | 419 chmod 1755 ${bindir}/emacs |
420 -rm -f ${bindir}/emacs.old | |
491 | 421 |
1821
04fb1d3d6992
JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents:
1767
diff
changeset
|
422 ## 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
|
423 ## 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
|
424 ## this Makefile as well. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
425 install.aix: all mkdir |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
426 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir}) |
617 | 427 -set ${COPYDESTS} ; \ |
428 for dir in ${COPYDIR} ; do \ | |
429 dest=$$1 ; shift ; \ | |
2623
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
430 [ -d $${dir} ] \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
431 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
432 && (rm -rf $${dest} ; mkdir $${dest} ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
433 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xBf - );\ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
434 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
435 rm -rf $${subdir}/RCS ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
436 rm -rf $${subdir}/CVS ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
437 rm -f $${subdir}/\#* ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
438 rm -f $${subdir}/*~ ; \ |
b951532eca82
* configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents:
2498
diff
changeset
|
439 done) ; \ |
617 | 440 done |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
441 -(cd info ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
442 if [ ! -f ${infodir}/dir ]; then \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
443 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${infodir} ./dir ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
444 fi ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
445 if [ "`echo *.info*`" != "*.info*" ]; then \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
446 for f in *.info* ; do \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
447 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${infodir} $$f ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
448 done ; \ |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
449 fi) |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
450 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -M 1755 -f ${bindir} src/emacs |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
451 mv ${bindir}/emacs ${bindir}/emacs-${version} |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
452 for page in emacs etags ctags ; do \ |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
453 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${mandir} etc/$${page}.1 ;\ |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
454 done |
617 | 455 -rm -f ${bindir}/emacs |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
456 ln ${bindir}/emacs-${version} ${bindir}/emacs |
596 | 457 |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
458 ### 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
|
459 ### we may be creating several layers of directories (for example, |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
460 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
461 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag. |
491 | 462 mkdir: FRC |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
463 ./lib-src/make-path ${COPYDESTS} ${lockdir} |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
464 chmod 777 ${COPYDESTS} ${lockdir} |
491 | 465 |
466 FRC: | |
467 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
468 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
469 # ==================== Cleaning up and miscellanea ==================== |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
470 |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
471 ### `clean' |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
472 ### Delete all files from the current directory that are normally |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
473 ### created by building the program. Don't delete the files that |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
474 ### record the configuration. Also preserve files that could be made |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
475 ### by building, but normally aren't because the distribution comes |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
476 ### with them. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
477 ### `mostlyclean' |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
478 ### Like `clean', but may refrain from deleting a few files that |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
479 ### people normally don't want to recompile. For example, the |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
480 ### `mostlyclean' target for GCC does not delete `libgcc.a', because |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
481 ### recompiling it is rarely necessary and takes a lot of time. |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
482 ### |
617 | 483 clean mostlyclean: |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
484 cd src; $(MAKE) clean |
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
485 cd lib-src; $(MAKE) clean |
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
486 cd oldXMenu; $(MAKE) clean |
2498
0126ca788e99
* Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents:
2430
diff
changeset
|
487 if [ `(cd ${etcdir} ; /bin/pwd)` != `(cd etc; /bin/pwd)` ] ; then \ |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
488 cd etc; $(MAKE) clean; \ |
617 | 489 else true; \ |
490 fi | |
491 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
492 ### `distclean' |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
493 ### Delete all files from the current directory that are created by |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
494 ### configuring or building the program. This should leave only the |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
495 ### files that would be in the distribution. |
617 | 496 distclean: |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
497 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} distclean); done |
617 | 498 -(cd lock; rm *) |
499 -rm config.status config-tmp-* | |
500 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
501 ### `realclean' |
1698
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
502 ### Delete everything from the current directory that can be |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
503 ### reconstructed with this makefile. This typically includes |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
504 ### everything deleted by distclean, plus more: C source files |
e0acfb7b804d
* INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents:
1686
diff
changeset
|
505 ### produced by Bison, tags tables, info files, and so on. |
617 | 506 realclean: |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
507 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} realclean); done |
617 | 508 (cd lock; rm *) |
509 rm config.status | |
510 | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
511 ### 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
|
512 ### 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
|
513 ### 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
|
514 ### 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
|
515 extraclean: |
1767
6e2fb470af5f
Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents:
1698
diff
changeset
|
516 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} extraclean); done |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
517 -(cd lock; rm *) |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
518 -rm config.status config-tmp-* |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
519 -rm -f *~ \#* |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
520 |
2261
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
521 ### 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
|
522 ### 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
|
523 ### 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
|
524 ### 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
|
525 ### 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
|
526 ### if you want to mung them. |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
527 ### |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
528 ### 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
|
529 ### 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
|
530 ### corrected. |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
531 SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in PROBLEMS \ |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
532 README build-install.in configure make-dist move-if-change |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
533 |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
534 unlock: |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
535 chmod u+w $(SOURCES) cpp/* |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
536 -(cd elisp; chmod u+w Makefile README *.texi) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
537 (cd etc; make unlock) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
538 (cd lib-src; make unlock) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
539 (cd lisp; make unlock) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
540 (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
|
541 (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
|
542 (cd oldXMenu; chmod u+w *.[ch] Makefile README) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
543 (cd src; make unlock) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
544 |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
545 relock: |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
546 chmod u-w $(SOURCES) cpp/* |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
547 -(cd elisp; chmod u-w Makefile README *.texi) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
548 (cd etc; make relock) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
549 (cd lib-src; make relock) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
550 (cd lisp; make relock) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
551 (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
|
552 (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
|
553 (cd oldXMenu; chmod u+w *.[ch] Makefile README) |
17cbbc48a154
Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2225
diff
changeset
|
554 (cd src; make relock) |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
555 |
617 | 556 TAGS tags: lib-src |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
557 (cd ${srcdir} ; lib-src/etags --output=./src/TAGS \ |
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
558 src/*.[ch] lisp/*.el lisp/term/*.el) |
617 | 559 |
560 check: | |
561 @echo "We don't have any tests for GNU Emacs yet." | |
621 | 562 |
563 dist: | |
1686
10650dfc82d0
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents:
1647
diff
changeset
|
564 cd ${srcdir}; make-dist |