Mercurial > emacs
comparison lispref/Makefile.in @ 89910:548375b6b1f8
Update unicode branch
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 19 Apr 2004 07:01:43 +0000 |
parents | 375f2633d815 |
children | 4c90ffeb71c5 |
comparison
equal
deleted
inserted
replaced
89909:68c22ea6027c | 89910:548375b6b1f8 |
---|---|
1 # Makefile for the GNU Emacs Lisp Reference Manual. | 1 # Makefile for the GNU Emacs Lisp Reference Manual. |
2 | 2 |
3 # Copyright (C) 1990,1991,1992,1993,1994,1995,1996,1998,1999,2000,2001 | 3 # Copyright (C) 1990,1991,1992,1993,1994,1995,1996,1998,1999,2000,2001,2003 |
4 # Free Software Foundation, Inc. | 4 # Free Software Foundation, Inc. |
5 | 5 |
6 # This file is part of GNU Emacs. | 6 # This file is part of GNU Emacs. |
7 | 7 |
8 # GNU Emacs is free software; you can redistribute it and/or modify | 8 # GNU Emacs is free software; you can redistribute it and/or modify |
26 # Tell make where to find source files; this is needed for the makefiles. | 26 # Tell make where to find source files; this is needed for the makefiles. |
27 VPATH=@srcdir@ | 27 VPATH=@srcdir@ |
28 | 28 |
29 infodir = $(srcdir)/../info | 29 infodir = $(srcdir)/../info |
30 | 30 |
31 # Redefine `TEX' if `tex' does not invoke plain TeX. For example: | 31 TEXI2DVI = texi2dvi |
32 # TEX=platex | 32 SHELL = /bin/sh |
33 TEX=tex | |
34 SHELL=/bin/sh | |
35 INSTALL_INFO = install-info | 33 INSTALL_INFO = install-info |
36 MAKEINFO=makeinfo | 34 MAKEINFO = makeinfo |
37 | |
38 # The environment variable and its value to add $(srcdir) to the path | |
39 # searched for TeX input files. | |
40 texinputdir = TEXINPUTS=$(srcdir):"$(TEXINPUTS)" | |
41 | 35 |
42 # The name of the manual: | 36 # The name of the manual: |
43 VERSION=2.9 | 37 VERSION=2.9 |
44 manual = elisp-manual-21-$(VERSION) | 38 manual = elisp-manual-21-$(VERSION) |
45 | |
46 # Uncomment this line for permuted index. | |
47 # permuted_index = 1 | |
48 | 39 |
49 # List of all the texinfo files in the manual: | 40 # List of all the texinfo files in the manual: |
50 | 41 |
51 srcs = \ | 42 srcs = \ |
52 $(srcdir)/abbrevs.texi \ | 43 $(srcdir)/abbrevs.texi \ |
97 $(srcdir)/syntax.texi \ | 88 $(srcdir)/syntax.texi \ |
98 $(srcdir)/text.texi \ | 89 $(srcdir)/text.texi \ |
99 $(srcdir)/tips.texi \ | 90 $(srcdir)/tips.texi \ |
100 $(srcdir)/variables.texi \ | 91 $(srcdir)/variables.texi \ |
101 $(srcdir)/windows.texi \ | 92 $(srcdir)/windows.texi \ |
102 $(srcdir)/index.unperm \ | 93 $(srcdir)/index.texi \ |
103 $(srcdir)/index.perm \ | |
104 $(srcdir)/gpl.texi \ | 94 $(srcdir)/gpl.texi \ |
105 $(srcdir)/doclicense.texi | 95 $(srcdir)/doclicense.texi |
106 | 96 |
107 | 97 |
108 .PHONY: clean | 98 .PHONY: clean |
109 | 99 |
110 # The info file is named `elisp'. | 100 # The info file is named `elisp'. |
111 info: $(infodir)/elisp | 101 info: $(infodir)/elisp |
112 | 102 |
113 $(infodir)/elisp: $(srcs) index.texi | 103 $(infodir)/elisp: $(srcs) |
114 $(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi -o $(infodir)/elisp | 104 $(MAKEINFO) -I. -I$(srcdir) $(srcdir)/elisp.texi -o $(infodir)/elisp |
115 | 105 |
116 elisp.dvi: $(srcs) index.texi | 106 elisp.dvi: $(srcs) |
117 # Avoid losing old contents of aux file entirely. | 107 $(TEXI2DVI) -I $(srcdir) $(srcdir)/elisp.texi |
118 -mv elisp.aux elisp.oaux | |
119 # First shot to define xrefs. | |
120 $(texinputdir) $(TEX) $(srcdir)/elisp.texi | |
121 if [ a${permuted_index} != a ]; \ | |
122 then \ | |
123 $(srcdir)/permute-index; \ | |
124 mv permuted.fns elisp.fns; \ | |
125 texindex elisp.tp; \ | |
126 else \ | |
127 texindex elisp.??; \ | |
128 fi | |
129 $(texinputdir) $(TEX) $(srcdir)/elisp.texi | |
130 | |
131 index.texi: | |
132 if [ a${permuted_index} != a ]; \ | |
133 then \ | |
134 ln -s $(srcdir)/index.perm index.texi || ln $(srcdir)/index.perm index.texi || cp $(srcdir)/index.perm index.texi; \ | |
135 else \ | |
136 ln -s $(srcdir)/index.unperm index.texi || ln $(srcdir)/index.unperm index.texi || cp $(srcdir)/index.unperm index.texi; \ | |
137 fi | |
138 | 108 |
139 install: elisp | 109 install: elisp |
140 $(srcdir)/mkinstalldirs $(infodir) | 110 $(srcdir)/mkinstalldirs $(infodir) |
141 cp elisp elisp-* $(infodir) | 111 cp elisp elisp-* $(infodir) |
142 ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/elisp | 112 ${INSTALL_INFO} --info-dir=${infodir} ${infodir}/elisp |
143 | 113 |
144 clean: | 114 clean: |
145 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ | 115 rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \ |
146 *.vr *.vrs *.pg *.pgs *.ky *.kys | 116 *.vr *.vrs *.pg *.pgs *.ky *.kys |
147 rm -f make.out core | 117 rm -f make.out core |
148 rm -f index.texi | |
149 | 118 |
150 distclean: clean | 119 distclean: clean |
151 | 120 |
152 maintainer-clean: clean | 121 maintainer-clean: clean |
153 rm -f elisp elisp-* elisp.dvi elisp.oaux | 122 rm -f elisp elisp-* elisp.dvi elisp.oaux |
155 dist: elisp elisp.dvi | 124 dist: elisp elisp.dvi |
156 -rm -rf temp | 125 -rm -rf temp |
157 -mkdir temp | 126 -mkdir temp |
158 -mkdir temp/$(manual) | 127 -mkdir temp/$(manual) |
159 -ln $(srcdir)/README $(srcdir)/configure.in $(srcdir)/configure \ | 128 -ln $(srcdir)/README $(srcdir)/configure.in $(srcdir)/configure \ |
160 $(srcdir)/Makefile.in $(srcdir)/permute-index $(srcs) \ | 129 $(srcdir)/Makefile.in $(srcs) \ |
161 $(srcdir)/../man/texinfo.tex \ | 130 $(srcdir)/../man/texinfo.tex \ |
162 elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] \ | 131 elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] \ |
163 temp/$(manual) | 132 temp/$(manual) |
164 -(cd temp/$(manual); rm -f mkinstalldirs) | 133 -(cd temp/$(manual); rm -f mkinstalldirs) |
165 cp $(srcdir)/mkinstalldirs temp/$(manual) | 134 cp $(srcdir)/mkinstalldirs temp/$(manual) |
166 (cd temp/$(manual); rm -f *~) | 135 (cd temp/$(manual); rm -f *~) |
167 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz | 136 (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz |
168 -rm -rf temp | 137 -rm -rf temp |
138 | |
139 # arch-tag: f5a1a94d-62e1-4460-a2d1-f02e538ab554 |