1 #### -*- Makefile -*- for the Emacs Lisp Introduction manual.
3 # Copyright (C) 2003-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/>.
23 infodir = $(srcdir)/../../info
24 # Directory with the (customized) texinfo.tex file.
25 texinfodir = $(srcdir)/../misc
26 # Directory with emacsver.texi.
27 emacsdir = $(srcdir)/../emacs
30 INFO_OPTS=--no-split -I$(emacsdir)
31 INFO_SOURCES = $(srcdir)/emacs-lisp-intro.texi $(emacsdir)/emacsver.texi \
32 $(srcdir)/doclicense.texi
33 # The file name eintr must fit within 5 characters, to allow for
34 # -NN extensions to fit into DOS 8+3 limits without clashing
35 INFO_TARGETS = $(infodir)/eintr$(INFO_EXT)
36 DVI_TARGETS = emacs-lisp-intro.dvi
39 INSTALL_INFO = install-info
43 ENVADD = $(srcdir)\..\..\nt\envadd.bat \
44 "TEXINPUTS=$(srcdir);$(texinfodir);$(emacsdir);$(TEXINPUTS)" \
45 "MAKEINFO=$(MAKEINFO) -I$(srcdir) -I$(emacsdir) -I$(texinfodir)" /C
47 .SUFFIXES: .dvi .ps .texi
52 $(INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
56 $(infodir)/eintr$(INFO_EXT): $(INFO_SOURCES)
57 $(MAKEINFO) $(INFO_OPTS) -o $@ $(srcdir)/emacs-lisp-intro.texi
59 emacs-lisp-intro.dvi: $(INFO_SOURCES)
60 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-lisp-intro.texi
62 emacs-lisp-intro.pdf: $(INFO_SOURCES)
63 $(ENVADD) $(TEXI2PDF) $(srcdir)/emacs-lisp-intro.texi
65 emacs-lisp-intro.html: $(INFO_SOURCES)
66 $(MAKEINFO) --html -o $@ $(srcdir)/emacs-lisp-intro.texi
72 - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr *.tp
75 - $(DEL) *.dvi $(infodir)/eintr$(INFO_EXT)*
80 maintainer-clean: distclean
81 - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
83 # Tell versions [3.59,3.63) of GNU make to not export all variables.
84 # Otherwise a system limit (for SysV at least) may be exceeded.