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
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# make all to compile and build Emacs.
|
|
|
|
# make install to install it.
|
|
|
|
# make install.sysv to install on system V. Note that on system V you
|
|
|
|
# must change mandir to /usr/local/man/man1.
|
|
|
|
# make install.xenix to install on Xenix.
|
1992-03-21 07:56:45 +00:00
|
|
|
# make install.aix to install on AIX.
|
1992-04-19 08:53:55 +00:00
|
|
|
# make tags to update tags tables.
|
1992-01-14 07:27:56 +00:00
|
|
|
#
|
1992-04-19 08:53:55 +00:00
|
|
|
# make distclean to delete everything that wasn't in the distribution.
|
1992-09-13 10:43:05 +00:00
|
|
|
# This is a very dangerous thing to do! It removes backup files,
|
|
|
|
# among other things.
|
1992-01-14 07:27:56 +00:00
|
|
|
# make clean
|
1992-04-19 08:53:55 +00:00
|
|
|
# This is a little less dangerous.
|
1992-04-24 08:11:54 +00:00
|
|
|
# make dist
|
|
|
|
# This produces a tar file from the current source tree suitable
|
|
|
|
# for redistribution.
|
1992-01-14 07:27:56 +00:00
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# ==================== Where To Install Things ====================
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# The default location for installation. Everything is placed in
|
|
|
|
# subdirectories of this directory. This directory must exist when
|
|
|
|
# you start installation. The default values for many of the
|
|
|
|
# variables below are expressed in terms of this one, so you may not
|
|
|
|
# need to change them.
|
|
|
|
prefix=/usr/local
|
1992-01-14 07:27:56 +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).
|
1992-04-24 08:11:54 +00:00
|
|
|
bindir=${prefix}/bin
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# A directory under which we will install many of Emacs's files. The
|
|
|
|
# default values for many of the variables below are expressed in
|
|
|
|
# terms of this one, so you may not need to change them.
|
1992-04-24 08:11:54 +00:00
|
|
|
emacsdir=${prefix}/emacs-19.0
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# Where to install and expect the architecture-independent data files
|
|
|
|
# (like the tutorial and the Zippy database).
|
1992-04-24 08:11:54 +00:00
|
|
|
datadir=${emacsdir}/etc
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# Where to install the elisp files distributed with Emacs. Strictly
|
|
|
|
# speaking, all the elisp files should go under datadir (above), since
|
|
|
|
# both elisp source and compiled elisp are completely portable, but
|
|
|
|
# it's traditional to give the lisp files their own subdirectory.
|
1992-04-24 08:11:54 +00:00
|
|
|
lispdir=${emacsdir}/lisp
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# Directories Emacs should search for elisp files specific to this
|
1992-04-24 08:11:54 +00:00
|
|
|
# site (i.e. customizations), before consulting ${lispdir}. This
|
1992-04-19 08:53:55 +00:00
|
|
|
# should be a colon-separated list of directories.
|
1992-04-24 08:11:54 +00:00
|
|
|
locallisppath=${emacsdir}/local-lisp
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# Where Emacs will search to find its elisp files. Before changing
|
|
|
|
# this, check to see if your purpose wouldn't better be served by
|
|
|
|
# changing locallisppath. This should be a colon-separated list of
|
|
|
|
# directories.
|
1992-04-24 08:11:54 +00:00
|
|
|
lisppath=${locallisppath}:${lispdir}
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-04-24 08:11:54 +00:00
|
|
|
# Where Emacs will search for its elisp files while building. This is
|
1992-04-19 08:53:55 +00:00
|
|
|
# only used during the process of compiling Emacs, to help Emacs find
|
|
|
|
# its lisp files before they've been installed in their final
|
|
|
|
# location. It's usually identical to lisppath, except that the entry
|
|
|
|
# for the directory containing the installed lisp files has been
|
|
|
|
# replaced with ../lisp. This should be a colon-separated list of
|
|
|
|
# directories.
|
1992-04-24 08:11:54 +00:00
|
|
|
buildlisppath=../lisp
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# Where to install and expect the files that Emacs modifies as it
|
|
|
|
# runs. These files are all architecture-independent. Right now,
|
|
|
|
# the only such data is the locking directory.
|
1992-04-24 08:11:54 +00:00
|
|
|
statedir=${emacsdir}
|
1992-04-19 08:53:55 +00:00
|
|
|
|
|
|
|
# Where to create and expect the locking directory, where the Emacs
|
|
|
|
# locking code keeps track of which files are currently being edited.
|
1992-04-24 08:11:54 +00:00
|
|
|
lockdir=${statedir}/lock
|
1992-04-19 08:53:55 +00:00
|
|
|
|
|
|
|
# Where to install and expect executable files to be run by Emacs
|
|
|
|
# rather than directly by users, and other architecture-dependent
|
|
|
|
# data.
|
1992-04-24 08:11:54 +00:00
|
|
|
libdir=${emacsdir}/arch-lib
|
1992-04-19 08:53:55 +00:00
|
|
|
|
|
|
|
# Where to install Emacs's man pages.
|
|
|
|
mandir=/usr/man/man1
|
|
|
|
|
|
|
|
# Where to install and expect the info files describing Emacs. In the
|
1992-04-24 08:11:54 +00:00
|
|
|
# past, this defaulted to a subdirectory of ${prefix}/lib/emacs, but
|
1992-04-19 08:53:55 +00:00
|
|
|
# since there are now many packages documented with the texinfo
|
|
|
|
# system, it is inappropriate to imply that it is part of Emacs.
|
1992-04-24 08:11:54 +00:00
|
|
|
infodir=${prefix}/info
|
1992-04-19 08:53:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
# ==================== Utility Programs for the Build ====================
|
|
|
|
|
|
|
|
# Allow the user to specify the install program.
|
|
|
|
INSTALL = install
|
|
|
|
INSTALLFLAGS = -c
|
|
|
|
INSTALL_PROGRAM = ${INSTALL}
|
|
|
|
INSTALL_DATA = ${INSTALL}
|
|
|
|
|
|
|
|
|
|
|
|
# ============================= Targets ==============================
|
1992-01-14 07:27:56 +00:00
|
|
|
|
|
|
|
# Flags passed down to subdirectory makefiles.
|
1992-04-19 08:53:55 +00:00
|
|
|
MFLAGS =
|
1992-01-14 07:27:56 +00:00
|
|
|
|
|
|
|
# Subdirectories to make recursively. `lisp' is not included
|
|
|
|
# because the compiled lisp files are part of the distribution
|
|
|
|
# and you cannot remake them without installing Emacs first.
|
1992-04-19 08:53:55 +00:00
|
|
|
SUBDIR = lib-src src
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# Subdirectories to install, and where they'll go.
|
|
|
|
COPYDIR = arch-lib etc info lisp
|
1992-04-24 08:11:54 +00:00
|
|
|
COPYDESTS = ${libdir} ${datadir} ${infodir} ${lispdir}
|
1992-01-14 07:27:56 +00:00
|
|
|
|
|
|
|
all: src/paths.h ${SUBDIR}
|
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
removenullpaths=sed -e 's/^://' -e 's/:$$//' -e 's/::/:/'
|
|
|
|
|
1992-08-27 22:17:59 +00:00
|
|
|
# Note that sed is not in /bin on 386bsd.
|
1992-04-19 08:53:55 +00:00
|
|
|
src/paths.h: Makefile src/paths.h.in
|
1992-04-24 08:11:54 +00:00
|
|
|
lisppath=`echo ${lisppath} | ${removenullpaths}` ; \
|
|
|
|
buildlisppath=`echo ${buildlisppath} | ${removenullpaths}` ; \
|
1992-09-13 10:43:05 +00:00
|
|
|
sed < src/paths.h.in > src/paths.h.tmp \
|
1992-04-19 08:53:55 +00:00
|
|
|
-e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \
|
1992-04-24 08:11:54 +00:00
|
|
|
-e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \
|
|
|
|
-e 's;\(#.*PATH_EXEC\).*$$;\1 "${libdir}";' \
|
|
|
|
-e 's;\(#.*PATH_DATA\).*$$;\1 "${datadir}";' \
|
1992-05-01 06:20:46 +00:00
|
|
|
-e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";'
|
1992-05-10 18:15:10 +00:00
|
|
|
./move-if-change src/paths.h.tmp src/paths.h
|
1992-01-14 07:27:56 +00:00
|
|
|
|
|
|
|
src: lib-src
|
|
|
|
|
|
|
|
.RECURSIVE: ${SUBDIR}
|
|
|
|
|
|
|
|
${SUBDIR}: FRC
|
|
|
|
cd $@; make ${MFLAGS} all
|
|
|
|
|
|
|
|
install: all mkdir lockdir
|
1992-04-19 08:53:55 +00:00
|
|
|
-set ${COPYDESTS} ; \
|
|
|
|
for dir in ${COPYDIR} ; do \
|
|
|
|
dest=$$1 ; shift ; \
|
|
|
|
if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \
|
|
|
|
(cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xf - ) ; \
|
|
|
|
for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
|
|
|
|
rm -rf $${subdir}/RCS ; \
|
|
|
|
rm -f $${subdir}/\#* ; \
|
|
|
|
rm -f $${subdir}/*~ ; \
|
|
|
|
done ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
${INSTALL_PROGRAM} ${INSTALLFLAGS} -c arch-lib/emacsclient ${bindir}/emacsclient
|
|
|
|
${INSTALL_PROGRAM} ${INSTALLFLAGS} -c arch-lib/etags ${bindir}/etags
|
|
|
|
${INSTALL_PROGRAM} ${INSTALLFLAGS} -c arch-lib/ctags ${bindir}/ctags
|
|
|
|
${INSTALL_PROGRAM} ${INSTALLFLAGS} -c -m 1755 src/xemacs ${bindir}/xemacs
|
|
|
|
${INSTALL_DATA} ${INSTALLFLAGS} -c -m 444 etc/emacs.1 ${mandir}/emacs.1
|
|
|
|
-rm -f ${bindir}/emacs
|
|
|
|
mv ${bindir}/xemacs ${bindir}/emacs
|
1992-01-14 07:27:56 +00:00
|
|
|
|
|
|
|
install.sysv: all mkdir lockdir
|
1992-04-19 08:53:55 +00:00
|
|
|
-set ${COPYDESTS} ; \
|
|
|
|
for dir in ${COPYDIR} ; do \
|
|
|
|
dest=$$1 ; shift ; \
|
|
|
|
if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \
|
|
|
|
(cd $${dir}; find . -print | cpio -pdum ${dest} ) ; \
|
|
|
|
for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
|
|
|
|
rm -rf $${subdir}/RCS ; \
|
|
|
|
rm -f $${subdir}/\#* ; \
|
|
|
|
rm -f $${subdir}/*~ ; \
|
|
|
|
done ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
-cpset arch-lib/emacsclient ${bindir}/emacsclient 755 bin bin
|
|
|
|
-cpset arch-lib/etags ${bindir}/etags 755 bin bin
|
|
|
|
-cpset arch-lib/ctags ${bindir}/ctags 755 bin bin
|
|
|
|
-cpset etc/emacs.1 ${mandir}/emacs.1 444 bin bin
|
|
|
|
-/bin/rm -f ${bindir}/emacs
|
|
|
|
-cpset src/xemacs ${bindir}/emacs 1755 bin bin
|
1992-01-14 07:27:56 +00:00
|
|
|
|
|
|
|
install.xenix: all mkdir lockdir
|
1992-04-19 08:53:55 +00:00
|
|
|
-set ${COPYDESTS} ; \
|
|
|
|
for dir in ${COPYDIR} ; do \
|
|
|
|
dest=$$1 ; shift ; \
|
|
|
|
if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \
|
|
|
|
(cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xpf - ) ; \
|
|
|
|
for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
|
|
|
|
rm -rf $${subdir}/RCS ; \
|
|
|
|
rm -f $${subdir}/\#* ; \
|
|
|
|
rm -f $${subdir}/*~ ; \
|
|
|
|
done ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
cp arch-lib/etags arch-lib/ctags arch-lib/emacsclient ${bindir}
|
|
|
|
chmod 755 ${bindir}/etags ${bindir}/ctags ${bindir}/emacsclient
|
|
|
|
cp etc/emacs.1 ${mandir}/emacs.1
|
|
|
|
chmod 444 ${mandir}/emacs.1
|
|
|
|
-mv -f ${bindir}/emacs ${bindir}/emacs.old
|
|
|
|
cp src/xemacs ${bindir}/emacs
|
|
|
|
chmod 1755 ${bindir}/emacs
|
|
|
|
-rm -f ${bindir}/emacs.old
|
1992-01-14 07:27:56 +00:00
|
|
|
|
1992-03-21 07:56:45 +00:00
|
|
|
install.aix: all mkdir lockdir
|
1992-04-19 08:53:55 +00:00
|
|
|
-set ${COPYDESTS} ; \
|
|
|
|
for dir in ${COPYDIR} ; do \
|
|
|
|
dest=$$1 ; shift ; \
|
|
|
|
if [ `/bin/pwd`/$${dir} != `(cd $${dest}; /bin/pwd)` ] ; then \
|
|
|
|
(cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xBf - ) ; \
|
|
|
|
for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
|
|
|
|
rm -rf $${subdir}/RCS ; \
|
|
|
|
rm -f $${subdir}/\#* ; \
|
|
|
|
rm -f $${subdir}/*~ ; \
|
|
|
|
done ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
|
|
|
${INSTALL_PROGRAM} ${INSTALLFLAGS} -f ${bindir} etc/emacsclient
|
|
|
|
${INSTALL_PROGRAM} ${INSTALLFLAGS} -f ${bindir} etc/etags
|
|
|
|
${INSTALL_PROGRAM} ${INSTALLFLAGS} -f ${bindir} etc/ctags
|
|
|
|
${INSTALL_PROGRAM} ${INSTALLFLAGS} -M 1755 -f ${bindir} src/xemacs
|
|
|
|
${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${mandir} etc/emacs.1
|
|
|
|
-rm -f ${bindir}/emacs
|
|
|
|
mv ${bindir}/xemacs ${bindir}/emacs
|
1992-03-21 07:56:45 +00:00
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
# Build all the directories
|
1992-01-14 07:27:56 +00:00
|
|
|
mkdir: FRC
|
1992-04-19 08:53:55 +00:00
|
|
|
# If any of the directories are below ${emacsdir}, create it.
|
|
|
|
-for dir in ${COPYDESTS}; do \
|
|
|
|
case "$${dir}" in \
|
|
|
|
${emacsdir}/* ) \
|
|
|
|
if [ ! -d ${emacsdir} ]; then \
|
1992-06-09 23:02:56 +00:00
|
|
|
mkdir ${emacsdir} ; \
|
|
|
|
chmod 777 ${emacsdir} ; \
|
1992-04-19 08:53:55 +00:00
|
|
|
fi ; \
|
|
|
|
break\
|
|
|
|
;; \
|
|
|
|
esac ; \
|
|
|
|
done
|
|
|
|
-mkdir ${COPYDESTS}
|
|
|
|
-chmod 777 ${COPYDESTS}
|
1992-01-14 07:27:56 +00:00
|
|
|
|
|
|
|
lockdir:
|
1992-04-19 08:53:55 +00:00
|
|
|
# If the lockdir needs ${emacsdir}, create it.
|
|
|
|
-case "${lockdir}" in \
|
|
|
|
${statedir}/* ) \
|
|
|
|
if [ ! -d ${emacsdir} ]; then \
|
1992-06-09 23:02:56 +00:00
|
|
|
mkdir ${emacsdir} ; \
|
|
|
|
chmod 777 ${emacsdir} ; \
|
1992-04-19 08:53:55 +00:00
|
|
|
fi \
|
|
|
|
;; \
|
|
|
|
esac
|
1992-01-14 07:27:56 +00:00
|
|
|
-mkdir ${LOCKDIR}
|
|
|
|
-chmod 777 ${LOCKDIR}
|
|
|
|
|
|
|
|
FRC:
|
|
|
|
|
1992-04-19 08:53:55 +00:00
|
|
|
clean mostlyclean:
|
|
|
|
cd src; make clean
|
1992-07-07 19:52:34 +00:00
|
|
|
if [ `/bin/pwd` != `(cd ${emacsdir}; /bin/pwd)` ] ; then \
|
|
|
|
(cd etc; make clean); \
|
|
|
|
(cd lib-src; make clean); \
|
1992-04-19 08:53:55 +00:00
|
|
|
else true; \
|
|
|
|
fi
|
|
|
|
cd oldXMenu; make clean
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} distclean); done
|
|
|
|
-(cd lock; rm *)
|
|
|
|
-rm config.status config-tmp-*
|
|
|
|
-rm #*# *~
|
|
|
|
|
|
|
|
realclean:
|
|
|
|
for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} realclean); done
|
|
|
|
(cd lock; rm *)
|
|
|
|
rm config.status
|
|
|
|
|
|
|
|
TAGS tags: lib-src
|
1992-01-14 07:27:56 +00:00
|
|
|
cd src; ../arch-lib/etags *.[ch] ../lisp/*.el ../lisp/term/*.el
|
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:
|
|
|
|
make-dist
|