Update copyright year to 2015
[emacs.git] / doc / lispref / Makefile.in
blob4c62c7034622d776463a03665bb8e5a5ce524c9b
1 ### @configure_input@
3 # Copyright (C) 1990-1996, 1998-2015 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 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)/emacsver.texi \
84 $(srcdir)/abbrevs.texi \
85 $(srcdir)/anti.texi \
86 $(srcdir)/backups.texi \
87 $(srcdir)/buffers.texi \
88 $(srcdir)/commands.texi \
89 $(srcdir)/compile.texi \
90 $(srcdir)/control.texi \
91 $(srcdir)/customize.texi \
92 $(srcdir)/debugging.texi \
93 $(srcdir)/display.texi \
94 $(srcdir)/edebug.texi \
95 $(srcdir)/errors.texi \
96 $(srcdir)/eval.texi \
97 $(srcdir)/files.texi \
98 $(srcdir)/frames.texi \
99 $(srcdir)/functions.texi \
100 $(srcdir)/hash.texi \
101 $(srcdir)/help.texi \
102 $(srcdir)/hooks.texi \
103 $(srcdir)/internals.texi \
104 $(srcdir)/intro.texi \
105 $(srcdir)/keymaps.texi \
106 $(srcdir)/lists.texi \
107 $(srcdir)/loading.texi \
108 $(srcdir)/macros.texi \
109 $(srcdir)/maps.texi \
110 $(srcdir)/markers.texi \
111 $(srcdir)/minibuf.texi \
112 $(srcdir)/modes.texi \
113 $(srcdir)/nonascii.texi \
114 $(srcdir)/numbers.texi \
115 $(srcdir)/objects.texi \
116 $(srcdir)/os.texi \
117 $(srcdir)/package.texi \
118 $(srcdir)/positions.texi \
119 $(srcdir)/processes.texi \
120 $(srcdir)/searching.texi \
121 $(srcdir)/sequences.texi \
122 $(srcdir)/streams.texi \
123 $(srcdir)/strings.texi \
124 $(srcdir)/symbols.texi \
125 $(srcdir)/syntax.texi \
126 $(srcdir)/text.texi \
127 $(srcdir)/tips.texi \
128 $(srcdir)/variables.texi \
129 $(srcdir)/windows.texi \
130 $(srcdir)/index.texi \
131 $(srcdir)/gpl.texi \
132 $(srcdir)/doclicense.texi
134 ## Disable implicit rules.
135 %.texi: ;
137 .PHONY: info dvi html pdf ps
139 info: $(buildinfodir)/elisp.info
140 dvi: $(DVI_TARGETS)
141 html: $(HTML_TARGETS)
142 pdf: $(PDF_TARGETS)
143 ps: $(PS_TARGETS)
145 ${buildinfodir}:
146 ${MKDIR_P} $@
148 $(buildinfodir)/elisp.info: $(srcs) | ${buildinfodir}
149 $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $<
151 elisp.dvi: $(srcs)
152 $(ENVADD) $(TEXI2DVI) $<
154 elisp.html: $(srcs)
155 $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ $<
157 elisp.pdf: $(srcs)
158 $(ENVADD) $(TEXI2PDF) $<
160 elisp.ps: elisp.dvi
161 $(DVIPS) -o $@ $<
163 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean
165 ## [12] stuff is from two-volume.make.
166 mostlyclean:
167 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
168 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
169 rm -f elisp[12]* vol[12].tmp
171 clean: mostlyclean
172 rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
173 rm -f vol[12].dvi vol[12].pdf vol[12].ps
175 distclean: clean
176 rm -f Makefile
178 infoclean:
179 rm -f \
180 $(buildinfodir)/elisp.info \
181 $(buildinfodir)/elisp.info-[1-9] \
182 $(buildinfodir)/elisp.info-[1-9][0-9]
184 bootstrap-clean maintainer-clean: distclean infoclean
186 .PHONY: install-dvi install-html install-pdf install-ps install-doc
188 install-dvi: dvi
189 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
190 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
191 install-html: html
192 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
193 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
194 install-pdf: pdf
195 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
196 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
197 install-ps: ps
198 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
199 for file in $(PS_TARGETS); do \
200 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
201 [ -n "${GZIP_PROG}" ] || continue; \
202 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
203 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
204 done
206 ## Top-level Makefile installs the info pages.
207 install-doc: install-dvi install-html install-pdf install-ps
210 .PHONY: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
212 uninstall-dvi:
213 for file in $(DVI_TARGETS); do \
214 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
215 done
216 uninstall-html:
217 for file in $(HTML_TARGETS); do \
218 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
219 done
220 uninstall-ps:
221 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
222 for file in $(PS_TARGETS); do \
223 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
224 done
225 uninstall-pdf:
226 for file in $(PDF_TARGETS); do \
227 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
228 done
230 uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
233 ### Makefile ends here