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/>.
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
51 # Options used only when making info output.
55 INSTALL_DATA
= @INSTALL_DATA@
58 MAKEINFO_OPTS
= --force --enable-encoding
-I
$(emacsdir
) -I
$(srcdir)
63 ENVADD
= TEXINPUTS
="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
64 MAKEINFO
="$(MAKEINFO) $(MAKEINFO_OPTS)"
66 DVI_TARGETS
= elisp.
dvi
67 HTML_TARGETS
= elisp.html
68 PDF_TARGETS
= elisp.pdf
71 # List of all the texinfo files in the manual:
74 $(srcdir)/elisp.texi \
75 $(emacsdir
)/emacsver.texi \
76 $(srcdir)/abbrevs.texi \
78 $(srcdir)/backups.texi \
79 $(srcdir)/buffers.texi \
80 $(srcdir)/commands.texi \
81 $(srcdir)/compile.texi \
82 $(srcdir)/control.texi \
83 $(srcdir)/customize.texi \
84 $(srcdir)/debugging.texi \
85 $(srcdir)/display.texi \
86 $(srcdir)/edebug.texi \
87 $(srcdir)/errors.texi \
89 $(srcdir)/files.texi \
90 $(srcdir)/frames.texi \
91 $(srcdir)/functions.texi \
94 $(srcdir)/hooks.texi \
95 $(srcdir)/internals.texi \
96 $(srcdir)/intro.texi \
97 $(srcdir)/keymaps.texi \
98 $(srcdir)/lists.texi \
99 $(srcdir)/loading.texi \
100 $(srcdir)/macros.texi \
101 $(srcdir)/maps.texi \
102 $(srcdir)/markers.texi \
103 $(srcdir)/minibuf.texi \
104 $(srcdir)/modes.texi \
105 $(srcdir)/nonascii.texi \
106 $(srcdir)/numbers.texi \
107 $(srcdir)/objects.texi \
109 $(srcdir)/package.texi \
110 $(srcdir)/positions.texi \
111 $(srcdir)/processes.texi \
112 $(srcdir)/searching.texi \
113 $(srcdir)/sequences.texi \
114 $(srcdir)/streams.texi \
115 $(srcdir)/strings.texi \
116 $(srcdir)/symbols.texi \
117 $(srcdir)/syntax.texi \
118 $(srcdir)/text.texi \
119 $(srcdir)/tips.texi \
120 $(srcdir)/variables.texi \
121 $(srcdir)/windows.texi \
122 $(srcdir)/index.texi \
124 $(srcdir)/doclicense.texi
126 mkinfodir
= @
${MKDIR_P} ${buildinfodir}
128 .PHONY
: info dvi pdf ps
135 info: $(buildinfodir
)/elisp
$(INFO_EXT
)
137 html
: $(HTML_TARGETS
)
141 ## Note: "<" is not portable in ordinary make rules.
142 $(buildinfodir
)/elisp
$(INFO_EXT
): $(srcs
)
144 $(MAKEINFO
) $(MAKEINFO_OPTS
) $(INFO_OPTS
) -o
$@
$(srcdir)/elisp.texi
147 $(ENVADD
) $(TEXI2DVI
) $(srcdir)/elisp.texi
150 $(MAKEINFO
) $(MAKEINFO_OPTS
) $(HTML_OPTS
) -o
$@
$(srcdir)/elisp.texi
153 $(ENVADD
) $(TEXI2PDF
) $(srcdir)/elisp.texi
155 .PHONY
: mostlyclean clean distclean maintainer-clean infoclean
157 ## [12] stuff is from two-volume.make.
159 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
160 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
161 rm -f elisp
[12]* vol
[12].tmp
164 rm -f
$(DVI_TARGETS
) $(HTML_TARGETS
) $(PDF_TARGETS
) $(PS_TARGETS
)
165 rm -f vol
[12].
dvi vol
[12].pdf vol
[12].ps
171 -cd
$(buildinfodir
) && rm -f elisp
$(INFO_EXT
) elisp
$(INFO_EXT
)-[1-9] elisp
$(INFO_EXT
)-[1-9][0-9]
173 maintainer-clean
: distclean infoclean
175 .PHONY
: install-dvi install-html install-pdf install-ps install-doc
178 umask
022; $(MKDIR_P
) "$(DESTDIR)$(dvidir)"
179 $(INSTALL_DATA
) $(DVI_TARGETS
) "$(DESTDIR)$(dvidir)"
181 umask
022; $(MKDIR_P
) "$(DESTDIR)$(htmldir)"
182 $(INSTALL_DATA
) $(HTML_TARGETS
) "$(DESTDIR)$(htmldir)"
184 umask
022;$(MKDIR_P
) "$(DESTDIR)$(pdfdir)"
185 $(INSTALL_DATA
) $(PDF_TARGETS
) "$(DESTDIR)$(pdfdir)"
187 umask
022; $(MKDIR_P
) "$(DESTDIR)$(psdir)"
188 for file in
$(PS_TARGETS
); do \
189 $(INSTALL_DATA
) $${file} "$(DESTDIR)$(psdir)"; \
190 [ -n
"${GZIP_PROG}" ] || continue
; \
191 rm -f
"$(DESTDIR)$(psdir)/$${file}.gz"; \
192 ${GZIP_PROG} -9n
"$(DESTDIR)$(psdir)/$${file}"; \
195 ## Top-level Makefile installs the info pages.
196 install-doc
: install-dvi install-html install-pdf install-ps
199 .PHONY
: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
202 for file in
$(DVI_TARGETS
); do \
203 rm -f
"$(DESTDIR)$(dvidir)/$${file}"; \
206 for file in
$(HTML_TARGETS
); do \
207 rm -f
"$(DESTDIR)$(htmldir)/$${file}"; \
210 ext
= ; [ -n
"${GZIP_PROG}" ] && ext
=.gz
; \
211 for file in
$(PS_TARGETS
); do \
212 rm -f
"$(DESTDIR)$(psdir)/$${file}$${ext}"; \
215 for file in
$(PDF_TARGETS
); do \
216 rm -f
"$(DESTDIR)$(pdfdir)/$${file}"; \
219 uninstall-doc
: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
222 ### Makefile ends here