annotate Makefile.in @ 4748:a56afa1b45c1

(@rip_paths@locallisppath): Delete ${datadir}/emacs/site-lisp.
author Richard M. Stallman <rms@gnu.org>
date Mon, 20 Sep 1993 13:49:26 +0000
parents 0019d042d4a6
children 0a1aaeea3623
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 #
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
25 # make realclean
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
1767
6e2fb470af5f Define MAKE, and use where appropriate.
Richard M. Stallman <rms@gnu.org>
parents: 1698
diff changeset
35 MAKE = make # BSD doesn't have it as a default.
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
37 # ==================== Things `configure' Might Edit ====================
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
38
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
39 CC=@CC@
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
40 CPP=@CPP@
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
41 C_SWITCH_SYSTEM=@c_switch_system@
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
42 ALLOCA=@ALLOCA@
2710
c64e97b1685b * Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
Jim Blandy <jimb@redhat.com>
parents: 2623
diff changeset
43 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
44 CFLAGS=@CFLAGS@
2988
9403c9149e79 * Makefile.in (C_SWITCH_X_SITE): New variable - get this from
Jim Blandy <jimb@redhat.com>
parents: 2974
diff changeset
45 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
46 LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@
3582
eb75df1104eb * configure.in: Test for bison.
Jim Blandy <jimb@redhat.com>
parents: 3426
diff changeset
47 YACC=@YACC@
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
48
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
49 ### 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
50 ### to install files in.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
51
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
52 ### 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
53 ### like `18.59' or `19.0'.
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
54 version=@version@
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
55
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
56 ### This should be the 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
57 ### 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
58 configuration=@configuration@
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
59
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
60 ### Libraries which should be edited into lib-src/Makefile.
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
61 libsrc_libs=@libsrc_libs@
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
62
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
63 # ==================== Where To Install Things ====================
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
64
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
65 # 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
66 # 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
67 # 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
68 # 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
69 prefix=@prefix@
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
70
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
71 # 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
72 exec_prefix=@exec_prefix@
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
73
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
74 # 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
75 # run directly (like etags).
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
76 bindir=${exec_prefix}/bin
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
77
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
78 # 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
79 # 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
80 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
81
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
82 # 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
83 # 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
84 # 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
85 # subdirectory of this.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
86 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
87
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
88 # Where to install and expect executable files to be run by Emacs
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
89 # rather than directly by users, and other architecture-dependent
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
90 # data. ${archlibdir} is a subdirectory of this.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
91 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
92
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
93 # Where to install Emacs's man pages, and what extension they should have.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
94 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
95 manext=.1
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.
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
101 infodir=${prefix}/info
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
102
3079
7c17d7f9d242 * Makefile.in (srcdir): Remove comment saying this doesn't work.
Jim Blandy <jimb@redhat.com>
parents: 3060
diff changeset
103 # 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
104 # expected to be in ${srcdir}/src, and the source code for Emacs's
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
105 # utility programs is expected to be in ${srcdir}/lib-src. This is
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
106 # set by the configure script's `--srcdir' option.
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
107 srcdir=@srcdir@
1647
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
108
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
109 # ==================== Emacs-specific directories ====================
bd3afc204773 Now partially conforms with GNU coding standards. I'm only checking
Jim Blandy <jimb@redhat.com>
parents: 1111
diff changeset
110
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
111 # These variables hold the values Emacs will actually use. They are
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
112 # based on the values of the standard Make variables above.
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
113
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
114 @inst_paths@# Where to install the lisp files distributed with
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
115 @inst_paths@# Emacs. This includes the Emacs version, so that the
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
116 @inst_paths@# lisp files for different versions of Emacs will install
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
117 @inst_paths@# themselves in separate directories.
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
118 @inst_paths@lispdir=${datadir}/emacs/${version}/lisp
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
119
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
120 @inst_paths@# Directories Emacs should search for lisp files specific
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
121 @inst_paths@# to this site (i.e. customizations), before consulting
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
122 @inst_paths@# ${lispdir}. This should be a colon-separated list of
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
123 @inst_paths@# directories.
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
124 @inst_paths@locallisppath=${datadir}/emacs/site-lisp
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
125
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
126 # 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
127 # 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
128 # better be served by changing locallisppath. This
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
129 # should be a colon-separated list of directories.
1940
0fe3520eb87b * Makefile.in (lisppath): Don't include externallispdir in this.
Jim Blandy <jimb@redhat.com>
parents: 1899
diff changeset
130 lisppath=${locallisppath}:${lispdir}
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 for its lisp files while
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
133 # 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
134 # 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
135 # before they've been installed in their final location.
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
136 # It's usually identical to lisppath, except that the
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
137 # 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
138 # 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
139 # colon-separated list of directories.
2817
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
140 buildlisppath=${srcdir}/lisp
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
141
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
142 @inst_paths@# Where to install the other architecture-independent
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
143 @inst_paths@# data files distributed with Emacs (like the tutorial,
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
144 @inst_paths@# the cookie recipes and the Zippy database). This path
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
145 @inst_paths@# usually contains the Emacs version number, so the data
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
146 @inst_paths@# files for multiple versions of Emacs may be installed
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
147 @inst_paths@# at once.
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
148 @inst_paths@etcdir=${datadir}/emacs/${version}/etc
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
149
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
150 @inst_paths@# Where to create and expect the locking directory, where
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
151 @inst_paths@# the Emacs locking code keeps track of which files are
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
152 @inst_paths@# currently being edited.
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
153 @inst_paths@lockdir=${statedir}/emacs/lock
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
154
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
155 @inst_paths@# Where to put executables to be run by Emacs rather than
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
156 @inst_paths@# the user. This path usually includes the Emacs version
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
157 @inst_paths@# and configuration name, so that multiple configurations
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
158 @inst_paths@# for multiple versions of Emacs may be installed at
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
159 @inst_paths@# once.
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
160 @inst_paths@archlibdir=${libdir}/emacs/${version}/${configuration}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
161
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
162 # ====================== Developer's configuration =======================
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
163
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
164 # 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
165 # 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
166 # 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
167 # 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
168 # lisp and etc directories.
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
169
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
170 @rip_paths@lispdir=${srcdir}/lisp
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
171 @rip_paths@externallispdir=${srcdir}/externallisp
4748
a56afa1b45c1 (@rip_paths@locallisppath): Delete ${datadir}/emacs/site-lisp.
Richard M. Stallman <rms@gnu.org>
parents: 4747
diff changeset
172 @rip_paths@locallisppath=${srcdir}/site-lisp
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
173 @rip_paths@etcdir=${srcdir}/etc
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
174 @rip_paths@lockdir=${srcdir}/lock
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
175 @rip_paths@archlibdir=${srcdir}/lib-src
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
176 @rip_paths@infodir=${srcdir}/info
2225
19e1e3cb7415 Added `Developer's configuration' section.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2099
diff changeset
177
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
178 # ==================== Utility Programs for the Build ====================
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
179
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
180 # Allow the user to specify the install program.
3090
7b418622d32b (INSTALL): Add definition.
Richard M. Stallman <rms@gnu.org>
parents: 3079
diff changeset
181 INSTALL = @INSTALL@
3010
4ca5a6bd174b * configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents: 2988
diff changeset
182 INSTALL_PROGRAM = @INSTALL_PROGRAM@
4ca5a6bd174b * configure.in: Add support for the `--exec-prefix' option.
Jim Blandy <jimb@redhat.com>
parents: 2988
diff changeset
183 INSTALL_DATA = @INSTALL_DATA@
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
184
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
185 # ============================= Targets ==============================
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
186
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
187 # 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
188 MFLAGS =
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
189 MAKEFLAGS = $(MFLAGS)
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
190
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
191 # Subdirectories to make recursively. `lisp' is not included
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
192 # because the compiled lisp files are part of the distribution
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
193 # and you cannot remake them without installing Emacs first.
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
194 SUBDIR = lib-src src
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
195
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
196 # The makefiles of the directories in $SUBDIR.
2812
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
197 SUBDIR_MAKEFILES = lib-src/Makefile src/Makefile oldXMenu/Makefile
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
198
1860
f7565191703b * Makefile.in (COPYDIR, COPYDESTS): Remove ${srcdir}/info and
Jim Blandy <jimb@redhat.com>
parents: 1821
diff changeset
199 # 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
200 # 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
201 # 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
202 # 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
203 # 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
204 COPYDIR = ${srcdir}/etc ${srcdir}/lisp
e54c45bae557 (COPYDESTS, COPYDIR): Delete external-lisp dir.
Richard M. Stallman <rms@gnu.org>
parents: 3179
diff changeset
205 COPYDESTS = ${etcdir} ${lispdir}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
206
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
207 all: src/paths.h ${SUBDIR}
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
208
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
209 removenullpaths=sed -e 's/^://' -e 's/:$$//' -e 's/::/:/'
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
210
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
211 # 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
212 # 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
213 # 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
214 # 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
215 # src/paths.h.tmp, which isn't much.
1035
56b6d2f4383a *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 749
diff changeset
216 # Note that sed is not in /bin on 386bsd.
3257
be4f258fb329 * Makefile.in (src:, lib-src:, FRC:): force the src and lib-src
Jim Blandy <jimb@redhat.com>
parents: 3254
diff changeset
217 src/paths.h: Makefile ${srcdir}/src/paths.h.in FRC.src.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
218 @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
219 @(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
220 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
221 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
222 -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
223 -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
224 -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
225 -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
226 -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
227 -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";')
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
228 @${srcdir}/move-if-change src/paths.h.tmp src/paths.h
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
229
3257
be4f258fb329 * Makefile.in (src:, lib-src:, FRC:): force the src and lib-src
Jim Blandy <jimb@redhat.com>
parents: 3254
diff changeset
230 src: lib-src FRC.src
be4f258fb329 * Makefile.in (src:, lib-src:, FRC:): force the src and lib-src
Jim Blandy <jimb@redhat.com>
parents: 3254
diff changeset
231 lib-src: FRC.lib-src
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
232
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
233 .RECURSIVE: ${SUBDIR}
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
234
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
235 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
236 cd $@; $(MAKE) all ${MAKEFLAGS} \
3158
665ae1c5c3b3 * Makefile.in (${SUBDIR}): Pass the value of the make variable to
Jim Blandy <jimb@redhat.com>
parents: 3140
diff changeset
237 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
665ae1c5c3b3 * Makefile.in (${SUBDIR}): Pass the value of the make variable to
Jim Blandy <jimb@redhat.com>
parents: 3140
diff changeset
238 prefix='${prefix}' srcdir='${srcdir}/$@' libdir='${libdir}'
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
239
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
240 ## 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
241 ## 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
242 ## 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
243 ## the right default values for the path variables.
4705
bbeec82f0416 (lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed.
Roland McGrath <roland@gnu.org>
parents: 4693
diff changeset
244 lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile vpath.sed
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
245 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
246 @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
247 @(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
248 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
249 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
250 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
251 echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \
4705
bbeec82f0416 (lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed.
Roland McGrath <roland@gnu.org>
parents: 4693
diff changeset
252 subdir=lib-src; \
2812
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
253 sed < ${srcdir}/lib-src/Makefile.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
254 -e 's|^\(version *=\).*$$|\1'"${version}"'|' \
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
255 -e 's|^\(configname *=\).*$$|\1'"${configuration}"'|' \
2430
094bec4c13e9 lisp/ * Makefile.in (src/paths.h): Don't echo the huge sed command we
Jim Blandy <jimb@redhat.com>
parents: 2361
diff changeset
256 -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
257 -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
258 -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \
2812
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
259 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/lib-src|' \
4705
bbeec82f0416 (lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed.
Roland McGrath <roland@gnu.org>
parents: 4693
diff changeset
260 @vpath_sed@ \
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
261 -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
262 -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \
3582
eb75df1104eb * configure.in: Test for bison.
Jim Blandy <jimb@redhat.com>
parents: 3426
diff changeset
263 -e 's|^\(YACC *=\).*$$|\1'"${YACC}"'|' \
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
264 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
2710
c64e97b1685b * Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
Jim Blandy <jimb@redhat.com>
parents: 2623
diff changeset
265 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \
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 -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
267 -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
268 -e '/^# DIST: /d') > lib-src/Makefile.tmp
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
269 @${srcdir}/move-if-change lib-src/Makefile.tmp lib-src/Makefile
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
270 chmod -w lib-src/Makefile
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
271
4705
bbeec82f0416 (lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed.
Roland McGrath <roland@gnu.org>
parents: 4693
diff changeset
272 src/Makefile: ${srcdir}/src/Makefile.in Makefile vpath.sed
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
273 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
274 @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
275 @(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
276 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
277 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
278 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
279 echo "# \`${srcdir}/src/Makefile.in' itself." ; \
4705
bbeec82f0416 (lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed.
Roland McGrath <roland@gnu.org>
parents: 4693
diff changeset
280 subdir=src; \
2812
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
281 sed < ${srcdir}/src/Makefile.in \
3790
554e6c290291 * Makefile.in (src/Makefile): Don't bother exiting single quotes
Jim Blandy <jimb@redhat.com>
parents: 3786
diff changeset
282 -e 's|^\(srcdir *=\).*$$|\1${srcdir}/src|' \
4705
bbeec82f0416 (lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed.
Roland McGrath <roland@gnu.org>
parents: 4693
diff changeset
283 @vpath_sed@ \
3790
554e6c290291 * Makefile.in (src/Makefile): Don't bother exiting single quotes
Jim Blandy <jimb@redhat.com>
parents: 3786
diff changeset
284 -e 's|^CC *=.*$$|CC=${CC}|' \
554e6c290291 * Makefile.in (src/Makefile): Don't bother exiting single quotes
Jim Blandy <jimb@redhat.com>
parents: 3786
diff changeset
285 -e 's|^CPP *=.*$$|CPP=${CPP}|' \
554e6c290291 * Makefile.in (src/Makefile): Don't bother exiting single quotes
Jim Blandy <jimb@redhat.com>
parents: 3786
diff changeset
286 -e 's|^LN_S *=.*$$|LN_S=${LN_S}|' \
554e6c290291 * Makefile.in (src/Makefile): Don't bother exiting single quotes
Jim Blandy <jimb@redhat.com>
parents: 3786
diff changeset
287 -e 's|^CFLAGS *=.*$$|CFLAGS=${CFLAGS}|' \
4124
a91cdccf5458 * Makefile.in (src/Makefile): Propagate C_SWITCH_SYSTEM to the src
Jim Blandy <jimb@redhat.com>
parents: 3840
diff changeset
288 -e 's|^\(C_SWITCH_SYSTEM *=\).*$$|\1'"${C_SWITCH_SYSTEM}"'|' \
3790
554e6c290291 * Makefile.in (src/Makefile): Don't bother exiting single quotes
Jim Blandy <jimb@redhat.com>
parents: 3786
diff changeset
289 -e 's|^\(LD_SWITCH_X_SITE *=\).*$$|\1${LD_SWITCH_X_SITE}|' \
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
290 -e '/^# DIST: /d') > src/Makefile.tmp
2498
0126ca788e99 * Makefile.in (clean mostlyclean): Missing right paren.
Jim Blandy <jimb@redhat.com>
parents: 2430
diff changeset
291 @${srcdir}/move-if-change src/Makefile.tmp src/Makefile
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
292 chmod -w src/Makefile
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
293
4705
bbeec82f0416 (lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed.
Roland McGrath <roland@gnu.org>
parents: 4693
diff changeset
294 oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile.in Makefile vpath.sed
2809
8d00a436bfcc original log message lost to overeager RCS user -JimB
Jim Blandy <jimb@redhat.com>
parents: 2710
diff changeset
295 rm -f oldXMenu/Makefile.tmp
3021
cf7b1c23e9a7 * Makefile.in: Doc fix.
Jim Blandy <jimb@redhat.com>
parents: 3010
diff changeset
296 @echo "Producing \`oldXMenu/Makefile' from \`${srcdir}/oldXMenu/Makefile.in'."
cf7b1c23e9a7 * Makefile.in: Doc fix.
Jim Blandy <jimb@redhat.com>
parents: 3010
diff changeset
297 @(echo "# This file is generated from \`${srcdir}/oldXMenu/Makefile.in'." ; \
2812
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
298 echo "# If you are thinking about editing it, you should seriously consider" ; \
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
299 echo "# running \`make oldXMenu/Makefile' at the top of the" ; \
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
300 echo "# Emacs build tree instead, or editing" ; \
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
301 echo "# \`${srcdir}/oldXMenu/Makefile.in' itself." ; \
4705
bbeec82f0416 (lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed.
Roland McGrath <roland@gnu.org>
parents: 4693
diff changeset
302 subdir=oldXMenu; \
2859
422fbc398a11 * Makefile.in (oldXMenu/Makefile): Take oldXMenu/Makefile.in as
Jim Blandy <jimb@redhat.com>
parents: 2819
diff changeset
303 sed < ${srcdir}/oldXMenu/Makefile.in \
2812
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
304 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \
4705
bbeec82f0416 (lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Depend on vpath.sed.
Roland McGrath <roland@gnu.org>
parents: 4693
diff changeset
305 @vpath_sed@ \
2988
9403c9149e79 * Makefile.in (C_SWITCH_X_SITE): New variable - get this from
Jim Blandy <jimb@redhat.com>
parents: 2974
diff changeset
306 -e 's|^\(C_SWITCH_X_SITE *=\).*$$|\1'"${C_SWITCH_X_SITE}"'|' \
2812
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
307 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
308 -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
309 -e '/^# DIST: /d') > oldXMenu/Makefile.tmp
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
310 @${srcdir}/move-if-change oldXMenu/Makefile.tmp oldXMenu/Makefile
cea361c342f4 Install ${srcdir} changes from DJM.
Jim Blandy <jimb@redhat.com>
parents: 2809
diff changeset
311 chmod -w oldXMenu/Makefile
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
312
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
313 Makefile:
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
314 ./config.status
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
315
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
316 # ==================== Installation ====================
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
317
1821
04fb1d3d6992 JimB's changes since January 18th
Jim Blandy <jimb@redhat.com>
parents: 1767
diff changeset
318 ## 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
319 ## 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
320 ## this Makefile as well.
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
321
2817
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
322 ## On AIX, use tar xBf.
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
323 ## On Xenix, use tar xpf.
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
324
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
325 ## 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
326 ## 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
327 ## 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
328 ## 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
329 ## source exists and is distinct from the destination.
3060
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
330 install: all do-install
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
331
3345
38168270a9ca (do-install): Copy the DOC-* files from the build
Richard M. Stallman <rms@gnu.org>
parents: 3344
diff changeset
332 ### 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
333 ### as well as lots of things from ${srcdir}/etc.
3060
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
334 do-install: mkdir
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
335 (cd lib-src; \
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
336 $(MAKE) install ${MAKEFLAGS} prefix=${prefix} \
3060
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
337 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
338 archlibdir=${archlibdir})
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
339 -set ${COPYDESTS} ; \
3123
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
340 for dir in ${COPYDIR} ; do \
3310
2807618b3f72 * Makefile.in (mkdir, clean, mostlyclean, do-install): Use `(cd
Jim Blandy <jimb@redhat.com>
parents: 3278
diff changeset
341 if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \
3179
2852a2acef36 (do-install): Delete the dest dir, not the source dir,
Richard M. Stallman <rms@gnu.org>
parents: 3158
diff changeset
342 rm -rf $$1 ; \
3123
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
343 fi ; \
3184
29de1b20b68b (do-install): Add `shift' command.
Richard M. Stallman <rms@gnu.org>
parents: 3180
diff changeset
344 shift ; \
3123
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
345 done
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
346 -set ${COPYDESTS} ; \
3060
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
347 mkdir ${COPYDESTS} ; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
348 for dir in ${COPYDIR} ; do \
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
349 dest=$$1 ; shift ; \
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
350 [ -d $${dir} ] \
3310
2807618b3f72 * Makefile.in (mkdir, clean, mostlyclean, do-install): Use `(cd
Jim Blandy <jimb@redhat.com>
parents: 3278
diff changeset
351 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
2817
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
352 && (echo "Copying $${dir}..." ; \
3363
6dec27d736e2 (do-install): Use `-' in tar options.
Richard M. Stallman <rms@gnu.org>
parents: 3345
diff changeset
353 (cd $${dir}; tar -cf - . )|(cd $${dest};umask 0; tar -xvf - ); \
2623
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
354 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
355 rm -rf $${subdir}/RCS ; \
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
356 rm -rf $${subdir}/CVS ; \
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
357 rm -f $${subdir}/\#* ; \
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
358 rm -f $${subdir}/*~ ; \
b951532eca82 * configure.in: Use the AC_ALLOCA test.
Jim Blandy <jimb@redhat.com>
parents: 2498
diff changeset
359 done) ; \
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
360 done
3426
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
361 if [ `(cd ./etc; /bin/pwd)` != `(cd ${srcdir}/etc; /bin/pwd)` ]; \
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
362 then \
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
363 echo "Copying etc/DOC* ..." ; \
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
364 (cd etc; tar -cf - DOC*)|(cd ${etcdir}; umask 0; tar -xvf - ); \
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
365 else true; fi
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
366 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
367 then (cd ${srcdir}/info ; \
3123
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
368 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
369 ${INSTALL_DATA} dir ${infodir}/dir ; \
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
370 fi ; \
4559
521dc133f58b (do-install): Install info/sc*.
Richard M. Stallman <rms@gnu.org>
parents: 4552
diff changeset
371 for f in cl* emacs* forms* gnus* info* sc* vip* ; do \
3123
0e9f73b6245d * Makefile.in (do-install): Don't remove a destination directory
Jim Blandy <jimb@redhat.com>
parents: 3090
diff changeset
372 ${INSTALL_DATA} $$f ${infodir}/$$f ; \
3426
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
373 done); \
7ecee84713e6 (do-install): Partially rewrite using `if'.
Richard M. Stallman <rms@gnu.org>
parents: 3423
diff changeset
374 else true; fi
2817
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
375 cd ${srcdir}/etc; for page in emacs etags ctags ; do \
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
376 ${INSTALL_DATA} $${page}.1 ${mandir}/$${page}${manext} ; \
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
377 done
2817
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
378 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version}
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
379 -chmod 1755 ${bindir}/emacs-${version}
2817
d28c54ba888e More changes from David J. Mackenzie.
Jim Blandy <jimb@redhat.com>
parents: 2812
diff changeset
380 rm -f ${bindir}/emacs
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
381 -ln ${bindir}/emacs-${version} ${bindir}/emacs
596
d02d6c2f7f80 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 550
diff changeset
382
1698
e0acfb7b804d * INSTALL: The build process produces an executable called `emacs'
Jim Blandy <jimb@redhat.com>
parents: 1686
diff changeset
383 ### 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
384 ### 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
385 ### /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
386 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag.
3257
be4f258fb329 * Makefile.in (src:, lib-src:, FRC:): force the src and lib-src
Jim Blandy <jimb@redhat.com>
parents: 3254
diff changeset
387 mkdir: FRC.mkdir
3060
6bb1c8f853cb * Makefile.in (src/paths.h): Edit the `infodir' variable into this
Jim Blandy <jimb@redhat.com>
parents: 3021
diff changeset
388 ./lib-src/make-path ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \
3140
852864d39b0a * Makefile.in (mkdir): Make all the directories in locallisppath.
Jim Blandy <jimb@redhat.com>
parents: 3123
diff changeset
389 ${bindir} ${datadir} ${libdir} \
852864d39b0a * Makefile.in (mkdir): Make all the directories in locallisppath.
Jim Blandy <jimb@redhat.com>
parents: 3123
diff changeset
390 `echo ${locallisppath} | sed 's/:/ /'`
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
391 chmod 777 ${COPYDESTS} ${lockdir}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
392
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
393 ### 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
394 ### 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
395 ### create).
3786
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
396 ###
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
397 ### 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
398 uninstall:
3786
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
399 (cd lib-src; \
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
400 $(MAKE) ${MAKEFLAGS} uninstall \
3786
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
401 prefix=${prefix} exec_prefix=${exec_prefix} \
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
402 bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
3786
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
403 for dir in ${lispdir} ${etcdir} ; do \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
404 case `(cd $${dir} ; pwd)` in \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
405 `(cd ${srcdir} ; pwd)`* ) ;; \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
406 * ) rm -rf $${dir} ;; \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
407 esac ; \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
408 case $${dir} in \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
409 ${datadir}/emacs/${version}/* ) \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
410 rm -rf ${datadir}/emacs/${version} \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
411 ;; \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
412 esac ; \
9f31f2f16644 * Makefile.in (uninstall): Don't remove the lisp and etc
Jim Blandy <jimb@redhat.com>
parents: 3780
diff changeset
413 done
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
414 (cd ${infodir}; rm -f cl* emacs* forms* info* vip*)
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
415 (cd ${mandir}; rm -f emacs.1 etags.1 ctags.1)
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
416 (cd ${bindir}; rm -f emacs-${version} emacs)
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
417
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
418
3278
6376735acde8 * Makefile.in: Use Makefile comments, not C comments.
Jim Blandy <jimb@redhat.com>
parents: 3257
diff changeset
419 ### Some makes seem to remember that they've built something called FRC,
6376735acde8 * Makefile.in: Use Makefile comments, not C comments.
Jim Blandy <jimb@redhat.com>
parents: 3257
diff changeset
420 ### so you can only use a given FRC once per makefile.
3257
be4f258fb329 * Makefile.in (src:, lib-src:, FRC:): force the src and lib-src
Jim Blandy <jimb@redhat.com>
parents: 3254
diff changeset
421 FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.mkdir:
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
422 FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean:
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
423
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
424 # ==================== Cleaning up and miscellanea ====================
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
425
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
426 ### `mostlyclean'
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
427 ### 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
428 ### 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
429 ### 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
430 ### is rarely necessary and takes a lot of time.
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
431 mostlyclean: FRC.mostlyclean
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
432 (cd src; $(MAKE) ${MAKEFLAGS} mostlyclean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
433 (cd oldXMenu; $(MAKE) ${MAKEFLAGS} mostlyclean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
434 (cd lib-src; $(MAKE) ${MAKEFLAGS} mostlyclean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
435 (cd man; $(MAKE) ${MAKEFLAGS} mostlyclean)
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
436
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
437 ### `clean'
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
438 ### 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
439 ### 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
440 ### 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
441 ### 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
442 ### with them.
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
443 ###
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
444 ### Delete `.dvi' files here if they are not part of the distribution.
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
445 clean: FRC.clean
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
446 (cd src; $(MAKE) ${MAKEFLAGS} clean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
447 (cd oldXMenu; $(MAKE) ${MAKEFLAGS} clean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
448 (cd lib-src; $(MAKE) ${MAKEFLAGS} clean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
449 (cd man; $(MAKE) ${MAKEFLAGS} clean)
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
450
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
451 ### `distclean'
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
452 ### 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
453 ### 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
454 ### 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
455 ### `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
456 ### distribution.
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
457 top_distclean=\
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
458 rm -f config.status build-install ; \
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
459 rm -f Makefile ${SUBDIR_MAKEFILES} ; \
3840
1c293134f823 * Makefile.in (top_distclean): Use -f switch when cleaning out
Jim Blandy <jimb@redhat.com>
parents: 3790
diff changeset
460 (cd lock ; rm -f *)
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
461 distclean: FRC.distclean
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
462 (cd src; $(MAKE) ${MAKEFLAGS} distclean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
463 (cd oldXMenu; $(MAKE) ${MAKEFLAGS} distclean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
464 (cd lib-src; $(MAKE) ${MAKEFLAGS} distclean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
465 (cd man; $(MAKE) ${MAKEFLAGS} distclean)
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
466 ${top_distclean}
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
467
617
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 ### `realclean'
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
470 ### Delete everything from the current directory that can be
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
471 ### reconstructed with this Makefile. This typically includes
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
472 ### everything deleted by distclean, plus more: C source files
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
473 ### 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
474 ###
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
475 ### One exception, however: `make realclean' should not delete
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
476 ### `configure' even if `configure' can be remade using a rule in the
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
477 ### Makefile. More generally, `make realclean' should not delete
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
478 ### 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
479 ### begin to build the program.
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
480 realclean: FRC.realclean
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
481 (cd src; $(MAKE) ${MAKEFLAGS} realclean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
482 (cd oldXMenu; $(MAKE) ${MAKEFLAGS} realclean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
483 (cd lib-src; $(MAKE) ${MAKEFLAGS} realclean)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
484 -(cd man; $(MAKE) ${MAKEFLAGS} realclean)
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
485 ${top_distclean}
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
486
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
487 ### 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
488 ### 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
489 ### 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
490 ### 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
491 extraclean:
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
492 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MAKEFLAGS} extraclean); done
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
493 -(cd lock; rm *)
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
494 -rm config.status config-tmp-*
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
495 -rm -f *~ \#*
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
496
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
497 ### 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
498 ### 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
499 ### 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
500 ### 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
501 ### 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
502 ### if you want to mung them.
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
503 ###
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
504 ### 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
505 ### 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
506 ### corrected.
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
507 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
508 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
509
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
510 unlock:
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
511 chmod u+w $(SOURCES) cpp/*
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
512 -(cd elisp; chmod u+w Makefile README *.texi)
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
513 (cd etc; $(MAKE) $(MAKEFLAGS) unlock)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
514 (cd lib-src; $(MAKE) $(MAKEFLAGS) unlock)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
515 (cd lisp; $(MAKE) $(MAKEFLAGS) unlock)
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
516 (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
517 (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
518 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
519 (cd src; $(MAKE) $(MAKEFLAGS) unlock)
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
520
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
521 relock:
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
522 chmod u-w $(SOURCES) cpp/*
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
523 -(cd elisp; chmod u-w Makefile README *.texi)
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
524 (cd etc; $(MAKE) $(MAKEFLAGS) relock)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
525 (cd lib-src; $(MAKE) $(MAKEFLAGS) relock)
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
526 (cd lisp; $(MAKE) $(MAKEFLAGS) relock)
2261
17cbbc48a154 Added unlock and relock productions.
Eric S. Raymond <esr@snark.thyrsus.com>
parents: 2225
diff changeset
527 (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
528 (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
529 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
530 (cd src; $(MAKE) $(MAKEFLAGS) relock)
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
531
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
532 TAGS tags: lib-src
3749
f3f6220ce685 (TAGS): cd to src to run etags.
Richard M. Stallman <rms@gnu.org>
parents: 3582
diff changeset
533 (cd ${srcdir}/src; \
f3f6220ce685 (TAGS): cd to src to run etags.
Richard M. Stallman <rms@gnu.org>
parents: 3582
diff changeset
534 ../lib-src/etags *.[ch] ../lisp/*.el ../lisp/term/*.el)
617
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
535
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
536 check:
cde1f15848c6 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 604
diff changeset
537 @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
538
eca8812e61cd *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 617
diff changeset
539 dist:
1686
10650dfc82d0 * Makefile.in (install, install.sysv, install.xenix, install.aix):
Jim Blandy <jimb@redhat.com>
parents: 1647
diff changeset
540 cd ${srcdir}; make-dist
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
541
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
542 info:
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
543 (cd ${srcdir}/man; $(MAKE) ${MAKEFLAGS} info)
3780
20b847f36ade * Makefile.in (CPP): New variable.
Jim Blandy <jimb@redhat.com>
parents: 3749
diff changeset
544 dvi:
4747
0019d042d4a6 (do-install): Don't abort if ln or chmod at the end
Brian Fox <bfox@gnu.org>
parents: 4705
diff changeset
545 (cd ${srcdir}/man; $(MAKE) ${MAKEFLAGS} dvi)