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