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/>.
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)/threads.texi \
129 $(srcdir)/tips.texi \
130 $(srcdir)/variables.texi \
131 $(srcdir)/windows.texi \
132 $(srcdir)/index.texi \
134 $(srcdir)/doclicense.texi
136 ## Disable implicit rules.
139 .PHONY
: info dvi html pdf ps
141 info: $(buildinfodir
)/elisp.
info
143 html
: $(HTML_TARGETS
)
150 $(buildinfodir
)/elisp.
info: $(srcs
) |
${buildinfodir}
151 $(AM_V_GEN
)$(MAKEINFO
) $(MAKEINFO_OPTS
) $(INFO_OPTS
) -o
$@
$<
154 $(ENVADD
) $(TEXI2DVI
) $<
157 $(AM_V_GEN
)$(MAKEINFO
) $(MAKEINFO_OPTS
) $(HTML_OPTS
) -o
$@
$<
160 $(ENVADD
) $(TEXI2PDF
) $<
165 .PHONY
: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean
167 ## [12] stuff is from two-volume.make.
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
174 rm -f
$(DVI_TARGETS
) $(HTML_TARGETS
) $(PDF_TARGETS
) $(PS_TARGETS
)
175 rm -f vol
[12].
dvi vol
[12].pdf vol
[12].ps
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
191 umask
022; $(MKDIR_P
) "$(DESTDIR)$(dvidir)"
192 $(INSTALL_DATA
) $(DVI_TARGETS
) "$(DESTDIR)$(dvidir)"
194 umask
022; $(MKDIR_P
) "$(DESTDIR)$(htmldir)"
195 $(INSTALL_DATA
) $(HTML_TARGETS
) "$(DESTDIR)$(htmldir)"
197 umask
022;$(MKDIR_P
) "$(DESTDIR)$(pdfdir)"
198 $(INSTALL_DATA
) $(PDF_TARGETS
) "$(DESTDIR)$(pdfdir)"
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}"; \
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
215 for file in
$(DVI_TARGETS
); do \
216 rm -f
"$(DESTDIR)$(dvidir)/$${file}"; \
219 for file in
$(HTML_TARGETS
); do \
220 rm -f
"$(DESTDIR)$(htmldir)/$${file}"; \
223 ext
= ; [ -n
"${GZIP_PROG}" ] && ext
=.gz
; \
224 for file in
$(PS_TARGETS
); do \
225 rm -f
"$(DESTDIR)$(psdir)/$${file}$${ext}"; \
228 for file in
$(PDF_TARGETS
); do \
229 rm -f
"$(DESTDIR)$(pdfdir)/$${file}"; \
232 uninstall-doc
: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
235 ### Makefile ends here