comparison man/lispref/Makefile @ 8:4b173ad71786 r19-15b5

Import from CVS: tag r19-15b5
author cvs
date Mon, 13 Aug 2007 08:47:35 +0200
parents 376386a54a3c
children 8eaf7971accc
comparison
equal deleted inserted replaced
7:c153ca296910 8:4b173ad71786
1 # Makefile for the XEmacs Lisp Programmer's Manual. 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 2
7 # Redefine `TEX' if `tex' does not invoke plain TeX. For example: 3 # This file is part of XEmacs.
8 # TEX=platex
9 4
10 TEX=tex 5 # XEmacs is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2, or (at your option) any
8 # later version.
11 9
12 # Where the TeX macros are kept: 10 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
13 texmacrodir = /usr/local/lib/tex/macros 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # for more details.
14 14
15 # Where the Emacs hierarchy lives ($EMACS in the INSTALL document for Emacs.) 15 # You should have received a copy of the GNU General Public License
16 # For example: 16 # along with XEmacs; see the file COPYING. If not, write to
17 # emacslibdir = /usr/local/gnu/lib/emacs 17 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 18 # Boston, MA 02111-1307, USA.
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 19
29 VERSION=2.4 20 VERSION=2.4
30 NAME=lispref 21 NAME=lispref
31 manual = elisp-manual-19-$(VERSION) 22 manual = elisp-manual-19-$(VERSION)
23
24 TEXI2DVI = texi2dvi
32 25
33 # Uncomment this line for permuted index. 26 # Uncomment this line for permuted index.
34 # permuted_index = 1 27 # permuted_index = 1
35 28
36 # List of all the texinfo files in the manual: 29 # List of all the texinfo files in the manual:
47 range-tables.texi scrollbars.texi searching.texi sequences.texi \ 40 range-tables.texi scrollbars.texi searching.texi sequences.texi \
48 specifiers.texi streams.texi strings.texi symbols.texi syntax.texi \ 41 specifiers.texi streams.texi strings.texi symbols.texi syntax.texi \
49 text.texi tips.texi toolbar.texi tooltalk.texi variables.texi windows.texi \ 42 text.texi tips.texi toolbar.texi tooltalk.texi variables.texi windows.texi \
50 x-windows.texi index.unperm index.perm 43 x-windows.texi index.unperm index.perm
51 44
52 all: ../../info/$(NAME).info 45 all : info
46 info : ../../info/$(NAME).info
53 47
54 $(NAME).dvi: $(srcs) index.texi ../texindex 48 ../../info/$(NAME).info: $(srcs) index.texi
49 makeinfo -o $@ $(NAME).texi
50
51 dvi: $(NAME).dvi
52
53 $(NAME).dvi: $(srcs) index.texi
55 # Avoid losing old contents of aux file entirely. 54 # Avoid losing old contents of aux file entirely.
56 -mv $(NAME).aux $(NAME).oaux 55 -mv $(NAME).aux $(NAME).oaux
57 # First shot to define xrefs: 56 # First shot to define xrefs:
58 $(TEX) $(NAME).texi 57 $(TEX) $(NAME).texi
59 if [ a${permuted_index} != a ]; \ 58 if [ a${permuted_index} != a ]; \
60 then \ 59 then ./permute-index && mv permuted.fns $(NAME).fns; \
61 ./permute-index; \ 60 else texindex $(NAME).??; \
62 mv permuted.fns $(NAME).fns; \
63 else \
64 ../texindex $(NAME).??; \
65 fi 61 fi
66 $(TEX) $(NAME).texi 62 $(TEX) $(NAME).texi
67 63
68 index.texi: 64 index.texi:
69 if [ a${permuted_index} != a ]; \ 65 if [ a${permuted_index} != a ]; \
70 then \ 66 then ln -s index.perm index.texi; \
71 ln -s index.perm index.texi; \ 67 else ln -s index.unperm index.texi; \
72 else \
73 ln -s index.unperm index.texi; \
74 fi 68 fi
75
76 ../../info/$(NAME).info: $(srcs) index.texi ../makeinfo
77 ../makeinfo $(NAME).texi
78 69
79 mostlyclean: 70 mostlyclean:
80 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ 71 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
81 *.vr *.vrs *.pg *.pgs *.ky *.kys 72 *.vr *.vrs *.pg *.pgs *.ky *.kys
82
83 clean: mostlyclean 73 clean: mostlyclean
84 rm -f *.dvi *.ps 74 rm -f *.dvi *.ps make.out core index.texi
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 75 distclean: clean
98 realclean: distclean 76 realclean: distclean
99 extraclean: distclean 77 extraclean: distclean
100 -rm -f *~ \#* 78 -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)