Merge branch 'master' into comment-cache
[emacs.git] / doc / lispref / Makefile.in
blob89eb81093d11b4a412ad42a0c3049956b6a8497c
1 ### @configure_input@
3 # Copyright (C) 1990-1996, 1998-2017 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
7 # GNU Emacs is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20 SHELL = @SHELL@
22 # NB If you add any more configure variables,
23 # update the sed rules in the dist target below.
25 # Standard configure variables.
26 srcdir = @srcdir@
28 buildinfodir = $(srcdir)/../../info
29 # Directory with the (customized) texinfo.tex file.
30 texinfodir = $(srcdir)/../misc
31 # Directory with docstyle.tex and emacsver.texi.
32 emacsdir = $(srcdir)/../emacs
34 prefix = @prefix@
35 datarootdir = @datarootdir@
36 datadir = @datadir@
37 PACKAGE_TARNAME = @PACKAGE_TARNAME@
38 docdir = @docdir@
39 dvidir = @dvidir@
40 htmldir = @htmldir@
41 pdfdir = @pdfdir@
42 psdir = @psdir@
44 MKDIR_P = @MKDIR_P@
46 GZIP_PROG = @GZIP_PROG@
48 HTML_OPTS = --no-split --html
50 # Options used only when making info output.
51 INFO_OPTS= --no-split
53 INSTALL = @INSTALL@
54 INSTALL_DATA = @INSTALL_DATA@
56 MAKEINFO = @MAKEINFO@
57 MAKEINFO_OPTS = --force --enable-encoding -I $(emacsdir) -I $(srcdir)
58 TEXI2DVI = texi2dvi
59 TEXI2PDF = texi2pdf
60 DVIPS = dvips
62 # 'make' verbosity.
63 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
65 AM_V_GEN = $(am__v_GEN_@AM_V@)
66 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
67 am__v_GEN_0 = @echo " GEN " $@;
68 am__v_GEN_1 =
70 ENVADD = \
71 $(AM_V_GEN)TEXINPUTS="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
72 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
74 DVI_TARGETS = elisp.dvi
75 HTML_TARGETS = elisp.html
76 PDF_TARGETS = elisp.pdf
77 PS_TARGETS = elisp.ps
79 # List of all the texinfo files in the manual:
81 srcs = \
82 $(srcdir)/elisp.texi \
83 $(emacsdir)/docstyle.texi \
84 $(emacsdir)/emacsver.texi \
85 $(srcdir)/abbrevs.texi \
86 $(srcdir)/anti.texi \
87 $(srcdir)/backups.texi \
88 $(srcdir)/buffers.texi \
89 $(srcdir)/commands.texi \
90 $(srcdir)/compile.texi \
91 $(srcdir)/control.texi \
92 $(srcdir)/customize.texi \
93 $(srcdir)/debugging.texi \
94 $(srcdir)/display.texi \
95 $(srcdir)/edebug.texi \
96 $(srcdir)/errors.texi \
97 $(srcdir)/eval.texi \
98 $(srcdir)/files.texi \
99 $(srcdir)/frames.texi \
100 $(srcdir)/functions.texi \
101 $(srcdir)/hash.texi \
102 $(srcdir)/help.texi \
103 $(srcdir)/hooks.texi \
104 $(srcdir)/internals.texi \
105 $(srcdir)/intro.texi \
106 $(srcdir)/keymaps.texi \
107 $(srcdir)/lists.texi \
108 $(srcdir)/loading.texi \
109 $(srcdir)/macros.texi \
110 $(srcdir)/maps.texi \
111 $(srcdir)/markers.texi \
112 $(srcdir)/minibuf.texi \
113 $(srcdir)/modes.texi \
114 $(srcdir)/nonascii.texi \
115 $(srcdir)/numbers.texi \
116 $(srcdir)/objects.texi \
117 $(srcdir)/os.texi \
118 $(srcdir)/package.texi \
119 $(srcdir)/positions.texi \
120 $(srcdir)/processes.texi \
121 $(srcdir)/searching.texi \
122 $(srcdir)/sequences.texi \
123 $(srcdir)/streams.texi \
124 $(srcdir)/strings.texi \
125 $(srcdir)/symbols.texi \
126 $(srcdir)/syntax.texi \
127 $(srcdir)/text.texi \
128 $(srcdir)/threads.texi \
129 $(srcdir)/tips.texi \
130 $(srcdir)/variables.texi \
131 $(srcdir)/windows.texi \
132 $(srcdir)/index.texi \
133 $(srcdir)/gpl.texi \
134 $(srcdir)/doclicense.texi
136 ## Disable implicit rules.
137 %.texi: ;
139 .PHONY: info dvi html pdf ps
141 info: $(buildinfodir)/elisp.info
142 dvi: $(DVI_TARGETS)
143 html: $(HTML_TARGETS)
144 pdf: $(PDF_TARGETS)
145 ps: $(PS_TARGETS)
147 ${buildinfodir}:
148 ${MKDIR_P} $@
150 $(buildinfodir)/elisp.info: $(srcs) | ${buildinfodir}
151 $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $<
153 elisp.dvi: $(srcs)
154 $(ENVADD) $(TEXI2DVI) $<
156 elisp.html: $(srcs)
157 $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ $<
159 elisp.pdf: $(srcs)
160 $(ENVADD) $(TEXI2PDF) $<
162 elisp.ps: elisp.dvi
163 $(DVIPS) -o $@ $<
165 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean
167 ## [12] stuff is from two-volume.make.
168 mostlyclean:
169 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
170 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
171 rm -f elisp[12]* vol[12].tmp
173 clean: mostlyclean
174 rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
175 rm -f vol[12].dvi vol[12].pdf vol[12].ps
177 distclean: clean
178 rm -f Makefile
180 infoclean:
181 rm -f \
182 $(buildinfodir)/elisp.info \
183 $(buildinfodir)/elisp.info-[1-9] \
184 $(buildinfodir)/elisp.info-[1-9][0-9]
186 bootstrap-clean maintainer-clean: distclean infoclean
188 .PHONY: install-dvi install-html install-pdf install-ps install-doc
190 install-dvi: dvi
191 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
192 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
193 install-html: html
194 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
195 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
196 install-pdf: pdf
197 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
198 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
199 install-ps: ps
200 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
201 for file in $(PS_TARGETS); do \
202 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
203 [ -n "${GZIP_PROG}" ] || continue; \
204 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
205 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
206 done
208 ## Top-level Makefile installs the info pages.
209 install-doc: install-dvi install-html install-pdf install-ps
212 .PHONY: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
214 uninstall-dvi:
215 for file in $(DVI_TARGETS); do \
216 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
217 done
218 uninstall-html:
219 for file in $(HTML_TARGETS); do \
220 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
221 done
222 uninstall-ps:
223 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
224 for file in $(PS_TARGETS); do \
225 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
226 done
227 uninstall-pdf:
228 for file in $(PDF_TARGETS); do \
229 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
230 done
232 uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
235 ### Makefile ends here