annotate man/lispref/Makefile @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 4b173ad71786
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 # Makefile for the XEmacs Lisp Programmer's Manual.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 # based on FSF Makefile, 11 August 1990
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 # Modified by Ben Wing, February 1994
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 # merged with Makefile for ELisp Manual 2.4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 # TEX=platex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 TEX=tex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 # Where the TeX macros are kept:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 texmacrodir = /usr/local/lib/tex/macros
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 # Where the Emacs hierarchy lives ($EMACS in the INSTALL document for Emacs.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 # For example:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 # emacslibdir = /usr/local/gnu/lib/emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 # Directory where Emacs is installed, by default:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 emacslibdir = /usr/local/emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 # Unless you have a nonstandard Emacs installation, these shouldn't have to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 # be changed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 prefix = /usr/local
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 infodir = ${prefix}/info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 # The name of the manual:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 VERSION=2.4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 NAME=lispref
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 manual = elisp-manual-19-$(VERSION)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 # Uncomment this line for permuted index.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 # permuted_index = 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 # List of all the texinfo files in the manual:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 srcs = abbrevs.texi annotations.texi back.texi backups.texi buffers.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 building.texi commands.texi compile.texi consoles-devices.texi control.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 databases.texi debugging.texi dialog.texi display.texi edebug-inc.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 edebug.texi errors.texi eval.texi extents.texi faces.texi files.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 frames.texi functions.texi glyphs.texi hash-tables.texi help.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 hooks.texi index.texi internationalization.texi intro.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 keymaps.texi lispref.texi lists.texi loading.texi locals.texi macros.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 maps.texi markers.texi menus.texi minibuf.texi modes.texi mouse.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 mule.texi numbers.texi objects.texi os.texi positions.texi processes.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 range-tables.texi scrollbars.texi searching.texi sequences.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 specifiers.texi streams.texi strings.texi symbols.texi syntax.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 text.texi tips.texi toolbar.texi tooltalk.texi variables.texi windows.texi \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 x-windows.texi index.unperm index.perm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 all: ../../info/$(NAME).info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 $(NAME).dvi: $(srcs) index.texi ../texindex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 # Avoid losing old contents of aux file entirely.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 -mv $(NAME).aux $(NAME).oaux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 # First shot to define xrefs:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 $(TEX) $(NAME).texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 if [ a${permuted_index} != a ]; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 then \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ./permute-index; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 mv permuted.fns $(NAME).fns; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 else \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ../texindex $(NAME).??; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 $(TEX) $(NAME).texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 index.texi:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 if [ a${permuted_index} != a ]; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 then \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ln -s index.perm index.texi; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 else \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ln -s index.unperm index.texi; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ../../info/$(NAME).info: $(srcs) index.texi ../makeinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ../makeinfo $(NAME).texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 mostlyclean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 *.vr *.vrs *.pg *.pgs *.ky *.kys
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 clean: mostlyclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 rm -f *.dvi *.ps
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 rm -f make.out core
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 rm -f index.texi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 # not working.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 #install: elisp elisp.dvi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 # mv elisp elisp-* $(infodir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 # @echo also add the line for elisp to $(infodir)/dir.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 # not working.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 #installall: install
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 # install -c texinfo.tex $(texmacrodir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 distclean: clean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 realclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 extraclean: distclean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 -rm -f *~ \#*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 ../texindex:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (cd ..; make texindex)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 # not working.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 #maintainer-clean: clean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 # rm -f elisp elisp-*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 # not working.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 # dist:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 # -mkdir temp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 # -mkdir temp/$(manual)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 # -ln README Makefile permute-index $(srcs) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 # texinfo.tex getopt.c getopt1.c getopt.h \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 # elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] temp/$(manual)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 # -rm -f temp/$(manual)/texindex.c temp/$(manual)/makeinfo.c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 # cp texindex.c makeinfo.c temp/$(manual)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 # (cd temp/$(manual); rm -f *~)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 # (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 # -rm -rf temp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 ../makeinfo:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 (cd ..; make makeinfo)