annotate Makefile.in @ 13757:94f0319d4cbb

Improve copying status message.
author Karl Heuer <kwzh@gnu.org>
date Thu, 21 Dec 1995 08:01:26 +0000
parents cace0c4acd88
children c9243845a191
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.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
7 # make TAGS to update tags tables.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
8 #
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
9 # make clean or make mostlyclean
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
10 # Delete all files from the current directory that are normally
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
11 # created by building the program. Don't delete the files that
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
12 # record the configuration. Also preserve files that could be made
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
13 # by building, but normally aren't because the distribution comes
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
14 # with them.
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15 #
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
16 # Delete `.dvi' files here if they are not part of the distribution.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
17 #
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
18 # make distclean
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
19 # Delete all files from the current directory that are created by
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
20 # configuring or building the program. If you have unpacked the
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
21 # source and built the program without creating any other files,
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
22 # `make distclean' should leave only the files that were in the
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
23 # distribution.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
24 #
10685
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
25 # make maintainer-clean
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
26 # Delete everything from the current directory that can be
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
27 # reconstructed with this Makefile. This typically includes
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
28 # everything deleted by distclean, plus more: C source files
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
29 # produced by Bison, tags tables, info files, and so on.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
30 #
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
31 # make extraclean
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
32 # Still more severe - delete backup and autosave files, too.
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34 SHELL = /bin/sh
6868
f2edac55dc7a (MAKE): Don't just assign it--use @SET_MAKE@.
Richard M. Stallman <rms@gnu.org>
parents: 6514
diff changeset
35
f2edac55dc7a (MAKE): Don't just assign it--use @SET_MAKE@.
Richard M. Stallman <rms@gnu.org>
parents: 6514
diff changeset
36 # If Make doesn't predefine MAKE, set it here.
f2edac55dc7a (MAKE): Don't just assign it--use @SET_MAKE@.
Richard M. Stallman <rms@gnu.org>
parents: 6514
diff changeset
37 @SET_MAKE@
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
39 # ==================== Things `configure' Might Edit ====================
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
40
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
41 CC=@CC@
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
42 CPP=@CPP@
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
43 C_SWITCH_SYSTEM=@c_switch_system@
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
44 ALLOCA=@ALLOCA@
2710
c64e97b1685b * Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
Jim Blandy <jimb@redhat.com>
parents: 2623
diff changeset
45 LN_S=@LN_S@
c64e97b1685b * Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
Jim Blandy <jimb@redhat.com>
parents: 2623
diff changeset
46 CFLAGS=@CFLAGS@
2988
9403c9149e79 * Makefile.in (C_SWITCH_X_SITE): New variable - get this from
Jim Blandy <jimb@redhat.com>
parents: 2974
diff changeset
47 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
3344
deeb7a37ea11 Pass in LD_SWITCH_X_SITE.
Jim Blandy <jimb@redhat.com>
parents: 3310
diff changeset
48 LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@
3582
eb75df1104eb * configure.in: Test for bison.
Jim Blandy <jimb@redhat.com>
parents: 3426
diff changeset
49 YACC=@YACC@
1686
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 ### 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
52 ### to install files in.
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 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
55 ### like `18.59' or `19.0'.
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
56 version=@version@
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
57
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
58 ### 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
59 ### 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
60 configuration=@configuration@
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
61
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
62 # ==================== Where To Install Things ====================
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
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
2974
253a291a62ca * configure.in: Implement the --prefix option.
Jim Blandy <jimb@redhat.com>
parents: 2859
diff changeset
67 # not need to change them. This defaults to /usr/local.
253a291a62ca * configure.in: Implement the --prefix option.
Jim Blandy <jimb@redhat.com>
parents: 2859
diff changeset
68 prefix=@prefix@
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.
3010
4ca5a6bd174b * configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents: 2988
diff changeset
71 exec_prefix=@exec_prefix@
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
72
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
73 # 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
74 # run directly (like etags).
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
75 bindir=@bindir@
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
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.
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
79 datadir=@datadir@
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.
9561
4ec345bfb51f (sharedstatedir): Substitute sharedstatedir properly.
Richard M. Stallman <rms@gnu.org>
parents: 9556
diff changeset
85 sharedstatedir=@sharedstatedir@
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.
9457
a9a8a2326411 Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 9051
diff changeset
90 libexecdir=@libexecdir@
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.
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
93 mandir=@mandir@
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
13518
9e55dae21315 (mkdir): Create man1dir, not mandir.
Richard M. Stallman <rms@gnu.org>
parents: 13280
diff changeset
95 man1dir=$(mandir)/man1
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
96
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
97 # 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
98 # 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
99 # 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
100 # system, it is inappropriate to imply that it is part of Emacs.
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
101 infodir=@infodir@
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
102
9556
28320cad8c38 (bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents: 9506
diff changeset
103 # Where to look for bitmap files.
28320cad8c38 (bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents: 9506
diff changeset
104 bitmapdir=@bitmapdir@
28320cad8c38 (bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents: 9506
diff changeset
105
3079
7c17d7f9d242 * Makefile.in (srcdir): Remove comment saying this doesn't work.
Jim Blandy <jimb@redhat.com>
parents: 3060
diff changeset
106 # Where to find the source code. The source code for Emacs's C kernel is
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
107 # 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
108 # 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
109 # 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
110 srcdir=@srcdir@
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
111
4809
499783e8afb2 (VPATH): Define to @srcdir@.
Roland McGrath <roland@gnu.org>
parents: 4793
diff changeset
112 # Tell make where to find source files; this is needed for the makefiles.
499783e8afb2 (VPATH): Define to @srcdir@.
Roland McGrath <roland@gnu.org>
parents: 4793
diff changeset
113 VPATH=@srcdir@
499783e8afb2 (VPATH): Define to @srcdir@.
Roland McGrath <roland@gnu.org>
parents: 4793
diff changeset
114
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
115 # ==================== Emacs-specific directories ====================
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
116
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
117 # 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
118 # 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
119
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
120 # Where to install the lisp files distributed with
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
121 # Emacs. This includes the Emacs version, so that the
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
122 # lisp files for different versions of Emacs will install
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
123 # themselves in separate directories.
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
124 lispdir=@lispdir@
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
125
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
126 # Directories Emacs should search for lisp files specific
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
127 # to this site (i.e. customizations), before consulting
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
128 # ${lispdir}. This should be a colon-separated list of
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
129 # directories.
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
130 locallisppath=@locallisppath@
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
131
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
132 # 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
133 # 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
134 # better be served by changing locallisppath. This
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
135 # should be a colon-separated list of directories.
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
136 lisppath=@lisppath@
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
137
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
138 # 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
139 # 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
140 # 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
141 # before they've been installed in their final location.
8499
ad8ab5d3841d Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 8173
diff changeset
142 # It's usually identical to lisppath, except that
ad8ab5d3841d Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 8173
diff changeset
143 # it does not include locallisppath, and the
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
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.
2817
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
147 buildlisppath=${srcdir}/lisp
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
148
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
149 # Where to install the other architecture-independent
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
150 # data files distributed with Emacs (like the tutorial,
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
151 # the cookie recipes and the Zippy database). This path
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
152 # usually contains the Emacs version number, so the data
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
153 # files for multiple versions of Emacs may be installed
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
154 # at once.
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
155 etcdir=@etcdir@
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
156
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
157 # Where to create and expect the locking directory, where
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
158 # the Emacs locking code keeps track of which files are
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
159 # currently being edited.
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
160 lockdir=@lockdir@
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
161
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
162 # Where to put executables to be run by Emacs rather than
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
163 # the user. This path usually includes the Emacs version
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
164 # and configuration name, so that multiple configurations
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
165 # for multiple versions of Emacs may be installed at
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
166 # once.
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
167 archlibdir=@archlibdir@
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
168
6033
f4dead15502f Use docdir to initialize PATH_DOC in paths.h.
Karl Heuer <kwzh@gnu.org>
parents: 6013
diff changeset
169 # Where to put the docstring file.
f4dead15502f Use docdir to initialize PATH_DOC in paths.h.
Karl Heuer <kwzh@gnu.org>
parents: 6013
diff changeset
170 docdir=@docdir@
f4dead15502f Use docdir to initialize PATH_DOC in paths.h.
Karl Heuer <kwzh@gnu.org>
parents: 6013
diff changeset
171
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
172 # ==================== Utility Programs for the Build ====================
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
173
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
174 # Allow the user to specify the install program.
3090
7b418622d32b (INSTALL): Add definition.
Richard M. Stallman <rms@gnu.org>
parents: 3079
diff changeset
175 INSTALL = @INSTALL@
3010
4ca5a6bd174b * configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents: 2988
diff changeset
176 INSTALL_PROGRAM = @INSTALL_PROGRAM@
4ca5a6bd174b * configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents: 2988
diff changeset
177 INSTALL_DATA = @INSTALL_DATA@
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
178
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
179 # ============================= Targets ==============================
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
180
7032
2c8a6d503e76 (.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents: 6970
diff changeset
181 # What emacs should be called when installed.
2c8a6d503e76 (.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents: 6970
diff changeset
182 EMACS = emacs
2c8a6d503e76 (.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents: 6970
diff changeset
183
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
184 # Subdirectories to make recursively. `lisp' is not included
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
185 # because the compiled lisp files are part of the distribution
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
186 # and you cannot remake them without installing Emacs first.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
187 SUBDIR = lib-src src
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
188
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
189 # The makefiles of the directories in $SUBDIR.
12375
832d77b36f9d (mkdir): Use symbolic chmod.
Richard M. Stallman <rms@gnu.org>
parents: 12097
diff changeset
190 SUBDIR_MAKEFILES = lib-src/Makefile man/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
191
1860
f7565191703b * Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents: 1821
diff changeset
192 # 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
193 # 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
194 # 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
195 # 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
196 # instead, we have written out explicit code in the `install' targets.
3180
e54c45bae557 (COPYDESTS, COPYDIR): Delete external-lisp dir.
Richard M. Stallman <rms@gnu.org>
parents: 3179
diff changeset
197 COPYDIR = ${srcdir}/etc ${srcdir}/lisp
e54c45bae557 (COPYDESTS, COPYDIR): Delete external-lisp dir.
Richard M. Stallman <rms@gnu.org>
parents: 3179
diff changeset
198 COPYDESTS = ${etcdir} ${lispdir}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
199
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
200 all: paths-force ${SUBDIR}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
201
8163
d836abb05e48 (mkdir, removenullpaths): Put g in sed replace commands.
Richard M. Stallman <rms@gnu.org>
parents: 7704
diff changeset
202 removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g'
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
203
1035
56b6d2f4383a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 749
diff changeset
204 # Note that sed is not in /bin on 386bsd.
12579
16b03ae9214b (src/paths.h, paths-force): Rename src/paths.h.in to src/paths.in.
Richard M. Stallman <rms@gnu.org>
parents: 12479
diff changeset
205 src/paths.h: Makefile ${srcdir}/src/paths.in
16b03ae9214b (src/paths.h, paths-force): Rename src/paths.h.in to src/paths.in.
Richard M. Stallman <rms@gnu.org>
parents: 12479
diff changeset
206 @echo "Producing \`src/paths.h' from \`src/paths.in'."
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
207 @(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
208 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
13031
e8551f167c9e (src/paths.h, paths-force): Use paths.h.$$ instead
Karl Heuer <kwzh@gnu.org>
parents: 13002
diff changeset
209 sed < ${srcdir}/src/paths.in > paths.h.$$$$ \
2430
094bec4c13e9 lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents: 2361
diff changeset
210 -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
211 -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
212 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
3060
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
213 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \
2430
094bec4c13e9 lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents: 2361
diff changeset
214 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \
9556
28320cad8c38 (bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents: 9506
diff changeset
215 -e 's;\(#.*PATH_BITMAPS\).*$$;\1 "${bitmapdir}";' \
6033
f4dead15502f Use docdir to initialize PATH_DOC in paths.h.
Karl Heuer <kwzh@gnu.org>
parents: 6013
diff changeset
216 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \
8770
b58e8634df8b (removenullpaths, paths-force):
Richard M. Stallman <rms@gnu.org>
parents: 8754
diff changeset
217 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') && \
13031
e8551f167c9e (src/paths.h, paths-force): Use paths.h.$$ instead
Karl Heuer <kwzh@gnu.org>
parents: 13002
diff changeset
218 ${srcdir}/move-if-change paths.h.$$$$ src/paths.h
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
219
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
220 # For `make all',
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
221 # we force the rebuilding of src/paths.h because the user might give
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
222 # make different values for the various directories. Since we use
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
223 # move-if-change, src/paths.h only actually changes if the user did
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
224 # something notable, so the only unnecessary work we do is in building
13031
e8551f167c9e (src/paths.h, paths-force): Use paths.h.$$ instead
Karl Heuer <kwzh@gnu.org>
parents: 13002
diff changeset
225 # paths.h.$$, which isn't much.
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
226 # Note that sed is not in /bin on 386bsd.
8954
c910dbca1355 (paths-force): Depend on src/paths.h
Richard M. Stallman <rms@gnu.org>
parents: 8895
diff changeset
227 # We depend on src/paths.h here to prevent simultaneous execution of
c910dbca1355 (paths-force): Depend on src/paths.h
Richard M. Stallman <rms@gnu.org>
parents: 8895
diff changeset
228 # that rule and this one, in a parallel make.
c910dbca1355 (paths-force): Depend on src/paths.h
Richard M. Stallman <rms@gnu.org>
parents: 8895
diff changeset
229 # It is possible for paths.h to be updated twice--but that would happen anyway.
c910dbca1355 (paths-force): Depend on src/paths.h
Richard M. Stallman <rms@gnu.org>
parents: 8895
diff changeset
230 paths-force: FRC src/paths.h
12579
16b03ae9214b (src/paths.h, paths-force): Rename src/paths.h.in to src/paths.in.
Richard M. Stallman <rms@gnu.org>
parents: 12479
diff changeset
231 @echo "Producing \`src/paths.h' from \`src/paths.in'."
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
232 @(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
233 buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
13031
e8551f167c9e (src/paths.h, paths-force): Use paths.h.$$ instead
Karl Heuer <kwzh@gnu.org>
parents: 13002
diff changeset
234 sed < ${srcdir}/src/paths.in > paths.h.$$$$ \
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
235 -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
236 -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
237 -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
238 -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
239 -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \
9556
28320cad8c38 (bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents: 9506
diff changeset
240 -e 's;\(#.*PATH_BITMAPS\).*$$;\1 "${bitmapdir}";' \
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
241 -e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \
8770
b58e8634df8b (removenullpaths, paths-force):
Richard M. Stallman <rms@gnu.org>
parents: 8754
diff changeset
242 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') && \
13031
e8551f167c9e (src/paths.h, paths-force): Use paths.h.$$ instead
Karl Heuer <kwzh@gnu.org>
parents: 13002
diff changeset
243 ${srcdir}/move-if-change paths.h.$$$$ src/paths.h
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
244
8807
1fb0575ee03a Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents: 8770
diff changeset
245 src: lib-src FRC src/paths.h
7293
0b9e737663c2 (lib-src): Depend on src.
Richard M. Stallman <rms@gnu.org>
parents: 7152
diff changeset
246
7584
72d8287c8b16 (lib-src): Don't depend on src/paths.h.
Richard M. Stallman <rms@gnu.org>
parents: 7470
diff changeset
247 # This ought to depend on src/paths.h, so that in parallel make
72d8287c8b16 (lib-src): Don't depend on src/paths.h.
Richard M. Stallman <rms@gnu.org>
parents: 7470
diff changeset
248 # src/paths.h will be available for the compilations in lib-src.
72d8287c8b16 (lib-src): Don't depend on src/paths.h.
Richard M. Stallman <rms@gnu.org>
parents: 7470
diff changeset
249 # But that causes trouble in `make install' if a different prefix
72d8287c8b16 (lib-src): Don't depend on src/paths.h.
Richard M. Stallman <rms@gnu.org>
parents: 7470
diff changeset
250 # is specified at that time.
8807
1fb0575ee03a Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents: 8770
diff changeset
251 lib-src: FRC src/paths.h
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
252
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
253 .RECURSIVE: ${SUBDIR}
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
254
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
255 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
256 cd $@; $(MAKE) all $(MFLAGS) \
5413
8c0dd3e81e28 (${SUBDIR} target): Pass down LDFLAGS and CPPFLAGS.
Richard M. Stallman <rms@gnu.org>
parents: 5321
diff changeset
257 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
8c0dd3e81e28 (${SUBDIR} target): Pass down LDFLAGS and CPPFLAGS.
Richard M. Stallman <rms@gnu.org>
parents: 5321
diff changeset
258 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}'
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
259
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
260 blessmail: ${SUBDIR_MAKEFILES} src FRC
10969
c66a0a2a7bb3 (blessmail): Pass archlibdir to the sub-make.
Richard M. Stallman <rms@gnu.org>
parents: 10685
diff changeset
261 cd lib-src; $(MAKE) maybe-blessmail $(MFLAGS) \
c66a0a2a7bb3 (blessmail): Pass archlibdir to the sub-make.
Richard M. Stallman <rms@gnu.org>
parents: 10685
diff changeset
262 MAKE='${MAKE}' archlibdir='$(archlibdir)'
7311
b4ef2060b171 (lib-src): Undo previous change.
Richard M. Stallman <rms@gnu.org>
parents: 7293
diff changeset
263
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
264 Makefile: Makefile.in config.status
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
265 ./config.status
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
266
12579
16b03ae9214b (src/paths.h, paths-force): Rename src/paths.h.in to src/paths.in.
Richard M. Stallman <rms@gnu.org>
parents: 12479
diff changeset
267 src/Makefile: src/Makefile.in config.status
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
268 ./config.status
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
269
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
270 lib-src/Makefile: lib-src/Makefile.in config.status
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
271 ./config.status
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
272
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
273 oldXMenu/Makefile: oldXMenu/Makefile.in config.status
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
274 ./config.status
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
275
5630
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
276 lwlib/Makefile: lwlib/Makefile.in config.status
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
277 ./config.status
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
278
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
279 # ==================== Installation ====================
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
280
1821
04fb1d3d6992 JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents: 1767
diff changeset
281 ## 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
282 ## 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
283 ## this Makefile as well.
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
284
2817
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
285 ## On AIX, use tar xBf.
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
286 ## On Xenix, use tar xpf.
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
287
7032
2c8a6d503e76 (.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents: 6970
diff changeset
288 .PHONY: install mkdir
5630
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
289
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
290 ## 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
291 ## 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
292 ## 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
293 ## 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
294 ## source exists and is distinct from the destination.
5321
69d64181891b (mkdir): Make only the lockdir writable.
Richard M. Stallman <rms@gnu.org>
parents: 5200
diff changeset
295 ## We don't depend on `all', but rather on ${SUBDIR}, so that we won't
69d64181891b (mkdir): Make only the lockdir writable.
Richard M. Stallman <rms@gnu.org>
parents: 5200
diff changeset
296 ## ever modify src/paths.h.
13280
42aa8d8aa019 (distclean): Delete line with just a tab in it.
Richard M. Stallman <rms@gnu.org>
parents: 13031
diff changeset
297 install: ${SUBDIR} install-arch-dep install-arch-indep blessmail
42aa8d8aa019 (distclean): Delete line with just a tab in it.
Richard M. Stallman <rms@gnu.org>
parents: 13031
diff changeset
298 @true
3060
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
299
3345
38168270a9ca (do-install): Copy the DOC-* files from the build
Richard M. Stallman <rms@gnu.org>
parents: 3344
diff changeset
300 ### Note that we copy the DOC-* files from the build etc directory
38168270a9ca (do-install): Copy the DOC-* files from the build
Richard M. Stallman <rms@gnu.org>
parents: 3344
diff changeset
301 ### as well as lots of things from ${srcdir}/etc.
7390
989492b57d5e (install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents: 7311
diff changeset
302 install-arch-dep: mkdir
3060
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
303 (cd lib-src; \
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
304 $(MAKE) install $(MFLAGS) prefix=${prefix} \
9457
a9a8a2326411 Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 9051
diff changeset
305 exec_prefix=${exec_prefix} bindir=${bindir} \
a9a8a2326411 Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 9051
diff changeset
306 libexecdir=${libexecdir} archlibdir=${archlibdir})
6013
f03d2629a6a3 (install-arch-dep, install-arch-indep):
Richard M. Stallman <rms@gnu.org>
parents: 5630
diff changeset
307 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version}
f03d2629a6a3 (install-arch-dep, install-arch-indep):
Richard M. Stallman <rms@gnu.org>
parents: 5630
diff changeset
308 -chmod 1755 ${bindir}/emacs-${version}
7032
2c8a6d503e76 (.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents: 6970
diff changeset
309 rm -f ${bindir}/$(EMACS)
2c8a6d503e76 (.PHONY, install): Kill reference to obsolete do-install.
Karl Heuer <kwzh@gnu.org>
parents: 6970
diff changeset
310 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS)
6013
f03d2629a6a3 (install-arch-dep, install-arch-indep):
Richard M. Stallman <rms@gnu.org>
parents: 5630
diff changeset
311
7390
989492b57d5e (install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents: 7311
diff changeset
312 ### Note that we copy the DOC-* files from the build etc directory
989492b57d5e (install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents: 7311
diff changeset
313 ### as well as lots of things from ${srcdir}/etc.
12479
998641b2f5d6 (uninstall, install-arch-indep): Install info/ediff*.
Richard M. Stallman <rms@gnu.org>
parents: 12375
diff changeset
314 ### Note that we copy DOC* and then delete DOC
998641b2f5d6 (uninstall, install-arch-indep): Install info/ediff*.
Richard M. Stallman <rms@gnu.org>
parents: 12375
diff changeset
315 ### as a workaround for a bug in tar on Ultrix 4.2.
9051
3748e1fdbd18 (install-arch-indep): Don't do mkdir here.
Richard M. Stallman <rms@gnu.org>
parents: 8954
diff changeset
316
6013
f03d2629a6a3 (install-arch-dep, install-arch-indep):
Richard M. Stallman <rms@gnu.org>
parents: 5630
diff changeset
317 install-arch-indep: mkdir
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
318 -set ${COPYDESTS} ; \
3123
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
319 for dir in ${COPYDIR} ; do \
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
320 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \
3179
2852a2acef36 (do-install): Delete the dest dir, not the source dir,
Richard M. Stallman <rms@gnu.org>
parents: 3158
diff changeset
321 rm -rf $$1 ; \
3123
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
322 fi ; \
3184
29de1b20b68b (do-install): Add `shift' command.
Richard M. Stallman <rms@gnu.org>
parents: 3180
diff changeset
323 shift ; \
3123
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
324 done
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
325 -set ${COPYDESTS} ; \
13280
42aa8d8aa019 (distclean): Delete line with just a tab in it.
Richard M. Stallman <rms@gnu.org>
parents: 13031
diff changeset
326 mkdir ${COPYDESTS} ; \
42aa8d8aa019 (distclean): Delete line with just a tab in it.
Richard M. Stallman <rms@gnu.org>
parents: 13031
diff changeset
327 chmod ugo+rx ${COPYDESTS} ; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
328 for dir in ${COPYDIR} ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
329 dest=$$1 ; shift ; \
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
330 [ -d $${dir} ] \
3310
2807618b3f72 * Makefile.in (mkdir, clean, mostlyclean, do-install): Use `(cd
Jim Blandy <jimb@redhat.com>
parents: 3278
diff changeset
331 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
13757
94f0319d4cbb Improve copying status message.
Karl Heuer <kwzh@gnu.org>
parents: 13676
diff changeset
332 && (echo "Copying $${dir} to $${dest}..." ; \
5200
1006461bf759 (do-install): Use umask 022 in copying etc and lisp dirs.
Richard M. Stallman <rms@gnu.org>
parents: 5048
diff changeset
333 (cd $${dir}; tar -cf - . )|(cd $${dest};umask 022; tar -xvf - ); \
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
334 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
335 rm -rf $${subdir}/RCS ; \
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
336 rm -rf $${subdir}/CVS ; \
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
337 rm -f $${subdir}/\#* ; \
11279
f9ec534fe44c (install-arch-indep): Delete .#* when copying subdirs.
Richard M. Stallman <rms@gnu.org>
parents: 11228
diff changeset
338 rm -f $${subdir}/.\#* ; \
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
339 rm -f $${subdir}/*~ ; \
9866
435cd6f0ec6d (install-arch-indep): Delete *.orig in copied dirs.
Richard M. Stallman <rms@gnu.org>
parents: 9839
diff changeset
340 rm -f $${subdir}/*.orig ; \
13660
7ccd8298d604 (install-arch-indep): Don't install
Richard M. Stallman <rms@gnu.org>
parents: 13570
diff changeset
341 rm -f $${subdir}/[mM]akefile* ; \
7ccd8298d604 (install-arch-indep): Don't install
Richard M. Stallman <rms@gnu.org>
parents: 13570
diff changeset
342 rm -f $${subdir}/ChangeLog* ; \
7ccd8298d604 (install-arch-indep): Don't install
Richard M. Stallman <rms@gnu.org>
parents: 13570
diff changeset
343 rm -f $${subdir}/dired.todo ; \
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
344 done) ; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
345 done
9556
28320cad8c38 (bitmapdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents: 9506
diff changeset
346 -rm -f ${lispdir}/subdirs.el
11227
91377b178920 (install-arch-indep, dist): look for `update-subdir' in $(srcdir).
Richard M. Stallman <rms@gnu.org>
parents: 10969
diff changeset
347 $(srcdir)/update-subdirs ${lispdir}
7390
989492b57d5e (install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents: 7311
diff changeset
348 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
989492b57d5e (install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents: 7311
diff changeset
349 then \
13757
94f0319d4cbb Improve copying status message.
Karl Heuer <kwzh@gnu.org>
parents: 13676
diff changeset
350 echo "Copying etc/DOC-* to ${docdir} ..." ; \
12479
998641b2f5d6 (uninstall, install-arch-indep): Install info/ediff*.
Richard M. Stallman <rms@gnu.org>
parents: 12375
diff changeset
351 (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \
998641b2f5d6 (uninstall, install-arch-indep): Install info/ediff*.
Richard M. Stallman <rms@gnu.org>
parents: 12375
diff changeset
352 (cd $(docdir); rm DOC) \
7390
989492b57d5e (install-arch-indep): Do install info/dired-x*.
Richard M. Stallman <rms@gnu.org>
parents: 7311
diff changeset
353 else true; fi
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
354 thisdir=`/bin/pwd`; \
3426
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
355 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
6394
a829e7875542 (install-arch-indep): Add missing backslash after a `then'.
Roland McGrath <roland@gnu.org>
parents: 6350
diff changeset
356 then \
13002
237f7920c3a2 (install-arch-indep): Always install the new dir file;
Richard M. Stallman <rms@gnu.org>
parents: 12579
diff changeset
357 (cd ${infodir}; \
13676
cace0c4acd88 Add missing backslash.
Erik Naggum <erik@naggum.no>
parents: 13660
diff changeset
358 if [ -f dir ]; then \
13660
7ccd8298d604 (install-arch-indep): Don't install
Richard M. Stallman <rms@gnu.org>
parents: 13570
diff changeset
359 if [ ! -f dir.old ]; then mv -f dir dir.old; \
7ccd8298d604 (install-arch-indep): Don't install
Richard M. Stallman <rms@gnu.org>
parents: 13570
diff changeset
360 else mv -f dir dir.bak; fi; \
7ccd8298d604 (install-arch-indep): Don't install
Richard M. Stallman <rms@gnu.org>
parents: 13570
diff changeset
361 fi; \
13002
237f7920c3a2 (install-arch-indep): Always install the new dir file;
Richard M. Stallman <rms@gnu.org>
parents: 12579
diff changeset
362 cd ${srcdir}/info ; \
237f7920c3a2 (install-arch-indep): Always install the new dir file;
Richard M. Stallman <rms@gnu.org>
parents: 12579
diff changeset
363 (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir); \
12479
998641b2f5d6 (uninstall, install-arch-indep): Install info/ediff*.
Richard M. Stallman <rms@gnu.org>
parents: 12375
diff changeset
364 for f in cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*; do \
6514
421a3ab4cb2e (thisdir): Nonsensical variable removed.
Roland McGrath <roland@gnu.org>
parents: 6394
diff changeset
365 (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f); \
6350
9feb98fdf5aa (thisdir): New variable.
Richard M. Stallman <rms@gnu.org>
parents: 6071
diff changeset
366 done); \
3426
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
367 else true; fi
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
368 thisdir=`/bin/pwd`; cd ${srcdir}/etc; for page in emacs etags ctags ; do \
13518
9e55dae21315 (mkdir): Create man1dir, not mandir.
Richard M. Stallman <rms@gnu.org>
parents: 13280
diff changeset
369 (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}); \
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
370 done
596
d02d6c2f7f80 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 550
diff changeset
371
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
372 ### 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
373 ### we may be creating several layers of directories (for example,
9497
9d0e3c1c3f8c use mkinstalldirs instead of make-path
David J. MacKenzie <djm@gnu.org>
parents: 9457
diff changeset
374 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use mkinstalldirs
10064
9d103084f33b (dvi): Run Make in our man subdir.
Richard M. Stallman <rms@gnu.org>
parents: 9866
diff changeset
375 ### instead of mkdir. Not all systems' mkdir programs have the `-p' flag.
8807
1fb0575ee03a Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents: 8770
diff changeset
376 mkdir: FRC
13518
9e55dae21315 (mkdir): Create man1dir, not mandir.
Richard M. Stallman <rms@gnu.org>
parents: 13280
diff changeset
377 $(srcdir)/mkinstalldirs ${COPYDESTS} ${lockdir} ${infodir} ${man1dir} \
9457
a9a8a2326411 Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 9051
diff changeset
378 ${bindir} ${datadir} ${docdir} ${libexecdir} \
8163
d836abb05e48 (mkdir, removenullpaths): Put g in sed replace commands.
Richard M. Stallman <rms@gnu.org>
parents: 7704
diff changeset
379 `echo ${locallisppath} | sed 's/:/ /g'`
12375
832d77b36f9d (mkdir): Use symbolic chmod.
Richard M. Stallman <rms@gnu.org>
parents: 12097
diff changeset
380 -chmod a+rwx ${lockdir}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
381
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
382 ### Delete all the installed files that the `install' target would
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
383 ### create (but not the noninstalled files such as `make all' would
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
384 ### create).
3786
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
385 ###
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
386 ### Don't delete the lisp and etc directories if they're in the source tree.
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
387 uninstall:
3786
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
388 (cd lib-src; \
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
389 $(MAKE) $(MFLAGS) uninstall \
3786
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
390 prefix=${prefix} exec_prefix=${exec_prefix} \
9457
a9a8a2326411 Use libexecdir and sharedstatedir as appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 9051
diff changeset
391 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir})
3786
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
392 for dir in ${lispdir} ${etcdir} ; do \
7405
a25ee02b41c8 (uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents: 7390
diff changeset
393 if [ -d $${dir} ]; then \
7704
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
394 case `(cd $${dir} ; /bin/pwd)` in \
022727dbe5f3 (install-arch-indep): Use /bin/pwd uniformly, not pwd.
Richard M. Stallman <rms@gnu.org>
parents: 7603
diff changeset
395 `(cd ${srcdir} ; /bin/pwd)`* ) ;; \
7405
a25ee02b41c8 (uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents: 7390
diff changeset
396 * ) rm -rf $${dir} ;; \
a25ee02b41c8 (uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents: 7390
diff changeset
397 esac ; \
a25ee02b41c8 (uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents: 7390
diff changeset
398 case $${dir} in \
a25ee02b41c8 (uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents: 7390
diff changeset
399 ${datadir}/emacs/${version}/* ) \
a25ee02b41c8 (uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents: 7390
diff changeset
400 rm -rf ${datadir}/emacs/${version} \
a25ee02b41c8 (uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents: 7390
diff changeset
401 ;; \
a25ee02b41c8 (uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents: 7390
diff changeset
402 esac ; \
a25ee02b41c8 (uninstall): When processing lispdir and etcdir,
Richard M. Stallman <rms@gnu.org>
parents: 7390
diff changeset
403 fi ; \
3786
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
404 done
12479
998641b2f5d6 (uninstall, install-arch-indep): Install info/ediff*.
Richard M. Stallman <rms@gnu.org>
parents: 12375
diff changeset
405 (cd ${infodir} && rm -f cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*)
13518
9e55dae21315 (mkdir): Create man1dir, not mandir.
Richard M. Stallman <rms@gnu.org>
parents: 13280
diff changeset
406 (cd ${man1dir} && rm -f emacs.1 etags.1 ctags.1)
9815
cf81e1252f30 Don't rm files if cd fails.
Karl Heuer <kwzh@gnu.org>
parents: 9561
diff changeset
407 (cd ${bindir} && rm -f emacs-${version} $(EMACS))
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
408
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
409
8807
1fb0575ee03a Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents: 8770
diff changeset
410 FRC:
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
411
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
412 # ==================== Cleaning up and miscellanea ====================
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
413
10685
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
414 .PHONY: mostlyclean clean distclean maintainer-clean extraclean
5630
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
415
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
416 ### `mostlyclean'
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
417 ### Like `clean', but may refrain from deleting a few files that people
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
418 ### normally don't want to recompile. For example, the `mostlyclean'
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
419 ### target for GCC does not delete `libgcc.a', because recompiling it
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
420 ### is rarely necessary and takes a lot of time.
8807
1fb0575ee03a Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents: 8770
diff changeset
421 mostlyclean: FRC
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
422 (cd src; $(MAKE) $(MFLAGS) mostlyclean)
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
423 (cd oldXMenu; $(MAKE) $(MFLAGS) mostlyclean)
5630
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
424 (cd lwlib; $(MAKE) $(MFLAGS) mostlyclean)
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
425 (cd lib-src; $(MAKE) $(MFLAGS) mostlyclean)
7603
1ddcf94fe9c9 (mostlyclean, clean, distclean, realclean)
Richard M. Stallman <rms@gnu.org>
parents: 7584
diff changeset
426 -(cd man && $(MAKE) $(MFLAGS) mostlyclean)
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
427
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
428 ### `clean'
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
429 ### Delete all files from the current directory that are normally
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
430 ### created by building the program. Don't delete the files that
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
431 ### record the configuration. Also preserve files that could be made
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
432 ### by building, but normally aren't because the distribution comes
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
433 ### with them.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
434 ###
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
435 ### Delete `.dvi' files here if they are not part of the distribution.
8807
1fb0575ee03a Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents: 8770
diff changeset
436 clean: FRC
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
437 (cd src; $(MAKE) $(MFLAGS) clean)
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
438 (cd oldXMenu; $(MAKE) $(MFLAGS) clean)
5630
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
439 (cd lwlib; $(MAKE) $(MFLAGS) clean)
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
440 (cd lib-src; $(MAKE) $(MFLAGS) clean)
7603
1ddcf94fe9c9 (mostlyclean, clean, distclean, realclean)
Richard M. Stallman <rms@gnu.org>
parents: 7584
diff changeset
441 -(cd man && $(MAKE) $(MFLAGS) clean)
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
442
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
443 ### `distclean'
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
444 ### Delete all files from the current directory that are created by
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
445 ### configuring or building the program. If you have unpacked the
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
446 ### source and built the program without creating any other files,
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
447 ### `make distclean' should leave only the files that were in the
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
448 ### distribution.
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
449 top_distclean=\
12375
832d77b36f9d (mkdir): Use symbolic chmod.
Richard M. Stallman <rms@gnu.org>
parents: 12097
diff changeset
450 rm -f config.status config.cache config.log ; \
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
451 rm -f Makefile ${SUBDIR_MAKEFILES} ; \
9815
cf81e1252f30 Don't rm files if cd fails.
Karl Heuer <kwzh@gnu.org>
parents: 9561
diff changeset
452 (cd lock && rm -f *)
8807
1fb0575ee03a Use just one FRC target.
Richard M. Stallman <rms@gnu.org>
parents: 8770
diff changeset
453 distclean: FRC
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
454 (cd src; $(MAKE) $(MFLAGS) distclean)
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
455 (cd oldXMenu; $(MAKE) $(MFLAGS) distclean)
5630
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
456 (cd lwlib; $(MAKE) $(MFLAGS) distclean)
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
457 (cd lib-src; $(MAKE) $(MFLAGS) distclean)
7603
1ddcf94fe9c9 (mostlyclean, clean, distclean, realclean)
Richard M. Stallman <rms@gnu.org>
parents: 7584
diff changeset
458 (cd man && $(MAKE) $(MFLAGS) distclean)
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
459 ${top_distclean}
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
460
10685
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
461 ### `maintainer-clean'
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
462 ### Delete everything from the current directory that can be
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
463 ### reconstructed with this Makefile. This typically includes
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
464 ### everything deleted by distclean, plus more: C source files
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
465 ### produced by Bison, tags tables, info files, and so on.
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
466 ###
10685
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
467 ### One exception, however: `make maintainer-clean' should not delete
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
468 ### `configure' even if `configure' can be remade using a rule in the
10685
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
469 ### Makefile. More generally, `make maintainer-clean' should not delete
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
470 ### anything that needs to exist in order to run `configure' and then
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
471 ### begin to build the program.
10685
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
472 maintainer-clean: FRC
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
473 (cd src; $(MAKE) $(MFLAGS) maintainer-clean)
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
474 (cd oldXMenu; $(MAKE) $(MFLAGS) maintainer-clean)
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
475 (cd lwlib; $(MAKE) $(MFLAGS) maintainer-clean)
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
476 (cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean)
71fa5c477213 (maintainer-clean): Renamed from realclean.
Richard M. Stallman <rms@gnu.org>
parents: 10064
diff changeset
477 -(cd man && $(MAKE) $(MFLAGS) maintainer-clean)
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
478 ${top_distclean}
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
479
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
480 ### 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
481 ### 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
482 ### 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
483 ### 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
484 extraclean:
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
485 for i in ${SUBDIR}; do (cd $$i; $(MAKE) $(MFLAGS) extraclean); done
9815
cf81e1252f30 Don't rm files if cd fails.
Karl Heuer <kwzh@gnu.org>
parents: 9561
diff changeset
486 -(cd lock && rm *)
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
487 -rm config.status config-tmp-*
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
488 -rm -f *~ \#*
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
489
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
490 ### 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
491 ### 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
492 ### 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
493 ### 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
494 ### 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
495 ### if you want to mung them.
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
496 ###
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
497 ### 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
498 ### 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
499 ### corrected.
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
500 SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in PROBLEMS \
9506
2341ee469132 (top_distclean): Don't rm build-install.
Richard M. Stallman <rms@gnu.org>
parents: 9497
diff changeset
501 README configure make-dist move-if-change
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
502
5630
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
503 .PHONY: unlock relock
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
504
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
505 unlock:
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
506 chmod u+w $(SOURCES) cpp/*
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
507 -(cd elisp; chmod u+w Makefile README *.texi)
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
508 (cd etc; $(MAKE) $(MFLAGS) unlock)
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
509 (cd lib-src; $(MAKE) $(MFLAGS) unlock)
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
510 (cd lisp; $(MAKE) $(MFLAGS) unlock)
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
511 (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
512 (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
513 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
5630
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
514 (cd lwlib; chmod u+w *.[ch] Makefile README)
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
515 (cd src; $(MAKE) $(MFLAGS) unlock)
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
516
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
517 relock:
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
518 chmod u-w $(SOURCES) cpp/*
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
519 -(cd elisp; chmod u-w Makefile README *.texi)
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
520 (cd etc; $(MAKE) $(MFLAGS) relock)
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
521 (cd lib-src; $(MAKE) $(MFLAGS) relock)
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
522 (cd lisp; $(MAKE) $(MFLAGS) relock)
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
523 (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
524 (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
525 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
5630
374b344ce3b6 (lwlib/Makefile): New target.
Richard M. Stallman <rms@gnu.org>
parents: 5599
diff changeset
526 (cd lwlib; chmod u+w *.[ch] Makefile README)
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
527 (cd src; $(MAKE) $(MFLAGS) relock)
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
528
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
529 TAGS tags: lib-src
7462
2ead438fa63a (TAGS): Use the makefile in src subdir.
Richard M. Stallman <rms@gnu.org>
parents: 7405
diff changeset
530 cd ${srcdir}/src; $(MAKE) tags
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
531
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
532 check:
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
533 @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
534
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
535 dist:
11227
91377b178920 (install-arch-indep, dist): look for `update-subdir' in $(srcdir).
Richard M. Stallman <rms@gnu.org>
parents: 10969
diff changeset
536 $(srcdir)/update-subdirs ${srcdir}/lisp
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
537 cd ${srcdir}; make-dist
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
538
5321
69d64181891b (mkdir): Make only the lockdir writable.
Richard M. Stallman <rms@gnu.org>
parents: 5200
diff changeset
539 .PHONY: info dvi dist check
69d64181891b (mkdir): Make only the lockdir writable.
Richard M. Stallman <rms@gnu.org>
parents: 5200
diff changeset
540 force-info:
69d64181891b (mkdir): Make only the lockdir writable.
Richard M. Stallman <rms@gnu.org>
parents: 5200
diff changeset
541 info: force-info
4793
0a1aaeea3623 (src/Makefile, lib-src/Makefile, oldXMenu/Makefile): If these files
Brian Fox <bfox@gnu.org>
parents: 4748
diff changeset
542 (cd ${srcdir}/man; $(MAKE) $(MFLAGS) info)
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
543 dvi:
10064
9d103084f33b (dvi): Run Make in our man subdir.
Richard M. Stallman <rms@gnu.org>
parents: 9866
diff changeset
544 (cd man; $(MAKE) $(MFLAGS) dvi)