Update copyright year to 2015
[emacs.git] / doc / emacs / Makefile.in
blob9f04f0d7704875951b91a833a19910306819e987
1 ### @configure_input@
3 # Copyright (C) 1994, 1996-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 # Where to find the source code. $(srcdir) will be the doc/emacs subdirectory
26 # of the source tree. This is set by configure's `--srcdir' option.
27 srcdir=@srcdir@
29 top_srcdir = @top_srcdir@
31 version = @version@
33 ## Where the output files go.
34 ## Note that the setfilename command in the .texi files assumes this.
35 ## This is a bit funny. Because the info files are in the
36 ## distribution tarfiles, they are always made in $scrdir/../../info,
37 ## even for out-of-tree builds.
38 buildinfodir = $(srcdir)/../../info
39 # Directory with the (customized) texinfo.tex file.
40 texinfodir = $(srcdir)/../misc
42 prefix = @prefix@
43 datarootdir = @datarootdir@
44 datadir = @datadir@
45 PACKAGE_TARNAME = @PACKAGE_TARNAME@
46 docdir = @docdir@
47 dvidir = @dvidir@
48 htmldir = @htmldir@
49 pdfdir = @pdfdir@
50 psdir = @psdir@
52 MKDIR_P = @MKDIR_P@
54 GZIP_PROG = @GZIP_PROG@
56 HTML_OPTS = --no-split --html
58 # Options used only when making info output.
59 # --no-split is only needed because of MS-DOS.
60 # For a possible alternative, see
61 # http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg01182.html
62 INFO_OPTS= --no-split
64 INSTALL = @INSTALL@
65 INSTALL_DATA = @INSTALL_DATA@
67 # The makeinfo program is part of the Texinfo distribution.
68 # Use --force so that it generates output even if there are errors.
69 MAKEINFO = @MAKEINFO@
70 MAKEINFO_OPTS = --force --enable-encoding -I $(srcdir)
72 TEXI2DVI = texi2dvi
73 TEXI2PDF = texi2pdf
74 DVIPS = dvips
76 # 'make' verbosity.
77 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
79 AM_V_GEN = $(am__v_GEN_@AM_V@)
80 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
81 am__v_GEN_0 = @echo " GEN " $@;
82 am__v_GEN_1 =
84 ENVADD = $(AM_V_GEN)TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
85 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
87 DVI_TARGETS = emacs.dvi emacs-xtra.dvi
88 HTML_TARGETS = emacs.html
89 PDF_TARGETS = emacs.pdf emacs-xtra.pdf
90 PS_TARGETS = emacs.ps emacs-xtra.ps
92 EMACS_XTRA= \
93 ${srcdir}/emacs-xtra.texi \
94 $(srcdir)/arevert-xtra.texi \
95 $(srcdir)/cal-xtra.texi \
96 $(srcdir)/dired-xtra.texi \
97 $(srcdir)/picture-xtra.texi \
98 $(srcdir)/emerge-xtra.texi \
99 $(srcdir)/vc-xtra.texi \
100 $(srcdir)/vc1-xtra.texi \
101 $(srcdir)/fortran-xtra.texi \
102 $(srcdir)/msdos-xtra.texi
104 EMACSSOURCES= \
105 ${srcdir}/emacs.texi \
106 ${srcdir}/emacsver.texi \
107 ${srcdir}/doclicense.texi \
108 ${srcdir}/gpl.texi \
109 ${srcdir}/screen.texi \
110 ${srcdir}/commands.texi \
111 ${srcdir}/entering.texi \
112 ${srcdir}/basic.texi \
113 ${srcdir}/mini.texi \
114 ${srcdir}/m-x.texi \
115 ${srcdir}/help.texi \
116 ${srcdir}/mark.texi \
117 ${srcdir}/killing.texi \
118 ${srcdir}/regs.texi \
119 ${srcdir}/display.texi \
120 ${srcdir}/search.texi \
121 ${srcdir}/fixit.texi \
122 ${srcdir}/files.texi \
123 ${srcdir}/buffers.texi \
124 ${srcdir}/windows.texi \
125 ${srcdir}/frames.texi \
126 ${srcdir}/mule.texi \
127 ${srcdir}/modes.texi \
128 ${srcdir}/indent.texi \
129 ${srcdir}/text.texi \
130 ${srcdir}/programs.texi \
131 ${srcdir}/building.texi \
132 ${srcdir}/maintaining.texi \
133 ${srcdir}/abbrevs.texi \
134 ${srcdir}/sending.texi \
135 ${srcdir}/rmail.texi \
136 ${srcdir}/dired.texi \
137 ${srcdir}/calendar.texi \
138 ${srcdir}/misc.texi \
139 ${srcdir}/package.texi \
140 ${srcdir}/custom.texi \
141 ${srcdir}/trouble.texi \
142 ${srcdir}/cmdargs.texi \
143 ${srcdir}/xresources.texi \
144 ${srcdir}/anti.texi \
145 ${srcdir}/macos.texi \
146 ${srcdir}/msdos.texi \
147 ${srcdir}/gnu.texi \
148 ${srcdir}/glossary.texi \
149 ${srcdir}/ack.texi \
150 ${srcdir}/kmacro.texi \
151 $(EMACS_XTRA)
153 ## Disable implicit rules.
154 %.texi: ;
156 .PHONY: info dvi html pdf ps
158 info: $(buildinfodir)/emacs.info
159 dvi: $(DVI_TARGETS)
160 html: $(HTML_TARGETS)
161 pdf: $(PDF_TARGETS)
162 ps: $(PS_TARGETS)
164 ## The info/ directory exists in release tarfiles but not the repository.
165 ${buildinfodir}:
166 ${MKDIR_P} $@
168 # Note that all the Info targets build the Info files in srcdir.
169 # There is no provision for Info files to exist in the build directory.
170 # In a distribution of Emacs, the Info files should be up to date.
171 $(buildinfodir)/emacs.info: ${EMACSSOURCES} | ${buildinfodir}
172 $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $<
174 emacs.dvi: ${EMACSSOURCES}
175 $(ENVADD) $(TEXI2DVI) $<
177 emacs.pdf: ${EMACSSOURCES}
178 $(ENVADD) $(TEXI2PDF) $<
180 emacs.html: ${EMACSSOURCES}
181 $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ $<
183 emacs-xtra.dvi: $(EMACS_XTRA)
184 $(ENVADD) $(TEXI2DVI) $<
186 emacs-xtra.pdf: $(EMACS_XTRA)
187 $(ENVADD) $(TEXI2PDF) $<
189 %.ps: %.dvi
190 $(DVIPS) -o $@ $<
192 .PHONY: doc-emacsver
194 # If configure were to just generate emacsver.texi from emacsver.texi.in
195 # in the normal way, the timestamp of emacsver.texi would always be
196 # newer than that of the info files, which are prebuilt in release tarfiles.
197 # So we use this rule, and move-if-change, to avoid that.
198 doc-emacsver:
199 sed 's/[@]version@/${version}/' \
200 ${srcdir}/emacsver.texi.in > emacsver.texi.$$$$ && \
201 ${top_srcdir}/build-aux/move-if-change emacsver.texi.$$$$ \
202 ${srcdir}/emacsver.texi
204 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean
206 ## Temp files.
207 mostlyclean:
208 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
209 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
211 ## Products not in the release tarfiles.
212 clean: mostlyclean
213 rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
215 distclean: clean
216 rm -f Makefile
218 ## In the standalone tarfile, the clean rule runs this.
219 infoclean:
220 rm -f \
221 $(buildinfodir)/emacs.info \
222 $(buildinfodir)/emacs.info-[1-9] \
223 $(buildinfodir)/emacs.info-[1-9][0-9]
225 bootstrap-clean maintainer-clean: distclean infoclean
226 rm -f ${srcdir}/emacsver.texi
228 .PHONY: install-dvi install-html install-pdf install-ps install-doc
230 install-dvi: dvi
231 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
232 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
233 install-html: html
234 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
235 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
236 install-pdf: pdf
237 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
238 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
239 install-ps: ps
240 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
241 for file in $(PS_TARGETS); do \
242 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
243 [ -n "${GZIP_PROG}" ] || continue; \
244 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
245 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
246 done
248 ## Top-level Makefile installs the info pages.
249 install-doc: install-dvi install-html install-pdf install-ps
252 .PHONY: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
254 uninstall-dvi:
255 for file in $(DVI_TARGETS); do \
256 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
257 done
258 uninstall-html:
259 for file in $(HTML_TARGETS); do \
260 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
261 done
262 uninstall-ps:
263 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
264 for file in $(PS_TARGETS); do \
265 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
266 done
267 uninstall-pdf:
268 for file in $(PDF_TARGETS); do \
269 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
270 done
272 uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
275 ### Makefile ends here