3 # Copyright (C) 1990-1996, 1998-2016 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 docstyle.tex and 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)
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 " $@
;
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
79 # List of all the texinfo files in the manual:
82 $(srcdir)/elisp.texi \
83 $(emacsdir
)/docstyle.texi \
84 $(emacsdir
)/emacsver.texi \
85 $(srcdir)/abbrevs.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 \
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 \
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)/tips.texi \
129 $(srcdir)/variables.texi \
130 $(srcdir)/windows.texi \
131 $(srcdir)/index.texi \
133 $(srcdir)/doclicense.texi
135 ## Disable implicit rules.
138 .PHONY
: info dvi html pdf ps
140 info: $(buildinfodir
)/elisp.
info
142 html
: $(HTML_TARGETS
)
149 $(buildinfodir
)/elisp.
info: $(srcs
) |
${buildinfodir}
150 $(AM_V_GEN
)$(MAKEINFO
) $(MAKEINFO_OPTS
) $(INFO_OPTS
) -o
$@
$<
153 $(ENVADD
) $(TEXI2DVI
) $<
156 $(AM_V_GEN
)$(MAKEINFO
) $(MAKEINFO_OPTS
) $(HTML_OPTS
) -o
$@
$<
159 $(ENVADD
) $(TEXI2PDF
) $<
164 .PHONY
: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean
166 ## [12] stuff is from two-volume.make.
168 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
169 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
170 rm -f elisp
[12]* vol
[12].tmp
173 rm -f
$(DVI_TARGETS
) $(HTML_TARGETS
) $(PDF_TARGETS
) $(PS_TARGETS
)
174 rm -f vol
[12].
dvi vol
[12].pdf vol
[12].ps
181 $(buildinfodir
)/elisp.
info \
182 $(buildinfodir
)/elisp.info-
[1-9] \
183 $(buildinfodir
)/elisp.info-
[1-9][0-9]
185 bootstrap-clean maintainer-clean
: distclean infoclean
187 .PHONY
: install-dvi install-html install-pdf install-ps install-doc
190 umask
022; $(MKDIR_P
) "$(DESTDIR)$(dvidir)"
191 $(INSTALL_DATA
) $(DVI_TARGETS
) "$(DESTDIR)$(dvidir)"
193 umask
022; $(MKDIR_P
) "$(DESTDIR)$(htmldir)"
194 $(INSTALL_DATA
) $(HTML_TARGETS
) "$(DESTDIR)$(htmldir)"
196 umask
022;$(MKDIR_P
) "$(DESTDIR)$(pdfdir)"
197 $(INSTALL_DATA
) $(PDF_TARGETS
) "$(DESTDIR)$(pdfdir)"
199 umask
022; $(MKDIR_P
) "$(DESTDIR)$(psdir)"
200 for file in
$(PS_TARGETS
); do \
201 $(INSTALL_DATA
) $${file} "$(DESTDIR)$(psdir)"; \
202 [ -n
"${GZIP_PROG}" ] || continue
; \
203 rm -f
"$(DESTDIR)$(psdir)/$${file}.gz"; \
204 ${GZIP_PROG} -9n
"$(DESTDIR)$(psdir)/$${file}"; \
207 ## Top-level Makefile installs the info pages.
208 install-doc
: install-dvi install-html install-pdf install-ps
211 .PHONY
: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
214 for file in
$(DVI_TARGETS
); do \
215 rm -f
"$(DESTDIR)$(dvidir)/$${file}"; \
218 for file in
$(HTML_TARGETS
); do \
219 rm -f
"$(DESTDIR)$(htmldir)/$${file}"; \
222 ext
= ; [ -n
"${GZIP_PROG}" ] && ext
=.gz
; \
223 for file in
$(PS_TARGETS
); do \
224 rm -f
"$(DESTDIR)$(psdir)/$${file}$${ext}"; \
227 for file in
$(PDF_TARGETS
); do \
228 rm -f
"$(DESTDIR)$(pdfdir)/$${file}"; \
231 uninstall-doc
: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
234 ### Makefile ends here