3 # Copyright (C) 1990-1996, 1998-2014 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/>.
22 # NB If you add any more configure variables,
23 # update the sed rules in the dist target below.
25 # Standard configure variables.
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
35 datarootdir
= @datarootdir@
37 PACKAGE_TARNAME
= @PACKAGE_TARNAME@
46 GZIP_PROG
= @GZIP_PROG@
48 HTML_OPTS
= --no-split
--html
50 # Options used only when making info output.
54 INSTALL_DATA
= @INSTALL_DATA@
57 MAKEINFO_OPTS
= --force --enable-encoding
-I
$(emacsdir
) -I
$(srcdir)
62 ENVADD
= TEXINPUTS
="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
63 MAKEINFO
="$(MAKEINFO) $(MAKEINFO_OPTS)"
65 DVI_TARGETS
= elisp.
dvi
66 HTML_TARGETS
= elisp.html
67 PDF_TARGETS
= elisp.pdf
70 # List of all the texinfo files in the manual:
73 $(srcdir)/elisp.texi \
74 $(emacsdir
)/emacsver.texi \
75 $(srcdir)/abbrevs.texi \
77 $(srcdir)/backups.texi \
78 $(srcdir)/buffers.texi \
79 $(srcdir)/commands.texi \
80 $(srcdir)/compile.texi \
81 $(srcdir)/control.texi \
82 $(srcdir)/customize.texi \
83 $(srcdir)/debugging.texi \
84 $(srcdir)/display.texi \
85 $(srcdir)/edebug.texi \
86 $(srcdir)/errors.texi \
88 $(srcdir)/files.texi \
89 $(srcdir)/frames.texi \
90 $(srcdir)/functions.texi \
93 $(srcdir)/hooks.texi \
94 $(srcdir)/internals.texi \
95 $(srcdir)/intro.texi \
96 $(srcdir)/keymaps.texi \
97 $(srcdir)/lists.texi \
98 $(srcdir)/loading.texi \
99 $(srcdir)/macros.texi \
100 $(srcdir)/maps.texi \
101 $(srcdir)/markers.texi \
102 $(srcdir)/minibuf.texi \
103 $(srcdir)/modes.texi \
104 $(srcdir)/nonascii.texi \
105 $(srcdir)/numbers.texi \
106 $(srcdir)/objects.texi \
108 $(srcdir)/package.texi \
109 $(srcdir)/positions.texi \
110 $(srcdir)/processes.texi \
111 $(srcdir)/searching.texi \
112 $(srcdir)/sequences.texi \
113 $(srcdir)/streams.texi \
114 $(srcdir)/strings.texi \
115 $(srcdir)/symbols.texi \
116 $(srcdir)/syntax.texi \
117 $(srcdir)/text.texi \
118 $(srcdir)/tips.texi \
119 $(srcdir)/variables.texi \
120 $(srcdir)/windows.texi \
121 $(srcdir)/index.texi \
123 $(srcdir)/doclicense.texi
125 ## Disable implicit rules.
128 .PHONY
: info dvi html pdf ps
130 info: $(buildinfodir
)/elisp.
info
132 html
: $(HTML_TARGETS
)
139 $(buildinfodir
)/elisp.
info: $(srcs
) |
${buildinfodir}
140 $(MAKEINFO
) $(MAKEINFO_OPTS
) $(INFO_OPTS
) -o
$@
$<
143 $(ENVADD
) $(TEXI2DVI
) $<
146 $(MAKEINFO
) $(MAKEINFO_OPTS
) $(HTML_OPTS
) -o
$@
$<
149 $(ENVADD
) $(TEXI2PDF
) $<
154 .PHONY
: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean
156 ## [12] stuff is from two-volume.make.
158 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
159 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
160 rm -f elisp
[12]* vol
[12].tmp
163 rm -f
$(DVI_TARGETS
) $(HTML_TARGETS
) $(PDF_TARGETS
) $(PS_TARGETS
)
164 rm -f vol
[12].
dvi vol
[12].pdf vol
[12].ps
171 $(buildinfodir
)/elisp.
info \
172 $(buildinfodir
)/elisp.info-
[1-9] \
173 $(buildinfodir
)/elisp.info-
[1-9][0-9]
175 bootstrap-clean maintainer-clean
: distclean infoclean
177 .PHONY
: install-dvi install-html install-pdf install-ps install-doc
180 umask
022; $(MKDIR_P
) "$(DESTDIR)$(dvidir)"
181 $(INSTALL_DATA
) $(DVI_TARGETS
) "$(DESTDIR)$(dvidir)"
183 umask
022; $(MKDIR_P
) "$(DESTDIR)$(htmldir)"
184 $(INSTALL_DATA
) $(HTML_TARGETS
) "$(DESTDIR)$(htmldir)"
186 umask
022;$(MKDIR_P
) "$(DESTDIR)$(pdfdir)"
187 $(INSTALL_DATA
) $(PDF_TARGETS
) "$(DESTDIR)$(pdfdir)"
189 umask
022; $(MKDIR_P
) "$(DESTDIR)$(psdir)"
190 for file in
$(PS_TARGETS
); do \
191 $(INSTALL_DATA
) $${file} "$(DESTDIR)$(psdir)"; \
192 [ -n
"${GZIP_PROG}" ] || continue
; \
193 rm -f
"$(DESTDIR)$(psdir)/$${file}.gz"; \
194 ${GZIP_PROG} -9n
"$(DESTDIR)$(psdir)/$${file}"; \
197 ## Top-level Makefile installs the info pages.
198 install-doc
: install-dvi install-html install-pdf install-ps
201 .PHONY
: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
204 for file in
$(DVI_TARGETS
); do \
205 rm -f
"$(DESTDIR)$(dvidir)/$${file}"; \
208 for file in
$(HTML_TARGETS
); do \
209 rm -f
"$(DESTDIR)$(htmldir)/$${file}"; \
212 ext
= ; [ -n
"${GZIP_PROG}" ] && ext
=.gz
; \
213 for file in
$(PS_TARGETS
); do \
214 rm -f
"$(DESTDIR)$(psdir)/$${file}$${ext}"; \
217 for file in
$(PDF_TARGETS
); do \
218 rm -f
"$(DESTDIR)$(pdfdir)/$${file}"; \
221 uninstall-doc
: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
224 ### Makefile ends here