1992-04-19 08:53:55 +00:00
|
|
|
# DIST: This is the distribution Makefile for Emacs. configure can
|
|
|
|
# DIST: make most of the changes to this file you might want, so try
|
|
|
|
# DIST: that first.
|
1992-01-14 07:27:56 +00:00
|
|
|
|
2006-12-03 01:00:52 +00:00
|
|
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
2010-01-13 08:35:10 +00:00
|
|
|
# 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
2008-01-07 08:53:20 +00:00
|
|
|
# Free Software Foundation, Inc.
|
2001-02-20 13:36:21 +00:00
|
|
|
|
|
|
|
# This file is part of GNU Emacs.
|
|
|
|
|
2008-05-07 07:35:58 +00:00
|
|
|
# GNU Emacs is free software: you can redistribute it and/or modify
|
2001-02-20 13:36:21 +00:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2008-05-07 07:35:58 +00:00
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
2001-02-20 13:36:21 +00:00
|
|
|
|
|
|
|
# GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2008-05-07 07:35:58 +00:00
|
|
|
# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
### Commentary:
|
2001-02-20 13:36:21 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# make all to compile and build Emacs.
|
|
|
|
# make install to install it.
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# make TAGS to update tags tables.
|
1992-01-14 07:27:56 +00:00
|
|
|
#
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# make clean or make mostlyclean
|
|
|
|
# Delete all files from the current directory that are normally
|
1992-12-24 05:56:33 +00:00
|
|
|
# created by building the program. Don't delete the files that
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# record the configuration. Also preserve files that could be made
|
|
|
|
# by building, but normally aren't because the distribution comes
|
|
|
|
# with them.
|
|
|
|
#
|
|
|
|
# Delete `.dvi' files here if they are not part of the distribution.
|
2003-02-04 14:56:31 +00:00
|
|
|
#
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# make distclean
|
|
|
|
# Delete all files from the current directory that are created by
|
|
|
|
# configuring or building the program. If you have unpacked the
|
|
|
|
# source and built the program without creating any other files,
|
|
|
|
# `make distclean' should leave only the files that were in the
|
|
|
|
# distribution.
|
2003-02-04 14:56:31 +00:00
|
|
|
#
|
1995-02-07 23:55:01 +00:00
|
|
|
# make maintainer-clean
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# Delete everything from the current directory that can be
|
|
|
|
# reconstructed with this Makefile. This typically includes
|
2004-04-01 02:12:09 +00:00
|
|
|
# everything deleted by distclean, plus more: .elc files,
|
|
|
|
# C source files produced by Bison, tags tables, info files,
|
|
|
|
# and so on.
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
#
|
|
|
|
# make extraclean
|
|
|
|
# Still more severe - delete backup and autosave files, too.
|
2004-11-08 16:40:33 +00:00
|
|
|
#
|
2004-11-11 14:54:26 +00:00
|
|
|
# make bootstrap
|
2008-06-21 01:38:39 +00:00
|
|
|
# Removes all the compiled files to force a new bootstrap from a
|
|
|
|
# clean slate, and then build in the normal way.
|
1992-01-14 07:27:56 +00:00
|
|
|
|
|
|
|
SHELL = /bin/sh
|
1994-04-14 03:42:48 +00:00
|
|
|
|
2004-02-09 23:22:28 +00:00
|
|
|
# This may not work with certain non-GNU make's. It only matters when
|
|
|
|
# inheriting a CDPATH not starting with the current directory.
|
|
|
|
CDPATH=
|
|
|
|
|
1994-04-14 03:42:48 +00:00
|
|
|
# If Make doesn't predefine MAKE, set it here.
|
|
|
|
@SET_MAKE@
|
1992-01-14 07:27:56 +00:00
|
|
|
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# ==================== Things `configure' Might Edit ====================
|
1992-01-14 07:27:56 +00:00
|
|
|
|
* Makefile.in (clean mostlyclean): Missing right paren.
Change `configure' to a mixture of custom code and autoconf stuff.
autoconf can't derive all the information we need, but we'd really
like to be able to take advantage of some of its tests, and its
file-editing facilities.
* configure.in: Renamed from configure.
Quote the sections of shell script we want copied literally to
the configure script.
(compile): Initialize this to make the autoconf macros' code happy.
Use AC_PROG_CC, AC_CONST, and AC_RETSIGTYPE instead of writing out
code to do their jobs.
Use autoconf to produce Makefile and src/config.h.
Remove the Makefile-style comment that autoconf places at the top
of src/config.h.
(config_h_opts): Removed - no longer necessary.
* Makefile.in (configname): Renamed to configuration.
(CONFIG_CFLAGS): Renamed to DEFS.
(CC, DEFS, C_SWITCH_SYSTEM, version, configuration): Adjusted to
get values via autoload @cookies@.
(libsrc_libs): Get this from autoconf. We used to do nothing
about this.
(${SUBDIR}): Pass DEFS to submakes instead of CONFIG_CFLAGS.
* Makefile.in (src/paths.h, lib-src/Makefile, src/Makefile): Don't
echo the move-if-change command.
1993-04-10 06:01:49 +00:00
|
|
|
CC=@CC@
|
1993-06-16 23:46:17 +00:00
|
|
|
CPP=@CPP@
|
* Makefile.in (clean mostlyclean): Missing right paren.
Change `configure' to a mixture of custom code and autoconf stuff.
autoconf can't derive all the information we need, but we'd really
like to be able to take advantage of some of its tests, and its
file-editing facilities.
* configure.in: Renamed from configure.
Quote the sections of shell script we want copied literally to
the configure script.
(compile): Initialize this to make the autoconf macros' code happy.
Use AC_PROG_CC, AC_CONST, and AC_RETSIGTYPE instead of writing out
code to do their jobs.
Use autoconf to produce Makefile and src/config.h.
Remove the Makefile-style comment that autoconf places at the top
of src/config.h.
(config_h_opts): Removed - no longer necessary.
* Makefile.in (configname): Renamed to configuration.
(CONFIG_CFLAGS): Renamed to DEFS.
(CC, DEFS, C_SWITCH_SYSTEM, version, configuration): Adjusted to
get values via autoload @cookies@.
(libsrc_libs): Get this from autoconf. We used to do nothing
about this.
(${SUBDIR}): Pass DEFS to submakes instead of CONFIG_CFLAGS.
* Makefile.in (src/paths.h, lib-src/Makefile, src/Makefile): Don't
echo the move-if-change command.
1993-04-10 06:01:49 +00:00
|
|
|
C_SWITCH_SYSTEM=@c_switch_system@
|
* configure.in: Use the AC_ALLOCA test.
* Makefile.in (ALLOCA): New variable, to be set by ./configure.
(lib-src/Makefile): Edit the value of ALLOCA into lib-src/Makefile.
* Makefile.in (install): Print out the name of the directory we're
copying, so people can have some idea of whether we're making
progress.
* Makefile.in (install.aix, install.xenix, install.sysv, install):
Don't forget to re-create the COPYDESTS directories after we clear
them out.
* Makefile.in: Add autoconf cookies so that the configure
script can comment out sections of path variable definitions to
choose between the installable configuration and the run-in-place
configuration.
* configure.in: Add new option `--run-in-place', to select the
run-in-place path definitions.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Make sure that each source directory exists, and is different from
the destination directory; then, delete the destination before
copying over the source.
1993-05-03 02:06:16 +00:00
|
|
|
ALLOCA=@ALLOCA@
|
1993-05-09 22:51:16 +00:00
|
|
|
LN_S=@LN_S@
|
|
|
|
CFLAGS=@CFLAGS@
|
1997-07-27 21:40:24 +00:00
|
|
|
LDFLAGS=@LDFLAGS@
|
1997-07-30 04:22:56 +00:00
|
|
|
CPPFLAGS=@CPPFLAGS@
|
1993-05-23 21:49:20 +00:00
|
|
|
C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
|
1993-05-31 06:03:21 +00:00
|
|
|
LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@
|
2003-02-08 17:27:58 +00:00
|
|
|
EXEEXT=@EXEEXT@
|
2008-05-03 20:16:45 +00:00
|
|
|
MAKEINFO=@MAKEINFO@
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
|
|
|
|
### These help us choose version- and architecture-specific directories
|
|
|
|
### to install files in.
|
|
|
|
|
|
|
|
### This should be the number of the Emacs version we're building,
|
|
|
|
### like `18.59' or `19.0'.
|
* Makefile.in (clean mostlyclean): Missing right paren.
Change `configure' to a mixture of custom code and autoconf stuff.
autoconf can't derive all the information we need, but we'd really
like to be able to take advantage of some of its tests, and its
file-editing facilities.
* configure.in: Renamed from configure.
Quote the sections of shell script we want copied literally to
the configure script.
(compile): Initialize this to make the autoconf macros' code happy.
Use AC_PROG_CC, AC_CONST, and AC_RETSIGTYPE instead of writing out
code to do their jobs.
Use autoconf to produce Makefile and src/config.h.
Remove the Makefile-style comment that autoconf places at the top
of src/config.h.
(config_h_opts): Removed - no longer necessary.
* Makefile.in (configname): Renamed to configuration.
(CONFIG_CFLAGS): Renamed to DEFS.
(CC, DEFS, C_SWITCH_SYSTEM, version, configuration): Adjusted to
get values via autoload @cookies@.
(libsrc_libs): Get this from autoconf. We used to do nothing
about this.
(${SUBDIR}): Pass DEFS to submakes instead of CONFIG_CFLAGS.
* Makefile.in (src/paths.h, lib-src/Makefile, src/Makefile): Don't
echo the move-if-change command.
1993-04-10 06:01:49 +00:00
|
|
|
version=@version@
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
|
|
|
|
### This should be the name of the configuration we're building Emacs
|
|
|
|
### for, like `mips-dec-ultrix' or `sparc-sun-sunos'.
|
* Makefile.in (clean mostlyclean): Missing right paren.
Change `configure' to a mixture of custom code and autoconf stuff.
autoconf can't derive all the information we need, but we'd really
like to be able to take advantage of some of its tests, and its
file-editing facilities.
* configure.in: Renamed from configure.
Quote the sections of shell script we want copied literally to
the configure script.
(compile): Initialize this to make the autoconf macros' code happy.
Use AC_PROG_CC, AC_CONST, and AC_RETSIGTYPE instead of writing out
code to do their jobs.
Use autoconf to produce Makefile and src/config.h.
Remove the Makefile-style comment that autoconf places at the top
of src/config.h.
(config_h_opts): Removed - no longer necessary.
* Makefile.in (configname): Renamed to configuration.
(CONFIG_CFLAGS): Renamed to DEFS.
(CC, DEFS, C_SWITCH_SYSTEM, version, configuration): Adjusted to
get values via autoload @cookies@.
(libsrc_libs): Get this from autoconf. We used to do nothing
about this.
(${SUBDIR}): Pass DEFS to submakes instead of CONFIG_CFLAGS.
* Makefile.in (src/paths.h, lib-src/Makefile, src/Makefile): Don't
echo the move-if-change command.
1993-04-10 06:01:49 +00:00
|
|
|
configuration=@configuration@
|
|
|
|
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# ==================== Where To Install Things ====================
|
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# The default location for installation. Everything is placed in
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# subdirectories of this directory. The default values for many of
|
|
|
|
# the variables below are expressed in terms of this one, so you may
|
1993-05-23 04:42:11 +00:00
|
|
|
# not need to change them. This defaults to /usr/local.
|
|
|
|
prefix=@prefix@
|
1992-01-14 07:27:56 +00:00
|
|
|
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# Like `prefix', but used for architecture-specific files.
|
1993-05-24 06:08:13 +00:00
|
|
|
exec_prefix=@exec_prefix@
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# Where to install Emacs and other binaries that people will want to
|
|
|
|
# run directly (like etags).
|
1993-09-28 09:41:00 +00:00
|
|
|
bindir=@bindir@
|
1992-01-14 07:27:56 +00:00
|
|
|
|
2006-12-26 11:37:47 +00:00
|
|
|
# The root of the directory tree for read-only architecture-independent
|
|
|
|
# data files. ${datadir}, ${infodir} and ${mandir} are based on this.
|
|
|
|
datarootdir=@datarootdir@
|
|
|
|
|
1992-12-24 05:56:33 +00:00
|
|
|
# Where to install architecture-independent data files. ${lispdir}
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# and ${etcdir} are subdirectories of this.
|
1993-09-28 09:41:00 +00:00
|
|
|
datadir=@datadir@
|
1992-12-06 22:12:37 +00:00
|
|
|
|
|
|
|
# Where to install and expect the files that Emacs modifies as it
|
1997-08-07 18:37:17 +00:00
|
|
|
# runs. These files are all architecture-independent.
|
|
|
|
# Right now, this is not used.
|
1994-10-17 04:28:54 +00:00
|
|
|
sharedstatedir=@sharedstatedir@
|
1992-12-06 22:12:37 +00:00
|
|
|
|
|
|
|
# Where to install and expect executable files to be run by Emacs
|
|
|
|
# rather than directly by users, and other architecture-dependent
|
1992-12-24 05:56:33 +00:00
|
|
|
# data. ${archlibdir} is a subdirectory of this.
|
1994-10-11 21:36:30 +00:00
|
|
|
libexecdir=@libexecdir@
|
1992-12-06 22:12:37 +00:00
|
|
|
|
2008-12-13 20:12:08 +00:00
|
|
|
# Where to install Emacs's man pages.
|
|
|
|
# This used to allow choice of the numeric extension, but this made
|
|
|
|
# little sense since the files were always installed in man1/
|
|
|
|
# (and they contain cross-references that expect them to be there).
|
1993-09-28 09:41:00 +00:00
|
|
|
mandir=@mandir@
|
1995-11-11 20:52:52 +00:00
|
|
|
man1dir=$(mandir)/man1
|
2008-12-13 20:12:08 +00:00
|
|
|
MAN_PAGES=b2m.1 ctags.1 ebrowse.1 emacs.1 emacsclient.1 etags.1 \
|
|
|
|
grep-changelog.1 rcs-checkin.1
|
1992-12-06 22:12:37 +00:00
|
|
|
|
|
|
|
# Where to install and expect the info files describing Emacs. In the
|
|
|
|
# past, this defaulted to a subdirectory of ${prefix}/lib/emacs, but
|
|
|
|
# since there are now many packages documented with the texinfo
|
|
|
|
# system, it is inappropriate to imply that it is part of Emacs.
|
1993-09-28 09:41:00 +00:00
|
|
|
infodir=@infodir@
|
2009-03-04 05:42:07 +00:00
|
|
|
INFO_FILES=ada-mode auth autotype calc ccmode cl dbus dired-x ebrowse \
|
2009-12-15 03:02:42 +00:00
|
|
|
ede ediff edt eieio efaq eintr elisp emacs emacs-mime epa erc \
|
2009-10-07 18:26:40 +00:00
|
|
|
eshell eudc flymake forms gnus idlwave info mairix-el \
|
|
|
|
message mh-e newsticker nxml-mode org pcl-cvs pgg rcirc \
|
2009-11-17 04:34:45 +00:00
|
|
|
reftex remember sasl sc semantic ses sieve smtpmail speedbar \
|
|
|
|
tramp url vip viper widget woman
|
1992-01-14 07:27:56 +00:00
|
|
|
|
2002-07-21 20:20:59 +00:00
|
|
|
# Directory for local state files for all programs.
|
|
|
|
localstatedir=@localstatedir@
|
|
|
|
|
1994-10-16 10:00:36 +00:00
|
|
|
# Where to look for bitmap files.
|
|
|
|
bitmapdir=@bitmapdir@
|
|
|
|
|
1993-05-25 14:15:52 +00:00
|
|
|
# Where to find the source code. The source code for Emacs's C kernel is
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# expected to be in ${srcdir}/src, and the source code for Emacs's
|
|
|
|
# utility programs is expected to be in ${srcdir}/lib-src. This is
|
|
|
|
# set by the configure script's `--srcdir' option.
|
1998-08-02 00:22:31 +00:00
|
|
|
|
|
|
|
# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
|
* configure.in: Use the AC_ALLOCA test.
* Makefile.in (ALLOCA): New variable, to be set by ./configure.
(lib-src/Makefile): Edit the value of ALLOCA into lib-src/Makefile.
* Makefile.in (install): Print out the name of the directory we're
copying, so people can have some idea of whether we're making
progress.
* Makefile.in (install.aix, install.xenix, install.sysv, install):
Don't forget to re-create the COPYDESTS directories after we clear
them out.
* Makefile.in: Add autoconf cookies so that the configure
script can comment out sections of path variable definitions to
choose between the installable configuration and the run-in-place
configuration.
* configure.in: Add new option `--run-in-place', to select the
run-in-place path definitions.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Make sure that each source directory exists, and is different from
the destination directory; then, delete the destination before
copying over the source.
1993-05-03 02:06:16 +00:00
|
|
|
srcdir=@srcdir@
|
1992-01-14 07:27:56 +00:00
|
|
|
|
2007-09-06 05:12:28 +00:00
|
|
|
# Where the manpage source files are kept.
|
|
|
|
mansrcdir=$(srcdir)/doc/man
|
|
|
|
|
1993-10-03 19:55:09 +00:00
|
|
|
# Tell make where to find source files; this is needed for the makefiles.
|
|
|
|
VPATH=@srcdir@
|
|
|
|
|
1997-08-16 18:29:29 +00:00
|
|
|
# Where to find the application default.
|
|
|
|
x_default_search_path=@x_default_search_path@
|
|
|
|
|
2008-07-15 18:15:18 +00:00
|
|
|
# Location to install Emacs.app under NeXT/Open/GNUstep / Cocoa
|
|
|
|
ns_appdir=@ns_appdir@
|
2008-07-17 17:44:41 +00:00
|
|
|
ns_appbindir=@ns_appbindir@
|
|
|
|
ns_appresdir=@ns_appresdir@
|
2008-07-15 18:15:18 +00:00
|
|
|
|
2008-01-05 04:15:11 +00:00
|
|
|
# Where the etc/emacs.desktop file is to be installed.
|
|
|
|
desktopdir=$(datarootdir)/applications
|
|
|
|
|
|
|
|
# Where the etc/images/icons/hicolor directory is to be installed.
|
|
|
|
icondir=$(datarootdir)/icons
|
|
|
|
|
2008-03-03 02:26:40 +00:00
|
|
|
# The source directory for the icon files.
|
|
|
|
iconsrcdir=$(srcdir)/etc/images/icons
|
|
|
|
|
1992-12-06 22:12:37 +00:00
|
|
|
# ==================== Emacs-specific directories ====================
|
|
|
|
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# These variables hold the values Emacs will actually use. They are
|
|
|
|
# based on the values of the standard Make variables above.
|
|
|
|
|
1993-09-28 09:41:00 +00:00
|
|
|
# Where to install the lisp files distributed with
|
|
|
|
# Emacs. This includes the Emacs version, so that the
|
|
|
|
# lisp files for different versions of Emacs will install
|
|
|
|
# themselves in separate directories.
|
|
|
|
lispdir=@lispdir@
|
* configure.in: Use the AC_ALLOCA test.
* Makefile.in (ALLOCA): New variable, to be set by ./configure.
(lib-src/Makefile): Edit the value of ALLOCA into lib-src/Makefile.
* Makefile.in (install): Print out the name of the directory we're
copying, so people can have some idea of whether we're making
progress.
* Makefile.in (install.aix, install.xenix, install.sysv, install):
Don't forget to re-create the COPYDESTS directories after we clear
them out.
* Makefile.in: Add autoconf cookies so that the configure
script can comment out sections of path variable definitions to
choose between the installable configuration and the run-in-place
configuration.
* configure.in: Add new option `--run-in-place', to select the
run-in-place path definitions.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Make sure that each source directory exists, and is different from
the destination directory; then, delete the destination before
copying over the source.
1993-05-03 02:06:16 +00:00
|
|
|
|
1993-09-28 09:41:00 +00:00
|
|
|
# Directories Emacs should search for lisp files specific
|
|
|
|
# to this site (i.e. customizations), before consulting
|
|
|
|
# ${lispdir}. This should be a colon-separated list of
|
|
|
|
# directories.
|
|
|
|
locallisppath=@locallisppath@
|
* configure.in: Use the AC_ALLOCA test.
* Makefile.in (ALLOCA): New variable, to be set by ./configure.
(lib-src/Makefile): Edit the value of ALLOCA into lib-src/Makefile.
* Makefile.in (install): Print out the name of the directory we're
copying, so people can have some idea of whether we're making
progress.
* Makefile.in (install.aix, install.xenix, install.sysv, install):
Don't forget to re-create the COPYDESTS directories after we clear
them out.
* Makefile.in: Add autoconf cookies so that the configure
script can comment out sections of path variable definitions to
choose between the installable configuration and the run-in-place
configuration.
* configure.in: Add new option `--run-in-place', to select the
run-in-place path definitions.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Make sure that each source directory exists, and is different from
the destination directory; then, delete the destination before
copying over the source.
1993-05-03 02:06:16 +00:00
|
|
|
|
|
|
|
# Where Emacs will search to find its lisp files. Before
|
|
|
|
# changing this, check to see if your purpose wouldn't
|
|
|
|
# better be served by changing locallisppath. This
|
1992-04-19 08:53:55 +00:00
|
|
|
# should be a colon-separated list of directories.
|
1993-09-28 09:41:00 +00:00
|
|
|
lisppath=@lisppath@
|
1992-01-14 07:27:56 +00:00
|
|
|
|
* configure.in: Use the AC_ALLOCA test.
* Makefile.in (ALLOCA): New variable, to be set by ./configure.
(lib-src/Makefile): Edit the value of ALLOCA into lib-src/Makefile.
* Makefile.in (install): Print out the name of the directory we're
copying, so people can have some idea of whether we're making
progress.
* Makefile.in (install.aix, install.xenix, install.sysv, install):
Don't forget to re-create the COPYDESTS directories after we clear
them out.
* Makefile.in: Add autoconf cookies so that the configure
script can comment out sections of path variable definitions to
choose between the installable configuration and the run-in-place
configuration.
* configure.in: Add new option `--run-in-place', to select the
run-in-place path definitions.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Make sure that each source directory exists, and is different from
the destination directory; then, delete the destination before
copying over the source.
1993-05-03 02:06:16 +00:00
|
|
|
# Where Emacs will search for its lisp files while
|
|
|
|
# building. This is only used during the process of
|
|
|
|
# compiling Emacs, to help Emacs find its lisp files
|
|
|
|
# before they've been installed in their final location.
|
2003-02-04 14:56:31 +00:00
|
|
|
# It's usually identical to lisppath, except that
|
1994-08-09 23:26:13 +00:00
|
|
|
# it does not include locallisppath, and the
|
* configure.in: Use the AC_ALLOCA test.
* Makefile.in (ALLOCA): New variable, to be set by ./configure.
(lib-src/Makefile): Edit the value of ALLOCA into lib-src/Makefile.
* Makefile.in (install): Print out the name of the directory we're
copying, so people can have some idea of whether we're making
progress.
* Makefile.in (install.aix, install.xenix, install.sysv, install):
Don't forget to re-create the COPYDESTS directories after we clear
them out.
* Makefile.in: Add autoconf cookies so that the configure
script can comment out sections of path variable definitions to
choose between the installable configuration and the run-in-place
configuration.
* configure.in: Add new option `--run-in-place', to select the
run-in-place path definitions.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Make sure that each source directory exists, and is different from
the destination directory; then, delete the destination before
copying over the source.
1993-05-03 02:06:16 +00:00
|
|
|
# entry for the directory containing the installed lisp
|
|
|
|
# files has been replaced with ../lisp. This should be a
|
|
|
|
# colon-separated list of directories.
|
1993-05-15 23:57:11 +00:00
|
|
|
buildlisppath=${srcdir}/lisp
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1993-09-28 09:41:00 +00:00
|
|
|
# Where to install the other architecture-independent
|
|
|
|
# data files distributed with Emacs (like the tutorial,
|
|
|
|
# the cookie recipes and the Zippy database). This path
|
|
|
|
# usually contains the Emacs version number, so the data
|
|
|
|
# files for multiple versions of Emacs may be installed
|
|
|
|
# at once.
|
|
|
|
etcdir=@etcdir@
|
|
|
|
|
|
|
|
# Where to put executables to be run by Emacs rather than
|
|
|
|
# the user. This path usually includes the Emacs version
|
|
|
|
# and configuration name, so that multiple configurations
|
|
|
|
# for multiple versions of Emacs may be installed at
|
|
|
|
# once.
|
|
|
|
archlibdir=@archlibdir@
|
1993-03-17 13:23:14 +00:00
|
|
|
|
1994-02-22 23:56:15 +00:00
|
|
|
# Where to put the docstring file.
|
|
|
|
docdir=@docdir@
|
|
|
|
|
2002-07-21 20:20:59 +00:00
|
|
|
# Where to install Emacs game score files.
|
|
|
|
gamedir=@gamedir@
|
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# ==================== Utility Programs for the Build ====================
|
|
|
|
|
|
|
|
# Allow the user to specify the install program.
|
1993-05-25 20:00:53 +00:00
|
|
|
INSTALL = @INSTALL@
|
1993-05-24 06:08:13 +00:00
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
2003-01-06 14:55:12 +00:00
|
|
|
INSTALL_INFO = @INSTALL_INFO@
|
1996-08-29 20:54:02 +00:00
|
|
|
# By default, we uphold the dignity of our programs.
|
|
|
|
INSTALL_STRIP =
|
1992-04-19 08:53:55 +00:00
|
|
|
|
2005-11-01 11:48:27 +00:00
|
|
|
# We use gzip to compress installed .el files.
|
2005-11-03 17:00:25 +00:00
|
|
|
GZIP_PROG = @GZIP_PROG@
|
2005-11-01 11:48:27 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# ============================= Targets ==============================
|
1992-01-14 07:27:56 +00:00
|
|
|
|
2001-11-15 20:37:20 +00:00
|
|
|
# Program name transformation.
|
|
|
|
TRANSFORM = @program_transform_name@
|
|
|
|
|
1994-04-23 01:07:04 +00:00
|
|
|
# What emacs should be called when installed.
|
2003-02-08 17:27:58 +00:00
|
|
|
EMACS = `echo emacs${EXEEXT} | sed '$(TRANSFORM)'`
|
|
|
|
EMACSFULL = `echo emacs-${version}${EXEEXT} | sed '$(TRANSFORM)'`
|
1994-04-23 01:07:04 +00:00
|
|
|
|
1992-01-14 07:27:56 +00:00
|
|
|
# Subdirectories to make recursively. `lisp' is not included
|
2002-05-07 06:08:37 +00:00
|
|
|
# because the compiled lisp files are part of the distribution.
|
2001-03-29 14:24:43 +00:00
|
|
|
# leim is not included because it needs special handling.
|
2008-06-20 21:48:17 +00:00
|
|
|
#
|
|
|
|
# Actually, we now include `lisp' as well, since the compiled files
|
|
|
|
# are not included any more in case of bootstrap or in case Emacs was
|
|
|
|
# checked out from a VCS.
|
|
|
|
SUBDIR = lib-src src lisp
|
1992-01-14 07:27:56 +00:00
|
|
|
|
2008-03-28 09:58:35 +00:00
|
|
|
# The subdir makefiles created by config.status.
|
|
|
|
SUBDIR_MAKEFILES = lib-src/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispref/Makefile doc/lispintro/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile leim/Makefile lisp/Makefile
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
|
1993-02-14 14:26:06 +00:00
|
|
|
# Subdirectories to install, and where they'll go.
|
|
|
|
# lib-src's makefile knows how to install it, so we don't do that here.
|
1997-07-01 07:05:03 +00:00
|
|
|
# leim's makefile also knows how to install it, so we don't do that here.
|
1993-02-14 14:26:06 +00:00
|
|
|
# When installing the info files, we need to do special things to
|
|
|
|
# avoid nuking an existing dir file, so we don't do that here;
|
|
|
|
# instead, we have written out explicit code in the `install' targets.
|
1993-05-27 22:15:01 +00:00
|
|
|
COPYDIR = ${srcdir}/etc ${srcdir}/lisp
|
2006-03-03 12:02:31 +00:00
|
|
|
COPYDESTS = $(DESTDIR)${etcdir} $(DESTDIR)${lispdir}
|
1992-01-14 07:27:56 +00:00
|
|
|
|
2002-02-13 15:47:55 +00:00
|
|
|
all: ${SUBDIR} leim
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1994-07-07 02:44:58 +00:00
|
|
|
removenullpaths=sed -e 's/^://g' -e 's/:$$//g' -e 's/::/:/g'
|
1992-04-19 08:53:55 +00:00
|
|
|
|
1999-02-26 11:37:55 +00:00
|
|
|
# Generate epaths.h from epaths.in. This target is invoked by `configure'.
|
|
|
|
epaths-force: FRC
|
1994-05-27 08:17:46 +00:00
|
|
|
@(lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
|
|
|
|
buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
|
1997-08-16 18:29:29 +00:00
|
|
|
x_default_search_path=`echo ${x_default_search_path}`; \
|
2002-07-21 20:20:59 +00:00
|
|
|
gamedir=`echo ${gamedir}`; \
|
1999-02-26 11:37:55 +00:00
|
|
|
sed < ${srcdir}/src/epaths.in > epaths.h.$$$$ \
|
2005-06-20 13:54:33 +00:00
|
|
|
-e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'"$${lisppath}"'";' \
|
|
|
|
-e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'"$${buildlisppath}"'";' \
|
1994-05-27 08:17:46 +00:00
|
|
|
-e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \
|
|
|
|
-e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \
|
|
|
|
-e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \
|
1994-10-16 10:00:36 +00:00
|
|
|
-e 's;\(#.*PATH_BITMAPS\).*$$;\1 "${bitmapdir}";' \
|
1997-08-16 18:29:29 +00:00
|
|
|
-e 's;\(#.*PATH_X_DEFAULTS\).*$$;\1 "${x_default_search_path}";' \
|
2002-07-21 20:20:59 +00:00
|
|
|
-e 's;\(#.*PATH_GAME\).*$$;\1 "${gamedir}";' \
|
2004-06-11 02:39:51 +00:00
|
|
|
-e 's;\(#.*PATH_DOC\).*$$;\1 "${docdir}";' \
|
|
|
|
-e 's;/[*] *arch-tag:.*;/*;') && \
|
1999-02-26 11:37:55 +00:00
|
|
|
${srcdir}/move-if-change epaths.h.$$$$ src/epaths.h
|
1994-05-27 08:17:46 +00:00
|
|
|
|
2006-11-04 14:47:54 +00:00
|
|
|
# For parallel make, src should be built before leim.
|
2001-03-29 14:24:43 +00:00
|
|
|
# "export PARALLEL=0" is for SGI's Make, to prevent it from
|
|
|
|
# running more than 1 process in the leim directory, especially for
|
|
|
|
# the $TIT files there.
|
* Makefile.in (Makefile): Use it for its timestamp value as well, and
make it depend on all other */.in files.
(src/Makefile, src/config.stamp, lib-src/Makefile)
(doc/emacs/Makefile, doc/misc/Makefile, doc/lispref/Makefile)
(doc/lispintro/Makefile, oldXMenu/Makefile, lwlib/Makefile)
(leim/Makefile, lisp/Makefile): Remove those overlapping targets.
(leim, ${SUBDIR}, blessmail): Only depend on Makefile now.
* configure.in: Don't create src/config.stamp any more.
2008-06-25 15:46:23 +00:00
|
|
|
leim: src Makefile FRC
|
2001-03-29 14:24:43 +00:00
|
|
|
(export PARALLEL; PARALLEL=0; cd $@; $(MAKE) all $(MFLAGS) \
|
|
|
|
CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
|
|
|
|
LDFLAGS='${LDFLAGS}' MAKE='${MAKE}')
|
1997-09-17 00:35:15 +00:00
|
|
|
|
1996-08-22 19:28:01 +00:00
|
|
|
src: lib-src FRC
|
1994-05-03 08:18:08 +00:00
|
|
|
|
2001-03-29 14:24:43 +00:00
|
|
|
.RECURSIVE: ${SUBDIR} leim
|
1992-01-14 07:27:56 +00:00
|
|
|
|
2008-06-20 21:48:17 +00:00
|
|
|
# We need to build `emacs' in `src' to compile the *.elc files in `lisp'.
|
|
|
|
lisp: src
|
|
|
|
|
2009-02-28 04:44:50 +00:00
|
|
|
# These targets should be "${SUBDIR} without `src'".
|
|
|
|
lib-src lisp: Makefile FRC
|
|
|
|
cd $@; $(MAKE) all $(MFLAGS) \
|
|
|
|
CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
|
|
|
|
LDFLAGS='${LDFLAGS}' MAKE='${MAKE}'
|
|
|
|
|
2008-06-22 13:57:28 +00:00
|
|
|
# Pass to src/Makefile.in an additional BOOTSTRAPEMACS variable which
|
|
|
|
# is either set to bootstrap-emacs (in case bootstrap-emacs has not been
|
|
|
|
# constructed yet) or the empty string (otherwise).
|
|
|
|
# src/Makefile.in uses it to implement conditional dependencies, so that
|
|
|
|
# files that need bootstrap-emacs to be built do not additionally need
|
|
|
|
# to be kept fresher than bootstrap-emacs. Otherwise changing a single
|
|
|
|
# file src/foo.c forces dumping a new bootstrap-emacs, then re-byte-compiling
|
|
|
|
# all preloaded elisp files, and only then dump the actual src/emacs, which
|
|
|
|
# is not wrong, but is overkill in 99.99% of the cases.
|
2009-02-28 04:44:50 +00:00
|
|
|
src: Makefile FRC
|
2008-06-22 13:57:28 +00:00
|
|
|
boot=bootstrap-emacs$(EXEEXT); \
|
2009-02-28 04:44:50 +00:00
|
|
|
if [ ! -x "src/$$boot" ]; then \
|
|
|
|
cd $@; $(MAKE) all $(MFLAGS) \
|
|
|
|
CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
|
|
|
|
LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS="$$boot"; \
|
2009-02-28 23:07:42 +00:00
|
|
|
fi;
|
2008-06-22 13:57:28 +00:00
|
|
|
cd $@; $(MAKE) all $(MFLAGS) \
|
1994-01-02 18:54:37 +00:00
|
|
|
CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
|
2009-02-28 04:44:50 +00:00
|
|
|
LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS=""
|
1993-09-28 09:41:00 +00:00
|
|
|
|
* Makefile.in (Makefile): Use it for its timestamp value as well, and
make it depend on all other */.in files.
(src/Makefile, src/config.stamp, lib-src/Makefile)
(doc/emacs/Makefile, doc/misc/Makefile, doc/lispref/Makefile)
(doc/lispintro/Makefile, oldXMenu/Makefile, lwlib/Makefile)
(leim/Makefile, lisp/Makefile): Remove those overlapping targets.
(leim, ${SUBDIR}, blessmail): Only depend on Makefile now.
* configure.in: Don't create src/config.stamp any more.
2008-06-25 15:46:23 +00:00
|
|
|
blessmail: Makefile src FRC
|
1995-03-12 06:11:27 +00:00
|
|
|
cd lib-src; $(MAKE) maybe-blessmail $(MFLAGS) \
|
|
|
|
MAKE='${MAKE}' archlibdir='$(archlibdir)'
|
1994-05-04 05:15:26 +00:00
|
|
|
|
* Makefile.in (Makefile): Use it for its timestamp value as well, and
make it depend on all other */.in files.
(src/Makefile, src/config.stamp, lib-src/Makefile)
(doc/emacs/Makefile, doc/misc/Makefile, doc/lispref/Makefile)
(doc/lispintro/Makefile, oldXMenu/Makefile, lwlib/Makefile)
(leim/Makefile, lisp/Makefile): Remove those overlapping targets.
(leim, ${SUBDIR}, blessmail): Only depend on Makefile now.
* configure.in: Don't create src/config.stamp any more.
2008-06-25 15:46:23 +00:00
|
|
|
# We used to have one rule per */Makefile.in, but that leads to race
|
|
|
|
# conditions with parallel makes, so let's assume that the time stamp on
|
|
|
|
# ./Makefile is representative of the time stamp on all the other Makefiles.
|
|
|
|
Makefile: config.status $(srcdir)/src/config.in \
|
|
|
|
$(srcdir)/Makefile.in \
|
|
|
|
$(srcdir)/src/Makefile.in \
|
|
|
|
$(srcdir)/lib-src/Makefile.in \
|
|
|
|
$(srcdir)/doc/emacs/Makefile.in \
|
|
|
|
$(srcdir)/doc/misc/Makefile.in \
|
|
|
|
$(srcdir)/doc/lispref/Makefile.in \
|
|
|
|
$(srcdir)/doc/lispintro/Makefile.in \
|
|
|
|
$(srcdir)/oldXMenu/Makefile.in \
|
|
|
|
$(srcdir)/lwlib/Makefile.in \
|
|
|
|
$(srcdir)/leim/Makefile.in \
|
|
|
|
$(srcdir)/lisp/Makefile.in
|
1993-09-28 09:41:00 +00:00
|
|
|
./config.status
|
|
|
|
|
2007-04-27 15:13:59 +00:00
|
|
|
config.status: ${srcdir}/configure ${srcdir}/lisp/version.el
|
1999-10-06 21:56:30 +00:00
|
|
|
./config.status --recheck
|
|
|
|
|
Merge gnulib getopt implementation into Emacs.
* Makefile.in (AUTOCONF_INPUTS): New macro.
($(srcdir)/configure, $(srcdir)/src/stamp-h.in): Depend on it,
so that these files also depend on m4/getopt.m4.
* configure.in: Configure getopt by including m4/getopt.m4,
and configuring a getopt replacement if necessary.
* make-dist: Add m4 subdirectory. Unlink lib-src/getopt.h.
* m4/getopt.m4: New file.
* lib-src/Makefile.in (mostlyclean): Remove getopt.h, getopt.h-t.
(GETOPT_H): New macro, from gnulib.
(getopt.h): New rule, from gnulib.
(GETOPTOBJS): Now autoconfigured.
(GETOPTDEPS): getopt.h is now autoconfigured.
(getopt.o, getopt1.o): Depend on $(GETOPT_H), not ${srcdir}/getopt.h.
(getopt.o): Depend on ${srcdir}/gettext.h.
(movemail.o): Depend on $(GETOPT_H).
* lib-src/getopt.c, lib-src/getopt1.c: Sync from gnulib.
* lib-src/getopt_.h, lib-src/getopt_int.h, lib-src/gettext.h:
New files, from gnulib.
* lib-src/getopt.h: Removed (now is getopt_.h).
* nt/inc/gettext.h: Remove; no longer needed now that
lib-src/gettext.h exists.
* src/s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
now part of lib-src.
2005-07-26 21:43:13 +00:00
|
|
|
AUTOCONF_INPUTS = @MAINT@ $(srcdir)/configure.in $(srcdir)/m4/getopt.m4
|
|
|
|
|
|
|
|
$(srcdir)/configure: $(AUTOCONF_INPUTS)
|
1999-10-06 21:56:30 +00:00
|
|
|
cd ${srcdir} && autoconf
|
|
|
|
|
2002-04-15 13:13:02 +00:00
|
|
|
$(srcdir)/src/config.in: $(srcdir)/src/stamp-h.in
|
|
|
|
@true
|
Merge gnulib getopt implementation into Emacs.
* Makefile.in (AUTOCONF_INPUTS): New macro.
($(srcdir)/configure, $(srcdir)/src/stamp-h.in): Depend on it,
so that these files also depend on m4/getopt.m4.
* configure.in: Configure getopt by including m4/getopt.m4,
and configuring a getopt replacement if necessary.
* make-dist: Add m4 subdirectory. Unlink lib-src/getopt.h.
* m4/getopt.m4: New file.
* lib-src/Makefile.in (mostlyclean): Remove getopt.h, getopt.h-t.
(GETOPT_H): New macro, from gnulib.
(getopt.h): New rule, from gnulib.
(GETOPTOBJS): Now autoconfigured.
(GETOPTDEPS): getopt.h is now autoconfigured.
(getopt.o, getopt1.o): Depend on $(GETOPT_H), not ${srcdir}/getopt.h.
(getopt.o): Depend on ${srcdir}/gettext.h.
(movemail.o): Depend on $(GETOPT_H).
* lib-src/getopt.c, lib-src/getopt1.c: Sync from gnulib.
* lib-src/getopt_.h, lib-src/getopt_int.h, lib-src/gettext.h:
New files, from gnulib.
* lib-src/getopt.h: Removed (now is getopt_.h).
* nt/inc/gettext.h: Remove; no longer needed now that
lib-src/gettext.h exists.
* src/s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
now part of lib-src.
2005-07-26 21:43:13 +00:00
|
|
|
$(srcdir)/src/stamp-h.in: $(AUTOCONF_INPUTS)
|
2002-04-15 13:13:02 +00:00
|
|
|
cd ${srcdir} && autoheader
|
|
|
|
rm -f $(srcdir)/src/stamp-h.in
|
|
|
|
echo timestamp > $(srcdir)/src/stamp-h.in
|
|
|
|
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
# ==================== Installation ====================
|
|
|
|
|
1993-01-26 01:58:16 +00:00
|
|
|
## If we let lib-src do its own installation, that means we
|
|
|
|
## don't have to duplicate the list of utilities to install in
|
|
|
|
## this Makefile as well.
|
* configure.in: Use the AC_ALLOCA test.
* Makefile.in (ALLOCA): New variable, to be set by ./configure.
(lib-src/Makefile): Edit the value of ALLOCA into lib-src/Makefile.
* Makefile.in (install): Print out the name of the directory we're
copying, so people can have some idea of whether we're making
progress.
* Makefile.in (install.aix, install.xenix, install.sysv, install):
Don't forget to re-create the COPYDESTS directories after we clear
them out.
* Makefile.in: Add autoconf cookies so that the configure
script can comment out sections of path variable definitions to
choose between the installable configuration and the run-in-place
configuration.
* configure.in: Add new option `--run-in-place', to select the
run-in-place path definitions.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Make sure that each source directory exists, and is different from
the destination directory; then, delete the destination before
copying over the source.
1993-05-03 02:06:16 +00:00
|
|
|
|
1993-05-15 23:57:11 +00:00
|
|
|
## On AIX, use tar xBf.
|
|
|
|
## On Xenix, use tar xpf.
|
|
|
|
|
1994-04-23 01:07:04 +00:00
|
|
|
.PHONY: install mkdir
|
1994-01-19 00:04:56 +00:00
|
|
|
|
* configure.in: Use the AC_ALLOCA test.
* Makefile.in (ALLOCA): New variable, to be set by ./configure.
(lib-src/Makefile): Edit the value of ALLOCA into lib-src/Makefile.
* Makefile.in (install): Print out the name of the directory we're
copying, so people can have some idea of whether we're making
progress.
* Makefile.in (install.aix, install.xenix, install.sysv, install):
Don't forget to re-create the COPYDESTS directories after we clear
them out.
* Makefile.in: Add autoconf cookies so that the configure
script can comment out sections of path variable definitions to
choose between the installable configuration and the run-in-place
configuration.
* configure.in: Add new option `--run-in-place', to select the
run-in-place path definitions.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Make sure that each source directory exists, and is different from
the destination directory; then, delete the destination before
copying over the source.
1993-05-03 02:06:16 +00:00
|
|
|
## We delete each directory in ${COPYDESTS} before we copy into it;
|
|
|
|
## that way, we can reinstall over directories that have been put in
|
|
|
|
## place with their files read-only (perhaps because they are checked
|
|
|
|
## into RCS). In order to make this safe, we make sure that the
|
|
|
|
## source exists and is distinct from the destination.
|
1996-03-17 15:24:35 +00:00
|
|
|
### We do install-arch-indep first because
|
|
|
|
### the executable needs the Lisp files and DOC file to work properly.
|
1997-11-07 19:18:45 +00:00
|
|
|
install: all install-arch-indep install-arch-dep install-leim blessmail
|
1995-10-23 17:01:39 +00:00
|
|
|
@true
|
1993-05-25 06:18:24 +00:00
|
|
|
|
2009-05-04 01:13:20 +00:00
|
|
|
MV_DIRS = for i in $$dir; do rm -fr `basename "$$i"` ; mv "$$i" . ; done
|
2008-12-30 20:13:28 +00:00
|
|
|
|
1995-12-31 19:21:18 +00:00
|
|
|
### Install the executables that were compiled specifically for this machine.
|
1996-03-17 15:24:35 +00:00
|
|
|
### It would be nice to do something for a parallel make
|
|
|
|
### to ensure that install-arch-indep finishes before this starts.
|
|
|
|
install-arch-dep: mkdir
|
1993-05-25 06:18:24 +00:00
|
|
|
(cd lib-src; \
|
1993-09-28 09:41:00 +00:00
|
|
|
$(MAKE) install $(MFLAGS) prefix=${prefix} \
|
1994-10-11 21:36:30 +00:00
|
|
|
exec_prefix=${exec_prefix} bindir=${bindir} \
|
1996-08-29 20:54:02 +00:00
|
|
|
libexecdir=${libexecdir} archlibdir=${archlibdir} \
|
|
|
|
INSTALL_STRIP=${INSTALL_STRIP})
|
2006-03-03 12:02:31 +00:00
|
|
|
${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL)
|
|
|
|
-chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL)
|
|
|
|
rm -f $(DESTDIR)${bindir}/$(EMACS)
|
|
|
|
-ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS)
|
2000-05-25 10:38:04 +00:00
|
|
|
-unset CDPATH; \
|
1998-11-29 16:42:04 +00:00
|
|
|
for f in `cd lib-src && echo fns-*.el`; do \
|
2000-05-25 16:40:12 +00:00
|
|
|
if test -r lib-src/$$f ; then \
|
2006-03-03 12:02:31 +00:00
|
|
|
${INSTALL_DATA} lib-src/$$f $(DESTDIR)${archlibdir}/$$f; \
|
2000-05-25 16:40:12 +00:00
|
|
|
else true; fi ; \
|
1998-10-30 09:51:57 +00:00
|
|
|
done
|
2008-07-15 18:15:18 +00:00
|
|
|
if test "${ns_appdir}" != ""; then \
|
2008-07-17 17:44:41 +00:00
|
|
|
( cd ${ns_appresdir} ; \
|
2008-12-30 20:13:28 +00:00
|
|
|
if test -d share/emacs ; then dir=share/emacs/*/*; $(MV_DIRS); fi;\
|
|
|
|
if test -d share/info ; then dir=share/info; $(MV_DIRS) ; fi ; \
|
2008-07-17 17:44:41 +00:00
|
|
|
rm -fr share ) ; \
|
2008-12-30 20:13:28 +00:00
|
|
|
( cd ${ns_appbindir}/libexec ; dir=emacs/*/*/* ; $(MV_DIRS); \
|
|
|
|
rm -fr emacs ) ; \
|
2008-07-17 17:44:41 +00:00
|
|
|
( cd ${ns_appbindir}/bin ; rm -f emacs emacs-23* ; \
|
|
|
|
ln -sf ../libexec/* .) ; \
|
|
|
|
else true ; fi
|
1994-02-20 03:25:09 +00:00
|
|
|
|
2008-02-21 09:04:29 +00:00
|
|
|
## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html
|
|
|
|
## Needs to be the user running install, so configure can't set it.
|
|
|
|
set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \
|
|
|
|
`id -un 2> /dev/null`; do \
|
|
|
|
[ -n "$${installuser}" ] && break ; \
|
|
|
|
done
|
|
|
|
|
1995-12-31 19:21:18 +00:00
|
|
|
### Install the files that are machine-independent.
|
|
|
|
### Most of them come straight from the distribution;
|
|
|
|
### the exception is the DOC-* files, which are copied
|
2007-02-03 21:49:10 +00:00
|
|
|
### from the build directory.
|
1995-12-31 19:21:18 +00:00
|
|
|
|
1997-07-02 06:45:51 +00:00
|
|
|
## Note that we copy DOC* and then delete DOC
|
|
|
|
## as a workaround for a bug in tar on Ultrix 4.2.
|
2002-05-18 19:52:17 +00:00
|
|
|
|
2007-06-07 08:02:18 +00:00
|
|
|
## We install only the relevant DOC file if possible
|
|
|
|
## (ie DOC-${version}.buildnumber), otherwise DOC-${version}*.
|
|
|
|
|
2002-05-18 19:52:17 +00:00
|
|
|
## If people complain about the h flag in tar command, take that out.
|
|
|
|
## That flag is also used in leim/Makefile.in
|
2007-09-12 07:03:18 +00:00
|
|
|
|
|
|
|
## Note that the Makefiles in the etc directory are potentially useful
|
|
|
|
## in an installed Emacs, so should not be excluded.
|
2007-10-31 03:19:56 +00:00
|
|
|
|
2008-01-05 04:15:11 +00:00
|
|
|
install-arch-indep: mkdir info install-etc
|
1992-04-19 08:53:55 +00:00
|
|
|
-set ${COPYDESTS} ; \
|
2000-06-13 16:25:11 +00:00
|
|
|
unset CDPATH; \
|
1995-12-31 19:21:18 +00:00
|
|
|
for dir in ${COPYDIR} ; do \
|
|
|
|
if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \
|
|
|
|
rm -rf $$1 ; \
|
|
|
|
fi ; \
|
|
|
|
shift ; \
|
|
|
|
done
|
1993-05-26 18:27:58 +00:00
|
|
|
-set ${COPYDESTS} ; \
|
1995-12-31 19:21:18 +00:00
|
|
|
mkdir ${COPYDESTS} ; \
|
|
|
|
chmod ugo+rx ${COPYDESTS} ; \
|
2000-06-13 16:25:11 +00:00
|
|
|
unset CDPATH; \
|
2008-02-21 09:04:29 +00:00
|
|
|
$(set_installuser); \
|
1995-12-31 19:21:18 +00:00
|
|
|
for dir in ${COPYDIR} ; do \
|
|
|
|
dest=$$1 ; shift ; \
|
|
|
|
[ -d $${dir} ] \
|
|
|
|
&& [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
|
|
|
|
&& (echo "Copying $${dir} to $${dest}..." ; \
|
2001-10-22 17:38:17 +00:00
|
|
|
(cd $${dir}; tar -chf - . ) \
|
2000-12-27 11:48:37 +00:00
|
|
|
| (cd $${dest}; umask 022; \
|
|
|
|
tar -xvf - && cat > /dev/null) || exit 1; \
|
2007-10-31 03:19:56 +00:00
|
|
|
find $${dest} -exec chown $${installuser} {} ';' ;\
|
2000-05-10 18:02:16 +00:00
|
|
|
for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \
|
1998-02-25 22:49:45 +00:00
|
|
|
chmod a+rx $${subdir} ; \
|
1995-12-31 19:21:18 +00:00
|
|
|
rm -rf $${subdir}/RCS ; \
|
|
|
|
rm -rf $${subdir}/CVS ; \
|
2001-04-05 13:52:09 +00:00
|
|
|
rm -f $${subdir}/.cvsignore ; \
|
2009-04-12 11:19:49 +00:00
|
|
|
rm -f $${subdir}/.gitignore ; \
|
2004-07-04 22:45:31 +00:00
|
|
|
rm -f $${subdir}/.arch-inventory ; \
|
2009-08-16 03:16:33 +00:00
|
|
|
rm -f $${subdir}/.DS_Store ; \
|
1995-12-31 19:21:18 +00:00
|
|
|
rm -f $${subdir}/\#* ; \
|
|
|
|
rm -f $${subdir}/.\#* ; \
|
|
|
|
rm -f $${subdir}/*~ ; \
|
|
|
|
rm -f $${subdir}/*.orig ; \
|
2007-09-12 07:03:18 +00:00
|
|
|
[ "$${dir}" != "${srcdir}/etc" ] && \
|
2009-11-16 02:06:36 +00:00
|
|
|
rm -f $${subdir}/[mM]akefile*.c $${subdir}/[mM]akefile*[.-]in \
|
|
|
|
$${subdir}/[mM]akefile ; \
|
1995-12-31 19:21:18 +00:00
|
|
|
rm -f $${subdir}/ChangeLog* ; \
|
|
|
|
rm -f $${subdir}/dired.todo ; \
|
|
|
|
done) ; \
|
|
|
|
done
|
2006-03-03 12:02:31 +00:00
|
|
|
-rm -f $(DESTDIR)${lispdir}/subdirs.el
|
|
|
|
$(srcdir)/update-subdirs $(DESTDIR)${lispdir}
|
|
|
|
if [ -f $(DESTDIR)${datadir}/emacs/${version}/site-lisp/subdirs.el ]; \
|
1998-05-14 04:58:47 +00:00
|
|
|
then true; \
|
|
|
|
else \
|
|
|
|
(echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
|
|
|
|
echo " (normal-top-level-add-subdirs-to-load-path))") \
|
2006-03-03 12:02:31 +00:00
|
|
|
> $(DESTDIR)${datadir}/emacs/${version}/site-lisp/subdirs.el; \
|
1998-05-14 04:58:47 +00:00
|
|
|
fi
|
2006-03-03 12:02:31 +00:00
|
|
|
chmod a+r $(DESTDIR)${datadir}/emacs/${version}/site-lisp/subdirs.el
|
|
|
|
-if [ -f $(DESTDIR)${datadir}/emacs/site-lisp/subdirs.el ]; \
|
1998-05-14 04:58:47 +00:00
|
|
|
then true; \
|
|
|
|
else \
|
|
|
|
(echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
|
|
|
|
echo " (normal-top-level-add-subdirs-to-load-path))") \
|
2006-03-03 12:02:31 +00:00
|
|
|
> $(DESTDIR)${datadir}/emacs/site-lisp/subdirs.el; \
|
1998-05-14 04:58:47 +00:00
|
|
|
fi
|
2006-03-03 12:02:31 +00:00
|
|
|
-chmod a+r $(DESTDIR)${datadir}/emacs/site-lisp/subdirs.el
|
2000-05-25 10:38:04 +00:00
|
|
|
-unset CDPATH; \
|
2006-03-03 12:02:31 +00:00
|
|
|
if [ `(cd ./etc; /bin/pwd)` != `(cd $(DESTDIR)${docdir}; /bin/pwd)` ]; \
|
1994-05-07 03:15:33 +00:00
|
|
|
then \
|
2007-06-07 08:02:18 +00:00
|
|
|
fullversion=`./src/emacs --version | sed -n '1 s/GNU Emacs *//p'`; \
|
|
|
|
if [ -f "./etc/DOC-$${fullversion}" ]; \
|
|
|
|
then \
|
|
|
|
docfile="DOC-$${fullversion}"; \
|
|
|
|
else \
|
2009-08-23 03:54:32 +00:00
|
|
|
docfile="DOC"; \
|
2007-06-07 08:02:18 +00:00
|
|
|
fi; \
|
|
|
|
echo "Copying etc/$${docfile} to $(DESTDIR)${docdir} ..." ; \
|
|
|
|
(cd ./etc; tar -chf - $${docfile}) \
|
2006-03-03 12:02:31 +00:00
|
|
|
|(cd $(DESTDIR)${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
|
2007-10-31 03:19:56 +00:00
|
|
|
(cd $(DESTDIR)$(docdir); \
|
2008-02-21 09:04:29 +00:00
|
|
|
$(set_installuser); \
|
2007-10-31 03:19:56 +00:00
|
|
|
chown $${installuser} DOC*; chmod a+r DOC*; \
|
2007-07-28 08:13:00 +00:00
|
|
|
if test "`echo DOC-*`" != "DOC-*"; then rm -f DOC; fi); \
|
1994-05-07 03:15:33 +00:00
|
|
|
else true; fi
|
2000-05-25 10:38:04 +00:00
|
|
|
-unset CDPATH; \
|
2002-12-08 13:18:02 +00:00
|
|
|
if [ -r ./lisp ] \
|
|
|
|
&& [ -r ./lisp/simple.el ] \
|
2006-03-03 12:02:31 +00:00
|
|
|
&& [ x`(cd ./lisp; /bin/pwd)` != x`(cd $(DESTDIR)${lispdir}; /bin/pwd)` ] \
|
2002-12-08 13:59:29 +00:00
|
|
|
&& [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \
|
1996-02-12 19:53:16 +00:00
|
|
|
then \
|
2006-03-03 12:02:31 +00:00
|
|
|
echo "Copying lisp/*.el and lisp/*.elc to $(DESTDIR)${lispdir} ..." ; \
|
2002-12-08 13:18:02 +00:00
|
|
|
(cd lisp; tar -chf - *.el *.elc) \
|
2006-03-03 12:02:31 +00:00
|
|
|
|(cd $(DESTDIR)${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
|
2007-10-31 03:19:56 +00:00
|
|
|
(cd $(DESTDIR)${lispdir}; \
|
2008-02-21 09:04:29 +00:00
|
|
|
$(set_installuser); \
|
2007-10-31 03:19:56 +00:00
|
|
|
find . -exec chown $${installuser} {} ';') ; \
|
1996-02-12 19:53:16 +00:00
|
|
|
else true; fi
|
2000-05-25 10:38:04 +00:00
|
|
|
-unset CDPATH; \
|
2005-11-03 17:00:25 +00:00
|
|
|
if [ -n "${GZIP_PROG}" ]; \
|
2005-11-01 11:48:27 +00:00
|
|
|
then \
|
|
|
|
echo "Compressing *.el ..." ; \
|
2006-03-03 12:02:31 +00:00
|
|
|
(cd $(DESTDIR)${lispdir}; for f in `find . -name "*.elc" -print`; do \
|
2005-11-03 17:00:25 +00:00
|
|
|
${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \
|
2005-11-01 11:48:27 +00:00
|
|
|
done) \
|
|
|
|
else true; fi
|
|
|
|
-unset CDPATH; \
|
1994-05-27 08:17:46 +00:00
|
|
|
thisdir=`/bin/pwd`; \
|
2006-03-03 12:02:31 +00:00
|
|
|
if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \
|
1994-03-18 00:31:13 +00:00
|
|
|
then \
|
2006-03-03 12:02:31 +00:00
|
|
|
(cd $(DESTDIR)${infodir}; \
|
1998-04-28 21:15:12 +00:00
|
|
|
if [ -f dir ]; then true; \
|
|
|
|
else \
|
|
|
|
(cd $${thisdir}; \
|
2006-03-03 12:02:31 +00:00
|
|
|
${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \
|
|
|
|
chmod a+r $(DESTDIR)${infodir}/dir); \
|
1995-11-29 20:41:52 +00:00
|
|
|
fi; \
|
1995-09-06 15:18:29 +00:00
|
|
|
cd ${srcdir}/info ; \
|
2006-03-18 12:29:59 +00:00
|
|
|
for elt in $(INFO_FILES); do \
|
2008-05-09 04:28:28 +00:00
|
|
|
test "$(MAKEINFO)" = "off" && ! test -e $$elt && continue; \
|
2006-03-18 12:29:59 +00:00
|
|
|
for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \
|
|
|
|
${INSTALL_DATA} $$f $(DESTDIR)${infodir}/$$f; \
|
|
|
|
chmod a+r $(DESTDIR)${infodir}/$$f; \
|
|
|
|
done; \
|
1994-03-14 22:08:27 +00:00
|
|
|
done); \
|
1993-06-02 05:16:03 +00:00
|
|
|
else true; fi
|
1999-10-09 19:13:48 +00:00
|
|
|
-unset CDPATH; \
|
|
|
|
thisdir=`/bin/pwd`; \
|
2006-03-03 12:02:31 +00:00
|
|
|
if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \
|
1998-05-07 21:31:00 +00:00
|
|
|
then \
|
2006-03-18 12:29:59 +00:00
|
|
|
for elt in $(INFO_FILES); do \
|
2008-05-09 04:28:28 +00:00
|
|
|
test "$(MAKEINFO)" = "off" && ! test -e $$elt && continue; \
|
1998-05-07 21:31:00 +00:00
|
|
|
(cd $${thisdir}; \
|
2006-03-18 12:29:59 +00:00
|
|
|
${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \
|
1998-05-07 21:31:00 +00:00
|
|
|
done; \
|
|
|
|
else true; fi
|
2009-09-09 02:34:17 +00:00
|
|
|
-chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS}
|
1995-12-31 19:21:18 +00:00
|
|
|
thisdir=`/bin/pwd`; \
|
2007-09-06 05:12:28 +00:00
|
|
|
cd ${mansrcdir}; \
|
2008-12-13 20:12:08 +00:00
|
|
|
for page in ${MAN_PAGES}; do \
|
1995-12-31 19:21:18 +00:00
|
|
|
(cd $${thisdir}; \
|
2008-12-13 20:12:08 +00:00
|
|
|
${INSTALL_DATA} ${mansrcdir}/$${page} $(DESTDIR)${man1dir}/$${page}; \
|
|
|
|
chmod a+r $(DESTDIR)${man1dir}/$${page}); \
|
1992-12-24 05:56:33 +00:00
|
|
|
done
|
1992-03-21 07:56:45 +00:00
|
|
|
|
2008-01-05 04:15:11 +00:00
|
|
|
## Install those items from etc/ that need to end up elsewhere.
|
|
|
|
install-etc: mkdir
|
|
|
|
${INSTALL_DATA} ${srcdir}/etc/emacs.desktop \
|
|
|
|
$(DESTDIR)${desktopdir}/emacs.desktop
|
2008-03-11 04:28:49 +00:00
|
|
|
for icon in $(iconsrcdir)/*/*/apps/*.* \
|
|
|
|
$(iconsrcdir)/*/*/mimetypes/*.*; do \
|
2008-01-05 04:15:11 +00:00
|
|
|
if [ -r $${icon} ]; then \
|
|
|
|
iicon=`echo "$${icon}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},'` ; \
|
|
|
|
${INSTALL_DATA} $${icon} $${iicon} ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
|
1997-07-02 06:45:51 +00:00
|
|
|
### Install LEIM files. Although they are machine-independent, we
|
|
|
|
### have separate target here instead of including it in
|
|
|
|
### `install-arch-indep'. People who extracted LEIM files after they
|
|
|
|
### insalled Emacs itself can install only LEIM files by this target.
|
1997-09-17 00:35:15 +00:00
|
|
|
install-leim: leim/Makefile mkdir
|
1997-07-05 00:20:22 +00:00
|
|
|
cd leim; $(MAKE) install
|
1997-07-02 06:45:51 +00:00
|
|
|
|
1996-03-20 14:51:42 +00:00
|
|
|
### Build Emacs and install it, stripping binaries while installing them.
|
|
|
|
install-strip:
|
1999-12-04 19:24:27 +00:00
|
|
|
$(MAKE) INSTALL_STRIP=-s install
|
1996-03-20 14:51:42 +00:00
|
|
|
|
1992-12-24 05:56:33 +00:00
|
|
|
### Build all the directories we're going to install Emacs in. Since
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
### we may be creating several layers of directories (for example,
|
1994-10-12 23:29:23 +00:00
|
|
|
### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use mkinstalldirs
|
1994-11-23 20:25:48 +00:00
|
|
|
### instead of mkdir. Not all systems' mkdir programs have the `-p' flag.
|
2009-09-09 02:34:17 +00:00
|
|
|
### We set the umask so that any created directories are world-readable.
|
|
|
|
### FIXME it would be good to warn about non-standard permissions of
|
|
|
|
### pre-existing directories, but that does not seem easy.
|
1994-09-16 23:36:57 +00:00
|
|
|
mkdir: FRC
|
2008-01-05 04:15:11 +00:00
|
|
|
icondirs= ; \
|
2008-03-11 04:28:49 +00:00
|
|
|
for dir in $(iconsrcdir)/*/*/apps $(iconsrcdir)/*/*/mimetypes; do \
|
2008-01-05 04:15:11 +00:00
|
|
|
if [ -d $${dir} ]; then \
|
|
|
|
icondirs="$${icondirs} $${dir}" ; \
|
|
|
|
fi ; \
|
|
|
|
done ; \
|
|
|
|
icondirs=`echo "$${icondirs}" | sed 's,$(srcdir)/etc/images/icons,$(DESTDIR)${icondir},g'` ; \
|
2009-09-09 02:34:17 +00:00
|
|
|
umask 022 ; \
|
|
|
|
$(srcdir)/mkinstalldirs $(DESTDIR)${datadir} ${COPYDESTS} \
|
|
|
|
$(DESTDIR)${infodir} $(DESTDIR)${man1dir} \
|
2006-03-03 12:02:31 +00:00
|
|
|
$(DESTDIR)${bindir} $(DESTDIR)${docdir} $(DESTDIR)${libexecdir} \
|
|
|
|
$(DESTDIR)${datadir}/emacs/site-lisp \
|
|
|
|
$(DESTDIR)${datadir}/emacs/${version}/site-lisp \
|
2008-01-05 04:15:11 +00:00
|
|
|
$(DESTDIR)`echo ${locallisppath} | sed 's,:, $(DESTDIR),g'` \
|
|
|
|
$(DESTDIR)${desktopdir} $${icondirs}
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1993-06-16 23:46:17 +00:00
|
|
|
### Delete all the installed files that the `install' target would
|
2009-09-09 02:34:17 +00:00
|
|
|
### create (but not the noninstalled files such as `make all' would create).
|
1993-06-17 00:50:19 +00:00
|
|
|
###
|
|
|
|
### Don't delete the lisp and etc directories if they're in the source tree.
|
1993-06-16 23:46:17 +00:00
|
|
|
uninstall:
|
1993-06-17 00:50:19 +00:00
|
|
|
(cd lib-src; \
|
1993-09-28 09:41:00 +00:00
|
|
|
$(MAKE) $(MFLAGS) uninstall \
|
1993-06-17 00:50:19 +00:00
|
|
|
prefix=${prefix} exec_prefix=${exec_prefix} \
|
1994-10-11 21:36:30 +00:00
|
|
|
bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir})
|
2000-05-25 10:38:04 +00:00
|
|
|
-unset CDPATH; \
|
2006-03-03 12:02:31 +00:00
|
|
|
for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \
|
1994-05-08 19:51:59 +00:00
|
|
|
if [ -d $${dir} ]; then \
|
1994-05-27 08:17:46 +00:00
|
|
|
case `(cd $${dir} ; /bin/pwd)` in \
|
|
|
|
`(cd ${srcdir} ; /bin/pwd)`* ) ;; \
|
1994-05-08 19:51:59 +00:00
|
|
|
* ) rm -rf $${dir} ;; \
|
|
|
|
esac ; \
|
|
|
|
case $${dir} in \
|
2006-03-03 12:02:31 +00:00
|
|
|
$(DESTDIR)${datadir}/emacs/${version}/* ) \
|
|
|
|
rm -rf $(DESTDIR)${datadir}/emacs/${version} \
|
1994-05-08 19:51:59 +00:00
|
|
|
;; \
|
|
|
|
esac ; \
|
|
|
|
fi ; \
|
1993-06-17 00:50:19 +00:00
|
|
|
done
|
2006-03-03 12:02:31 +00:00
|
|
|
(cd $(DESTDIR)${archlibdir} && rm -f fns-*)
|
|
|
|
-rm -rf $(DESTDIR)${libexecdir}/emacs/${version}
|
2006-03-18 12:29:59 +00:00
|
|
|
(cd $(DESTDIR)${infodir} && \
|
|
|
|
for elt in $(INFO_FILES); do \
|
|
|
|
$(INSTALL_INFO) --remove --info-dir=. $$elt; \
|
|
|
|
for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \
|
|
|
|
rm -f $$f; \
|
|
|
|
done; \
|
|
|
|
done;)
|
2008-12-13 20:12:08 +00:00
|
|
|
(cd $(DESTDIR)${man1dir} && rm -f $(MAN_PAGES))
|
2006-03-03 12:02:31 +00:00
|
|
|
(cd $(DESTDIR)${bindir} && rm -f $(EMACSFULL) $(EMACS))
|
2008-12-13 20:53:02 +00:00
|
|
|
(cd $(DESTDIR)${icondir} && rm -f hicolor/*x*/apps/emacs.png hicolor/*x*/apps/emacs22.png hicolor/scalable/apps/emacs.svg hicolor/scalable/mimetypes/emacs-document.svg )
|
2008-12-13 20:32:30 +00:00
|
|
|
-rm -f $(DESTDIR)${desktopdir}/emacs.desktop
|
|
|
|
for file in snake-scores tetris-scores; do \
|
|
|
|
file=$(DESTDIR)${gamedir}/$${file}; \
|
|
|
|
[ -s $${file} ] || rm -f $$file; \
|
|
|
|
done
|
1993-06-16 23:46:17 +00:00
|
|
|
|
1994-09-16 23:36:57 +00:00
|
|
|
FRC:
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
|
|
|
|
# ==================== Cleaning up and miscellanea ====================
|
|
|
|
|
1995-02-07 23:55:01 +00:00
|
|
|
.PHONY: mostlyclean clean distclean maintainer-clean extraclean
|
1994-01-19 00:04:56 +00:00
|
|
|
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
### `mostlyclean'
|
1993-06-16 23:46:17 +00:00
|
|
|
### Like `clean', but may refrain from deleting a few files that people
|
|
|
|
### normally don't want to recompile. For example, the `mostlyclean'
|
|
|
|
### target for GCC does not delete `libgcc.a', because recompiling it
|
|
|
|
### is rarely necessary and takes a lot of time.
|
1994-09-16 23:36:57 +00:00
|
|
|
mostlyclean: FRC
|
1993-09-28 09:41:00 +00:00
|
|
|
(cd src; $(MAKE) $(MFLAGS) mostlyclean)
|
|
|
|
(cd oldXMenu; $(MAKE) $(MFLAGS) mostlyclean)
|
1994-01-19 00:04:56 +00:00
|
|
|
(cd lwlib; $(MAKE) $(MFLAGS) mostlyclean)
|
1993-09-28 09:41:00 +00:00
|
|
|
(cd lib-src; $(MAKE) $(MFLAGS) mostlyclean)
|
2007-09-06 05:12:28 +00:00
|
|
|
-(cd doc/emacs && $(MAKE) $(MFLAGS) mostlyclean)
|
|
|
|
-(cd doc/misc && $(MAKE) $(MFLAGS) mostlyclean)
|
|
|
|
-(cd doc/lispref && $(MAKE) $(MFLAGS) mostlyclean)
|
|
|
|
-(cd doc/lispintro && $(MAKE) $(MFLAGS) mostlyclean)
|
1997-07-09 06:55:18 +00:00
|
|
|
(cd leim; $(MAKE) $(MFLAGS) mostlyclean)
|
1993-06-16 23:46:17 +00:00
|
|
|
|
|
|
|
### `clean'
|
|
|
|
### Delete all files from the current directory that are normally
|
|
|
|
### created by building the program. Don't delete the files that
|
|
|
|
### record the configuration. Also preserve files that could be made
|
|
|
|
### by building, but normally aren't because the distribution comes
|
|
|
|
### with them.
|
2003-02-04 14:56:31 +00:00
|
|
|
###
|
1993-06-16 23:46:17 +00:00
|
|
|
### Delete `.dvi' files here if they are not part of the distribution.
|
1994-09-16 23:36:57 +00:00
|
|
|
clean: FRC
|
1993-09-28 09:41:00 +00:00
|
|
|
(cd src; $(MAKE) $(MFLAGS) clean)
|
|
|
|
(cd oldXMenu; $(MAKE) $(MFLAGS) clean)
|
1994-01-19 00:04:56 +00:00
|
|
|
(cd lwlib; $(MAKE) $(MFLAGS) clean)
|
1993-09-28 09:41:00 +00:00
|
|
|
(cd lib-src; $(MAKE) $(MFLAGS) clean)
|
2007-09-06 05:12:28 +00:00
|
|
|
-(cd doc/emacs && $(MAKE) $(MFLAGS) clean)
|
|
|
|
-(cd doc/misc && $(MAKE) $(MFLAGS) clean)
|
|
|
|
-(cd doc/lispref && $(MAKE) $(MFLAGS) clean)
|
|
|
|
-(cd doc/lispintro && $(MAKE) $(MFLAGS) clean)
|
1997-07-09 06:55:18 +00:00
|
|
|
(cd leim; $(MAKE) $(MFLAGS) clean)
|
1992-04-19 08:53:55 +00:00
|
|
|
|
2008-06-21 01:38:39 +00:00
|
|
|
### `bootclean'
|
|
|
|
### Delete all files that need to be remade for a clean bootstrap.
|
|
|
|
top_bootclean=\
|
2008-06-22 02:20:24 +00:00
|
|
|
rm -f config.cache config.log
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
### `distclean'
|
1993-06-16 23:46:17 +00:00
|
|
|
### Delete all files from the current directory that are created by
|
|
|
|
### configuring or building the program. If you have unpacked the
|
|
|
|
### source and built the program without creating any other files,
|
|
|
|
### `make distclean' should leave only the files that were in the
|
|
|
|
### distribution.
|
|
|
|
top_distclean=\
|
2008-06-21 01:38:39 +00:00
|
|
|
${top_bootclean}; \
|
|
|
|
rm -f config.status Makefile ${SUBDIR_MAKEFILES}
|
1994-09-16 23:36:57 +00:00
|
|
|
distclean: FRC
|
1993-09-28 09:41:00 +00:00
|
|
|
(cd src; $(MAKE) $(MFLAGS) distclean)
|
|
|
|
(cd oldXMenu; $(MAKE) $(MFLAGS) distclean)
|
1994-01-19 00:04:56 +00:00
|
|
|
(cd lwlib; $(MAKE) $(MFLAGS) distclean)
|
1993-09-28 09:41:00 +00:00
|
|
|
(cd lib-src; $(MAKE) $(MFLAGS) distclean)
|
2007-09-06 05:12:28 +00:00
|
|
|
(cd doc/emacs && $(MAKE) $(MFLAGS) distclean)
|
|
|
|
(cd doc/misc && $(MAKE) $(MFLAGS) distclean)
|
|
|
|
(cd doc/lispref && $(MAKE) $(MFLAGS) distclean)
|
|
|
|
(cd doc/lispintro && $(MAKE) $(MFLAGS) distclean)
|
1997-07-09 06:55:18 +00:00
|
|
|
(cd leim; $(MAKE) $(MFLAGS) distclean)
|
2000-06-16 18:54:11 +00:00
|
|
|
(cd lisp; $(MAKE) $(MFLAGS) distclean)
|
1993-06-16 23:46:17 +00:00
|
|
|
${top_distclean}
|
1992-04-19 08:53:55 +00:00
|
|
|
|
2008-06-20 21:48:17 +00:00
|
|
|
### `bootstrap-clean'
|
|
|
|
### Delete everything that can be reconstructed by `make' and that
|
|
|
|
### needs to be deleted in order to force a bootstrap from a clean state.
|
|
|
|
bootstrap-clean: FRC
|
|
|
|
(cd src; $(MAKE) $(MFLAGS) bootstrap-clean)
|
|
|
|
(cd oldXMenu; $(MAKE) $(MFLAGS) maintainer-clean)
|
|
|
|
(cd lwlib; $(MAKE) $(MFLAGS) maintainer-clean)
|
|
|
|
(cd lib-src; $(MAKE) $(MFLAGS) maintainer-clean)
|
|
|
|
-(cd doc/emacs && $(MAKE) $(MFLAGS) maintainer-clean)
|
|
|
|
-(cd doc/misc && $(MAKE) $(MFLAGS) maintainer-clean)
|
|
|
|
-(cd doc/lispref && $(MAKE) $(MFLAGS) maintainer-clean)
|
|
|
|
-(cd doc/lispintro && $(MAKE) $(MFLAGS) maintainer-clean)
|
|
|
|
(cd leim; $(MAKE) $(MFLAGS) maintainer-clean)
|
2008-06-21 01:38:39 +00:00
|
|
|
(cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean)
|
|
|
|
${top_bootclean}
|
2008-06-20 21:48:17 +00:00
|
|
|
|
1995-02-07 23:55:01 +00:00
|
|
|
### `maintainer-clean'
|
1993-06-16 23:46:17 +00:00
|
|
|
### Delete everything from the current directory that can be
|
|
|
|
### reconstructed with this Makefile. This typically includes
|
|
|
|
### everything deleted by distclean, plus more: C source files
|
|
|
|
### produced by Bison, tags tables, info files, and so on.
|
2003-02-04 14:56:31 +00:00
|
|
|
###
|
1995-02-07 23:55:01 +00:00
|
|
|
### One exception, however: `make maintainer-clean' should not delete
|
1993-06-16 23:46:17 +00:00
|
|
|
### `configure' even if `configure' can be remade using a rule in the
|
1995-02-07 23:55:01 +00:00
|
|
|
### Makefile. More generally, `make maintainer-clean' should not delete
|
1993-06-16 23:46:17 +00:00
|
|
|
### anything that needs to exist in order to run `configure' and then
|
|
|
|
### begin to build the program.
|
2008-06-21 01:38:39 +00:00
|
|
|
maintainer-clean: bootstrap-clean FRC
|
1995-02-07 23:55:01 +00:00
|
|
|
(cd src; $(MAKE) $(MFLAGS) maintainer-clean)
|
2008-06-21 01:38:39 +00:00
|
|
|
(cd lisp; $(MAKE) $(MFLAGS) maintainer-clean)
|
|
|
|
${top_distclean}
|
1992-04-19 08:53:55 +00:00
|
|
|
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
### This doesn't actually appear in the coding standards, but Karl
|
|
|
|
### says GCC supports it, and that's where the configuration part of
|
|
|
|
### the coding standards seem to come from. It's like distclean, but
|
|
|
|
### it deletes backup and autosave files too.
|
|
|
|
extraclean:
|
2001-03-29 14:24:43 +00:00
|
|
|
for i in ${SUBDIR} leim; do (cd $$i; $(MAKE) $(MFLAGS) extraclean); done
|
1996-01-25 06:59:38 +00:00
|
|
|
${top_distclean}
|
2001-01-28 23:37:58 +00:00
|
|
|
-rm -f config-tmp-*
|
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the info files in ${infodir}. Install the executable
under both `emacs' and `emacs-VERSION'.
* Makefile.in: Doc fix.
* Makefile.in (exec_prefix): New variable, as per latest version
of coding standards.
(bindir, libdir): Use it, instead of `prefix'.
(lib-src/Makefile): Edit value of exec_prefix into lib-src/Makefile.
* Makefile.in (mandir): Make the default value for this depend on
$(prefix).
* Makefile.in (datadir, statedir, libdir): Make these all default
to ${prefix}/lib.
(lispdir, locallisppath, etcdir, lockdir, archlibdir): Adjusted
to compensate.
* Makefile.in (install, install.sysv, install.xenix, install.aix):
Install the etags and ctags man pages too.
* Makefile.in (distclean): Don't delete backup files; that's the
job of extraclean.
(extraclean): Like distclean, but deletes backup and autosave files.
Make path specification conform to GNU coding standards.
* configure (long_usage): Remove all traces of old arguments from
usage messages, and document the options we do accept in more
detail: -with-x... and --srcdir.
(options, boolean_opts): Deleted; we don't have enough options to
make this worthwhile.
(prefix, bindir, lisppath, datadir, libdir, lockdir): Deleted,
along with the code which supported them; these should be set as
arguments to the top-level make.
(config_h_opts): Since this no longer doubles as a list of option
names, make them upper case; this simplifies the code which uses
them to build the sed command to edit src/config.h. Change the
code which sets them.
(cc, g, O): Don't allow the user to set these using options; they
should be specified using `CC=' and `CFLAGS=' arguments to the
top-level make. Just choose reasonable default values for them,
and edit them into Makefile.in's default CC and CONFIG_CFLAGS
values.
(gnu_malloc, rel_alloc): Don't allow the user to set these using
options; use them whenever the configuration files say they're
possible.
Simplify the argument processing loop. Don't accept abbreviations
for option names; these might conflict with other configuration
options in the future.
Add some support for the `--srcdir' option. Check for the sources
in . and .. if `--srcdir' is omitted. If the directories we will
compile in don't exist yet, create them under the current directory.
Note that the rest of the build process doesn't really support
this.
Edit only the top Makefile. That should edit the others. Edit
into the makefile: `version', from lisp/version.el, `configname'
and `srcdir' from the configuration arguments, `CC' and
`CONFIG_CFLAGS' as guessed from the presence or absence of GCC in
the user's path, and LOADLIBES as gleaned from the system
description files.
Simplify the report generated; it doesn't need to include any
description of paths now.
Make `config.status' exec configure instead of just calling it, so
there's no harm in overwriting `config.status'.
* Makefile.in (version, configname): New variables, used to choose
the default values for datadir and libdir.
Path variables rearranged into two clearer groups:
- In the first group are the variables specified by the GNU coding
standards (prefix, bindir, datadir, statedir, libdir, mandir,
manext, infodir, and srcdir).
- In the second are the variables actually used for Emacs's paths
(lispdir, locallisppath, lisppath, buildlisppath, etcdir, lockdir,
archlibdir), which depend on the first category.
datadir and libdir default to directories under
${prefix}/lib/emacs instead of ${prefix}/emacs, by popular
demand.
etcdir and lispdir default to subdirectories of datadir.
archlibdir defaults to libdir.
The new installation tree is a bit deeper than it used to be, so
use the new make-path program in lib-src to build them all.
Always build a new src/paths.h.tmp and then move-if-change it to
src/paths.h, to avoid unnecessary rebuilds while responding to the
right changes.
Remove all mention of arch-lib. Run utility commands from
lib-src, and let the executables be copied into archlibdir when
Emacs is installed.
Add targets for src/Makefile, lib-src/Makefile, and
oldXMenu/Makefile, editing the values of the path variables into
them.
Let lib-src do its own installation.
(datadir): Default to putting data files under
${prefix}/lib/emacs/${version}, not /usr/local/emacs.
(emacsdir): Variable deleted; it would only be confusing to use.
(lispdir, etcdir): Default to ${datadir}/lisp.
(mkdir): Use make-path for this.
(lockdir): Do this in mkdir.
(Makefile): New target.
1992-12-12 15:42:14 +00:00
|
|
|
-rm -f *~ \#*
|
|
|
|
|
2000-12-05 17:02:50 +00:00
|
|
|
# The src subdir knows how to do the right thing
|
|
|
|
# even when the build directory and source dir are different.
|
2001-01-25 11:42:55 +00:00
|
|
|
TAGS tags: lib-src src
|
1997-09-03 23:08:18 +00:00
|
|
|
cd src; $(MAKE) tags
|
1992-04-19 08:53:55 +00:00
|
|
|
|
|
|
|
check:
|
|
|
|
@echo "We don't have any tests for GNU Emacs yet."
|
1992-04-24 08:11:54 +00:00
|
|
|
|
|
|
|
dist:
|
2000-01-31 14:01:49 +00:00
|
|
|
cd ${srcdir}; ./make-dist
|
1993-06-16 23:46:17 +00:00
|
|
|
|
2000-05-10 18:02:16 +00:00
|
|
|
.PHONY: info dvi dist check html
|
2008-05-03 20:16:45 +00:00
|
|
|
|
|
|
|
info-real:
|
2009-08-29 02:18:03 +00:00
|
|
|
(cd doc/emacs; $(MAKE) $(MFLAGS) info)
|
|
|
|
(cd doc/misc; $(MAKE) $(MFLAGS) info)
|
|
|
|
(cd doc/lispref; $(MAKE) $(MFLAGS) info)
|
|
|
|
(cd doc/lispintro; $(MAKE) $(MFLAGS) info)
|
2008-05-03 20:16:45 +00:00
|
|
|
|
1993-12-24 02:28:35 +00:00
|
|
|
force-info:
|
2009-08-29 02:18:03 +00:00
|
|
|
# Note that man/Makefile knows how to put the info files in $(srcdir),
|
2000-12-05 17:02:50 +00:00
|
|
|
# so we can do ok running make in the build dir.
|
2009-08-29 02:18:03 +00:00
|
|
|
# This used to have a clause that exited with an error if MAKEINFO = no.
|
|
|
|
# But it is inappropriate to do so without checking if makeinfo is
|
|
|
|
# actually needed - it is not if the info files are up-to-date. (Bug#3982)
|
|
|
|
# Only the doc/*/Makefiles can decide that, so we let those rules run
|
|
|
|
# and give a standard error if makeinfo is needed but missing.
|
|
|
|
# While it would be nice to give a more detailed error message, that
|
|
|
|
# would require changing every rule in doc/ that builds an info file,
|
2009-08-29 02:21:54 +00:00
|
|
|
# and it's not worth it. This case is only relevant if you download a
|
2009-08-29 02:18:03 +00:00
|
|
|
# release, then change the .texi files.
|
1993-12-24 02:28:35 +00:00
|
|
|
info: force-info
|
2008-05-09 04:28:28 +00:00
|
|
|
@if test "$(MAKEINFO)" = "off"; then \
|
|
|
|
echo "Configured --without-makeinfo, not building manuals" ; \
|
2008-05-03 20:16:45 +00:00
|
|
|
else \
|
|
|
|
$(MAKE) $(MFLAGS) info-real ; \
|
|
|
|
fi
|
2008-02-08 20:29:53 +00:00
|
|
|
|
|
|
|
# The info/dir file must be updated by hand when new manuals are added.
|
|
|
|
check-info-dir: info
|
|
|
|
cd info ; \
|
|
|
|
missing= ; \
|
|
|
|
for file in *; do \
|
|
|
|
test -f "$${file}" || continue ; \
|
|
|
|
case $${file} in \
|
|
|
|
*-[0-9]*|COPYING|dir) continue ;; \
|
|
|
|
esac ; \
|
|
|
|
grep -q -F ": ($${file})." dir || missing="$${missing} $${file}" ; \
|
|
|
|
done ; \
|
|
|
|
if test -n "$${missing}"; then \
|
|
|
|
echo "Missing info/dir entries: $${missing}" ; \
|
|
|
|
exit 1 ; \
|
|
|
|
fi ; \
|
|
|
|
echo "info/dir is OK"
|
|
|
|
|
1993-06-16 23:46:17 +00:00
|
|
|
dvi:
|
2007-09-06 05:12:28 +00:00
|
|
|
(cd doc/emacs; $(MAKE) $(MFLAGS) dvi)
|
|
|
|
(cd doc/misc; $(MAKE) $(MFLAGS) dvi)
|
|
|
|
(cd doc/lispref; $(MAKE) $(MFLAGS) elisp.dvi)
|
|
|
|
(cd doc/lispintro; $(MAKE) $(MFLAGS) emacs-lisp-intro.dvi)
|
1999-10-23 13:22:51 +00:00
|
|
|
|
|
|
|
#### Bootstrapping.
|
|
|
|
|
2008-06-03 03:14:47 +00:00
|
|
|
### This first cleans the lisp subdirectory, removing all compiled
|
2008-06-21 01:38:39 +00:00
|
|
|
### Lisp files. Then re-run make to build all the files anew.
|
1999-10-23 13:22:51 +00:00
|
|
|
|
2002-09-11 21:00:08 +00:00
|
|
|
.PHONY: bootstrap
|
2001-03-30 15:58:27 +00:00
|
|
|
|
2008-06-20 21:48:17 +00:00
|
|
|
bootstrap: bootstrap-clean FRC
|
|
|
|
if [ -x ./config.status ]; then \
|
|
|
|
./config.status; \
|
|
|
|
else \
|
|
|
|
./configure --enable-maintainer-mode; \
|
|
|
|
fi
|
2008-06-21 01:38:39 +00:00
|
|
|
$(MAKE) $(MFLAGS) info all
|
2001-03-30 15:58:27 +00:00
|
|
|
|
2007-11-17 03:50:53 +00:00
|
|
|
.PHONY: check-declare
|
|
|
|
|
|
|
|
check-declare:
|
|
|
|
@if [ ! -e $(srcdir)/src/emacs ]; then \
|
|
|
|
echo "You must build Emacs to use this command"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
(cd leim; $(MAKE) $(MFLAGS) $@)
|
|
|
|
(cd lisp; $(MAKE) $(MFLAGS) $@)
|