annotate Makefile.in @ 2456:39a58fdf2dee

Initial revision
author Eric S. Raymond <esr@snark.thyrsus.com>
date Sat, 03 Apr 1993 23:28:03 +0000
parents 094bec4c13e9
children 0126ca788e99
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
1 # DIST: This is the distribution Makefile for Emacs. configure can
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
2 # DIST: make most of the changes to this file you might want, so try
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
3 # DIST: that first.
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
5 # make all to compile and build Emacs.
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
6 # make install to install it.
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
7 # make install.sysv to install on system V. Note that on system V you
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
8 # must change mandir to /usr/local/man/man1.
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
9 # make install.xenix to install on Xenix.
596
d02d6c2f7f80 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 550
diff changeset
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
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
37
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
43 CC=cc
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
44 CONFIG_CFLAGS=-g
2361
b1c74a8a020b Arrange for C compilation throughout the tree to get
Jim Blandy <jimb@redhat.com>
parents: 2261
diff changeset
45 C_SWITCH_SYSTEM=
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
46
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
47 ### 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
48 ### to install files in.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
49
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
50 ### 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
51 ### like `18.59' or `19.0'.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
52 version=version-not-set
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
53
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
54 ### 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
55 ### for, like `mips-dec-ultrix' or `sparc-sun-sunos'.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
56 configname=configuration-name-not-set
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
57
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
58 # ==================== Where To Install Things ====================
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
59
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
60 # 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
61 # 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
62 # 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
63 # not need to change them.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
64 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
65
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
66 # 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
67 exec_prefix=${prefix}
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
68
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
69 # Where to install Emacs and other binaries that people will want to
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
70 # run directly (like etags).
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
71 bindir=${exec_prefix}/bin
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
72
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
73 # 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
74 # 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
75 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
76
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
77 # 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
78 # 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
79 # 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
80 # subdirectory of this.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
81 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
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 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
84 # 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
85 # 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
86 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
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 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
89 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
90 manext=.1
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
91
1647
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 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
93 # 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
94 # 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
95 # 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
96 infodir=${prefix}/info
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
97
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
98 # 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
99 # . 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
100 # 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
101 # 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
102 # set by the configure script's `--srcdir' option.
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
103 srcdir=.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
104
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
105 # ==================== Emacs-specific directories ====================
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
106
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
107 # 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
108 # 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
109
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
110 # Where to install the lisp files distributed with Emacs. This
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
111 # includes the Emacs version, so that the lisp files for different
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
112 # versions of Emacs will install themselves in separate directories.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
113 lispdir=${datadir}/emacs/${version}/lisp
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
114
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
115 # Where to install the lisp files which are distributed with Emacs
1899
fb1b9a269763 * Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents: 1860
diff changeset
116 # but not maintained by the FSF. This includes the Emacs version, so
fb1b9a269763 * Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents: 1860
diff changeset
117 # that the lisp files for different versions of Emacs will install
fb1b9a269763 * Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents: 1860
diff changeset
118 # themselves in separate directories.
fb1b9a269763 * Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents: 1860
diff changeset
119 externallispdir=${datadir}/emacs/${version}/external-lisp
fb1b9a269763 * Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents: 1860
diff changeset
120
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
121 # Directories Emacs should search for lisp files specific to this
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
122 # site (i.e. customizations), before consulting ${lispdir}. This
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
123 # should be a colon-separated list of directories.
1899
fb1b9a269763 * Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents: 1860
diff changeset
124 locallisppath=${datadir}/emacs/site-lisp
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
125
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
126 # Where Emacs will search to find its lisp files. Before changing
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
127 # this, check to see if your purpose wouldn't better be served by
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
128 # changing locallisppath. This should be a colon-separated list of
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
129 # directories.
1940
0fe3520eb87b * Makefile.in (lisppath): Don't include externallispdir in this.
Jim Blandy <jimb@redhat.com>
parents: 1899
diff changeset
130 lisppath=${locallisppath}:${lispdir}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
131
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
132 # Where Emacs will search for its lisp files while building. This is
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
133 # only used during the process of compiling Emacs, to help Emacs find
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
134 # its lisp files before they've been installed in their final
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
135 # location. It's usually identical to lisppath, except that the entry
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
136 # for the directory containing the installed lisp files has been
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
137 # replaced with ../lisp. This should be a colon-separated list of
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
138 # directories.
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
139 buildlisppath=../lisp
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
140
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
141 # Where to install the other architecture-independent data files
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
142 # distributed with Emacs (like the tutorial, the cookie recipes and
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
143 # the Zippy database). This path usually contains the Emacs version
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
144 # number, so the data files for multiple versions of Emacs may be
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
145 # installed at once.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
146 etcdir=${datadir}/emacs/${version}/etc
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
147
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
148 # Where to create and expect the locking directory, where the Emacs
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
149 # locking code keeps track of which files are currently being edited.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
150 lockdir=${statedir}/emacs/lock
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
151
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
152 # Where to put executables to be run by Emacs rather than the user.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
153 # This path usually includes the Emacs version and configuration name,
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
154 # so that multiple configurations for multiple versions of Emacs may
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
155 # be installed at once.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
156 archlibdir=${libdir}/emacs/${version}/${configname}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
157
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
158 # ====================== Developer's configuration =======================
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
159
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
160 # 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
161 # 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
162 # 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
163 # 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
164 # lisp and etc directories.
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
165 #
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
166 # lispdir=${srcdir}/lisp
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
167 # externallispdir=${srcdir}/externallisp
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
168 # locallisppath=${srcdir}/site-lisp
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
169 # etcdir=${srcdir}/etc
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
170 # lockdir=${srcdir}/lock
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
171 # archlibdir=${srcdir}/bin
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
172 # infodir=${srcdir}/info
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
173
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
174 # ==================== Utility Programs for the Build ====================
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
175
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
176 # Allow the user to specify the install program.
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
177 INSTALL = install
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
178 INSTALLFLAGS = -c
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
179 INSTALL_PROGRAM = ${INSTALL}
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
180 INSTALL_DATA = ${INSTALL}
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
181
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
182 # ============================= Targets ==============================
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
183
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
184 # 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
185 MFLAGS =
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
186
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
187 CFLAGS=${CONFIG_CFLAGS}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
188
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
189 # Subdirectories to make recursively. `lisp' is not included
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
190 # because the compiled lisp files are part of the distribution
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
191 # and you cannot remake them without installing Emacs first.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
192 SUBDIR = lib-src src
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
193
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
194 # 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
195 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
196
1860
f7565191703b * Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents: 1821
diff changeset
197 # 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
198 # 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
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.
1899
fb1b9a269763 * Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents: 1860
diff changeset
202 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
203 COPYDESTS = ${etcdir} ${lispdir} ${externallispdir}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
204
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
205 all: src/paths.h ${SUBDIR}
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
206
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
207 removenullpaths=sed -e 's/^://' -e 's/:$$//' -e 's/::/:/'
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
208
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
209 # 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
210 # 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
211 # 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
212 # 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
213 # src/paths.h.tmp, which isn't much.
1035
56b6d2f4383a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 749
diff changeset
214 # 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
215 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
216 @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
217 @(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
218 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
219 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
220 -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
221 -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
222 -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
223 -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
224 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";')
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
225 ${srcdir}/move-if-change src/paths.h.tmp src/paths.h
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
226
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
227 src: lib-src
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
228
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
229 .RECURSIVE: ${SUBDIR}
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
230
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
231 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
232 cd $@; $(MAKE) all ${MFLAGS} \
1899
fb1b9a269763 * Makefile.in (${SUBDIR}): Pass CONFIG_CFLAGS to the submakes, not
Jim Blandy <jimb@redhat.com>
parents: 1860
diff changeset
233 CC='${CC}' CONFIG_CFLAGS='${CONFIG_CFLAGS}' \
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
234 srcdir='${srcdir}/$@' libdir='${libdir}'
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
235
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
236 ## 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
237 ## 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
238 ## 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
239 ## 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
240 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
241 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
242 @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
243 @(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
244 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
245 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
246 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
247 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
248 /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
249 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \
094bec4c13e9 lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents: 2361
diff changeset
250 -e 's|^\(configname *=\).*$$|\1'"${configname}"'|' \
094bec4c13e9 lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents: 2361
diff changeset
251 -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
252 -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
253 -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
254 -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
255 -e 's|^\(archlibdir *=\).*$$|\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
256 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
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 -e 's|^CONFIG_CFLAGS *=.*$$|CONFIG_CFLAGS='"${CONFIG_CFLAGS}"'|' \
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 -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
259 -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
260 -e '/^# DIST: /d') > lib-src/Makefile.tmp
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
261 ${srcdir}/move-if-change lib-src/Makefile.tmp lib-src/Makefile
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
262 chmod -w lib-src/Makefile
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
263
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
264 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
265 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
266 @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
267 @(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
268 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
269 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
270 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
271 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
272 /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
273 -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
274 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
094bec4c13e9 lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents: 2361
diff changeset
275 -e 's|^CONFIG_CFLAGS *=.*$$|CONFIG_CFLAGS='"${CONFIG_CFLAGS}"'|' \
094bec4c13e9 lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents: 2361
diff changeset
276 -e '/^# DIST: /d') > src/Makefile.tmp
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
277 ${srcdir}/move-if-change src/Makefile.tmp src/Makefile
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
278 chmod -w src/Makefile
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
279
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
280 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
281 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
282 rm -f src/Makefile.tmp
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
283 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
284
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
285
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
286 Makefile:
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
287 ./config.status
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
288
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
289 # ==================== Installation ====================
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
290
1821
04fb1d3d6992 JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents: 1767
diff changeset
291 ## 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
292 ## 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
293 ## this Makefile as well.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
294 install: all mkdir
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
295 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
296 -set ${COPYDESTS} ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
297 for dir in ${COPYDIR} ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
298 dest=$$1 ; shift ; \
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
299 if [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ]; then \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
300 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xf - ) ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
301 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
302 rm -rf $${subdir}/RCS ; \
1996
9d213c299866 * Makefile.in (install, install.aix, install.xenix, install.sysv):
Jim Blandy <jimb@redhat.com>
parents: 1940
diff changeset
303 rm -rf $${subdir}/CVS ; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
304 rm -f $${subdir}/\#* ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
305 rm -f $${subdir}/*~ ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
306 done ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
307 fi ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
308 done
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
309 -(cd info ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
310 if [ ! -f ${infodir}/dir ]; then \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
311 ${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
312 fi ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
313 if [ "`echo *.info*`" != "*.info*" ]; then \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
314 for f in *.info* ; do \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
315 ${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
316 done ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
317 fi)
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
318 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
319 ${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
320 ${mandir}/$${page}${manext} ; \
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
321 done
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
322 ${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
323 ${bindir}/emacs-${version}
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
324 -rm -f ${bindir}/emacs
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
325 ln ${bindir}/emacs-${version} ${bindir}/emacs
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
326
1821
04fb1d3d6992 JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents: 1767
diff changeset
327 ## 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
328 ## 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
329 ## this Makefile as well.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
330 install.sysv: all mkdir
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
331 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
332 -set ${COPYDESTS} ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
333 for dir in ${COPYDIR} ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
334 dest=$$1 ; shift ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
335 if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \
2099
2345bb83831a * Makefile.in (install.sysv): Add a second `$' in front of
Jim Blandy <jimb@redhat.com>
parents: 1996
diff changeset
336 (cd $${dir}; find . -print | cpio -pdum $${dest} ) ; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
337 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
338 rm -rf $${subdir}/RCS ; \
1996
9d213c299866 * Makefile.in (install, install.aix, install.xenix, install.sysv):
Jim Blandy <jimb@redhat.com>
parents: 1940
diff changeset
339 rm -rf $${subdir}/CVS ; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
340 rm -f $${subdir}/\#* ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
341 rm -f $${subdir}/*~ ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
342 done ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
343 fi ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
344 done
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
345 -(cd info ; \
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
346 if [ ! -f ${infodir}/dir ]; then \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
347 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
348 fi ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
349 if [ "`echo *.info*`" != "*.info*" ]; then \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
350 for f in *.info* ; do \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
351 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
352 done ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
353 fi)
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
354 -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
355 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
356 done
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
357 -/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
358 -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
359 -ln ${bindir}/emacs-${version} ${bindir}/emacs
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
360
1821
04fb1d3d6992 JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents: 1767
diff changeset
361 ## 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
362 ## 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
363 ## this Makefile as well.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
364 install.xenix: all mkdir
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
365 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
366 -set ${COPYDESTS} ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
367 for dir in ${COPYDIR} ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
368 dest=$$1 ; shift ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
369 if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
370 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xpf - ) ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
371 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
372 rm -rf $${subdir}/RCS ; \
1996
9d213c299866 * Makefile.in (install, install.aix, install.xenix, install.sysv):
Jim Blandy <jimb@redhat.com>
parents: 1940
diff changeset
373 rm -rf $${subdir}/CVS ; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
374 rm -f $${subdir}/\#* ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
375 rm -f $${subdir}/*~ ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
376 done ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
377 fi ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
378 done
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
379 -(cd info ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
380 if [ ! -f ${infodir}/dir ]; then \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
381 cp ./dir ${infodir} ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
382 chmod 444 ${infodir}/dir ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
383 fi ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
384 if [ "`echo *.info*`" != "*.info*" ]; then \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
385 for f in *.info* ; do \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
386 cp $$f ${infodir} ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
387 chmod 444 ${infodir}/$$f ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
388 done ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
389 fi)
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
390 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
391 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
392 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
393 done
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
394 -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
395 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
396 ln ${bindir}/emacs-${version} ${bindir}/emacs
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
397 chmod 1755 ${bindir}/emacs
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
398 -rm -f ${bindir}/emacs.old
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
399
1821
04fb1d3d6992 JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents: 1767
diff changeset
400 ## 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
401 ## 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
402 ## this Makefile as well.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
403 install.aix: all mkdir
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
404 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
405 -set ${COPYDESTS} ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
406 for dir in ${COPYDIR} ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
407 dest=$$1 ; shift ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
408 if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
409 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xBf - ) ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
410 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
411 rm -rf $${subdir}/RCS ; \
1996
9d213c299866 * Makefile.in (install, install.aix, install.xenix, install.sysv):
Jim Blandy <jimb@redhat.com>
parents: 1940
diff changeset
412 rm -rf $${subdir}/CVS ; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
413 rm -f $${subdir}/\#* ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
414 rm -f $${subdir}/*~ ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
415 done ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
416 fi ; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
417 done
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
418 -(cd info ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
419 if [ ! -f ${infodir}/dir ]; then \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
420 ${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
421 fi ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
422 if [ "`echo *.info*`" != "*.info*" ]; then \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
423 for f in *.info* ; do \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
424 ${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
425 done ; \
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
426 fi)
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
427 ${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
428 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
429 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
430 ${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
431 done
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
432 -rm -f ${bindir}/emacs
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
433 ln ${bindir}/emacs-${version} ${bindir}/emacs
596
d02d6c2f7f80 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 550
diff changeset
434
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
435 ### 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
436 ### 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
437 ### /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
438 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag.
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
439 mkdir: FRC
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
440 ./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
441 chmod 777 ${COPYDESTS} ${lockdir}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
442
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
443 FRC:
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
444
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
445
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
446 # ==================== Cleaning up and miscellanea ====================
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
447
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
448 ### `clean'
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
449 ### 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
450 ### 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
451 ### 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
452 ### 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
453 ### with them.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
454 ### `mostlyclean'
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
455 ### 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
456 ### 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
457 ### `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
458 ### 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
459 ###
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
460 clean mostlyclean:
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
461 cd src; $(MAKE) clean
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
462 cd lib-src; $(MAKE) clean
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
463 cd oldXMenu; $(MAKE) clean
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
464 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
465 cd etc; $(MAKE) clean; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
466 else true; \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
467 fi
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
468
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
469 ### `distclean'
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
470 ### 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
471 ### 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
472 ### files that would be in the distribution.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
473 distclean:
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
474 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} distclean); done
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
475 -(cd lock; rm *)
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
476 -rm config.status config-tmp-*
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
477
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
478 ### `realclean'
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
479 ### 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
480 ### 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
481 ### 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
482 ### produced by Bison, tags tables, info files, and so on.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
483 realclean:
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
484 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} realclean); done
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
485 (cd lock; rm *)
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
486 rm config.status
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
487
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
488 ### 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
489 ### 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
490 ### 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
491 ### 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
492 extraclean:
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
493 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
494 -(cd lock; rm *)
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
495 -rm config.status config-tmp-*
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
496 -rm -f *~ \#*
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
497
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
498 ### 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
499 ### 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
500 ### 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
501 ### 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
502 ### 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
503 ### if you want to mung them.
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
504 ###
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
505 ### 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
506 ### 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
507 ### corrected.
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
508 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
509 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
510
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
511 unlock:
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
512 chmod u+w $(SOURCES) cpp/*
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
513 -(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
514 (cd etc; make unlock)
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
515 (cd lib-src; make unlock)
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
516 (cd lisp; make unlock)
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
517 (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
518 (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
519 (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
520 (cd src; make unlock)
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
521
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
522 relock:
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
523 chmod u-w $(SOURCES) cpp/*
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
524 -(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
525 (cd etc; make relock)
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
526 (cd lib-src; make relock)
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
527 (cd lisp; make relock)
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
528 (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
529 (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
530 (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
531 (cd src; make relock)
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
532
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
533 TAGS tags: lib-src
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
534 (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
535 src/*.[ch] lisp/*.el lisp/term/*.el)
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
536
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
537 check:
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
538 @echo "We don't have any tests for GNU Emacs yet."
621
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
539
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
540 dist:
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
541 cd ${srcdir}; make-dist