1994-03-28 20:21:44 +00:00
|
|
|
# Makefile for the GNU Emacs Lisp Reference Manual.
|
|
|
|
#
|
|
|
|
# 11 August 1990
|
|
|
|
|
|
|
|
# Redefine `TEX' if `tex' does not invoke plain TeX. For example:
|
|
|
|
# TEX=platex
|
|
|
|
|
|
|
|
TEX=tex
|
1996-04-03 20:25:24 +00:00
|
|
|
MAKE=make
|
1998-04-18 16:24:14 +00:00
|
|
|
SHELL=/bin/sh
|
1998-06-13 01:29:43 +00:00
|
|
|
INSTALL_INFO = install-info
|
1999-12-03 18:35:56 +00:00
|
|
|
MAKEINFO=makeinfo
|
1994-03-28 20:21:44 +00:00
|
|
|
|
|
|
|
# Where the TeX macros are kept:
|
|
|
|
texmacrodir = /usr/local/lib/tex/macros
|
|
|
|
|
1998-08-29 19:59:33 +00:00
|
|
|
# Standard configure variables.
|
|
|
|
prefix = @prefix@
|
|
|
|
infodir = @infodir@
|
1994-03-28 20:21:44 +00:00
|
|
|
|
|
|
|
# The name of the manual:
|
|
|
|
|
1999-09-17 06:53:20 +00:00
|
|
|
VERSION=2.6
|
1998-04-18 16:24:14 +00:00
|
|
|
manual = elisp-manual-20-$(VERSION)
|
1994-03-28 20:21:44 +00:00
|
|
|
|
|
|
|
# Uncomment this line for permuted index.
|
|
|
|
# permuted_index = 1
|
|
|
|
|
|
|
|
# List of all the texinfo files in the manual:
|
|
|
|
|
|
|
|
srcs = elisp.texi back.texi \
|
1998-04-18 16:24:14 +00:00
|
|
|
abbrevs.texi advice.texi anti.texi backups.texi locals.texi buffers.texi \
|
|
|
|
calendar.texi commands.texi compile.texi control.texi customize.texi \
|
|
|
|
debugging.texi display.texi edebug.texi errors.texi eval.texi files.texi \
|
1999-09-17 06:53:20 +00:00
|
|
|
frames.texi functions.texi hash.texi help.texi hooks.texi \
|
1994-03-28 20:21:44 +00:00
|
|
|
internals.texi intro.texi keymaps.texi lists.texi \
|
|
|
|
loading.texi macros.texi maps.texi markers.texi \
|
1998-04-18 16:24:14 +00:00
|
|
|
minibuf.texi modes.texi nonascii.texi numbers.texi objects.texi \
|
1994-03-28 20:21:44 +00:00
|
|
|
os.texi positions.texi processes.texi searching.texi \
|
|
|
|
sequences.texi streams.texi strings.texi symbols.texi \
|
|
|
|
syntax.texi text.texi tips.texi variables.texi \
|
|
|
|
windows.texi \
|
|
|
|
index.unperm index.perm
|
|
|
|
|
|
|
|
.PHONY: elisp.dvi clean
|
|
|
|
|
1996-04-03 20:25:24 +00:00
|
|
|
# The info file is named `elisp'.
|
|
|
|
|
1998-04-18 16:24:14 +00:00
|
|
|
elisp: $(srcs) index.texi
|
1996-04-03 20:25:24 +00:00
|
|
|
rm -f elisp-*
|
1999-12-03 18:35:56 +00:00
|
|
|
$(MAKEINFO) elisp.texi
|
1996-04-03 20:25:24 +00:00
|
|
|
|
1998-05-03 02:05:54 +00:00
|
|
|
elisp.dvi: $(srcs) index.texi
|
1994-03-28 20:21:44 +00:00
|
|
|
# Avoid losing old contents of aux file entirely.
|
|
|
|
-mv elisp.aux elisp.oaux
|
|
|
|
# First shot to define xrefs:
|
|
|
|
$(TEX) elisp.texi
|
|
|
|
if [ a${permuted_index} != a ]; \
|
|
|
|
then \
|
|
|
|
./permute-index; \
|
1998-05-10 01:43:32 +00:00
|
|
|
mv permuted.fns elisp.fns; \
|
1998-05-03 02:05:54 +00:00
|
|
|
texindex elisp.tp; \
|
1994-03-28 20:21:44 +00:00
|
|
|
else \
|
1998-05-03 02:05:54 +00:00
|
|
|
texindex elisp.??; \
|
1994-03-28 20:21:44 +00:00
|
|
|
fi
|
|
|
|
$(TEX) elisp.texi
|
|
|
|
|
|
|
|
index.texi:
|
|
|
|
if [ a${permuted_index} != a ]; \
|
|
|
|
then \
|
1999-09-14 01:50:00 +00:00
|
|
|
ln -s index.perm index.texi || ln index.perm index.texi; \
|
1994-03-28 20:21:44 +00:00
|
|
|
else \
|
1999-09-14 01:50:00 +00:00
|
|
|
ln -s index.unperm index.texi || ln index.unperm index.texi; \
|
1994-03-28 20:21:44 +00:00
|
|
|
fi
|
|
|
|
|
1996-04-03 20:25:24 +00:00
|
|
|
install: elisp
|
|
|
|
./mkinstalldirs $(infodir)
|
|
|
|
cp elisp elisp-* $(infodir)
|
1998-06-13 01:29:43 +00:00
|
|
|
${INSTALL_INFO} --dir-file=${infodir}/dir --info-file=${infodir}/elisp
|
1994-03-28 20:21:44 +00:00
|
|
|
|
|
|
|
installall: install
|
|
|
|
install -c texinfo.tex $(texmacrodir)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
|
|
|
|
*.vr *.vrs *.pg *.pgs *.ky *.kys
|
|
|
|
rm -f make.out core
|
1998-04-18 16:24:14 +00:00
|
|
|
rm -f index.texi
|
1994-03-28 20:21:44 +00:00
|
|
|
|
1995-06-19 18:35:57 +00:00
|
|
|
maintainer-clean: clean
|
1995-06-07 21:06:17 +00:00
|
|
|
rm -f elisp elisp-*
|
|
|
|
|
1994-03-28 20:21:44 +00:00
|
|
|
dist:
|
1998-04-18 16:24:14 +00:00
|
|
|
-rm -rf temp
|
1994-03-28 20:21:44 +00:00
|
|
|
-mkdir temp
|
|
|
|
-mkdir temp/$(manual)
|
1998-08-29 19:59:33 +00:00
|
|
|
-ln README configure.in configure Makefile.in permute-index $(srcs) \
|
|
|
|
texinfo.tex elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] \
|
|
|
|
temp/$(manual)
|
1998-04-18 16:24:14 +00:00
|
|
|
-(cd temp/$(manual); rm -f mkinstalldirs)
|
|
|
|
cp mkinstalldirs temp/$(manual)
|
1994-03-28 20:21:44 +00:00
|
|
|
(cd temp/$(manual); rm -f *~)
|
|
|
|
(cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
|
|
|
|
-rm -rf temp
|