Give info files the .info extension
[bpt/emacs.git] / doc / lispintro / makefile.w32-in
CommitLineData
8cda6f8f
GM
1#### -*- Makefile -*- for the Emacs Lisp Introduction manual.
2
8045b906 3# Copyright (C) 2003-2012 Free Software Foundation, Inc.
8cda6f8f
GM
4
5# This file is part of GNU Emacs.
6
8ae3715e 7# GNU Emacs is free software: you can redistribute it and/or modify
8cda6f8f 8# it under the terms of the GNU General Public License as published by
8ae3715e
GM
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
8cda6f8f
GM
11
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.
16
17# You should have received a copy of the GNU General Public License
8ae3715e
GM
18# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
8cda6f8f
GM
20
21srcdir = .
22
5371a305 23infodir = $(srcdir)/../../info
ce109c95
GM
24# Directory with the (customized) texinfo.tex file.
25texinfodir = $(srcdir)/../misc
8cda6f8f 26
8045b906
GM
27INFO_EXT=.info
28INFO_OPTS=--no-split
f8107b79 29INFO_SOURCES = $(srcdir)/emacs-lisp-intro.texi $(srcdir)/doclicense.texi
8cda6f8f
GM
30# The file name eintr must fit within 5 characters, to allow for
31# -NN extensions to fit into DOS 8+3 limits without clashing
8045b906 32INFO_TARGETS = $(infodir)/eintr$(INFO_EXT)
8cda6f8f
GM
33DVI_TARGETS = emacs-lisp-intro.dvi
34
35MAKEINFO = makeinfo
36INSTALL_INFO = install-info
37TEXI2DVI = texi2dvi
ce109c95 38TEXI2PDF = texi2pdf
8cda6f8f 39DVIPS = dvips
5371a305 40ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
ce109c95 41 "MAKEINFO=$(MAKEINFO) -I$(srcdir) -I$(texinfodir)" /C
8cda6f8f
GM
42
43.SUFFIXES: .dvi .ps .texi
44
9c92f9c9 45info: $(INFO_TARGETS)
8cda6f8f 46
9c92f9c9 47$(infodir)/dir:
8cda6f8f
GM
48 $(INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
49
50dvi: $(DVI_TARGETS)
51
8045b906
GM
52$(infodir)/eintr$(INFO_EXT): $(INFO_SOURCES)
53 $(MAKEINFO) $(INFO_OPTS) -o $@ $(srcdir)/emacs-lisp-intro.texi
8cda6f8f
GM
54
55emacs-lisp-intro.dvi: $(INFO_SOURCES)
56 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-lisp-intro.texi
57
03dcfe01 58emacs-lisp-intro.pdf: $(INFO_SOURCES)
ce109c95
GM
59 $(ENVADD) $(TEXI2PDF) $(srcdir)/emacs-lisp-intro.texi
60
8cda6f8f
GM
61emacs-lisp-intro.html: $(INFO_SOURCES)
62 $(MAKEINFO) --html -o $@ $(srcdir)/emacs-lisp-intro.texi
63
64.dvi.ps:
65 $(DVIPS) $< -o $@
66
67mostlyclean:
68 - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr *.tp
69
70clean: mostlyclean
8045b906 71 - $(DEL) *.dvi $(infodir)/eintr$(INFO_EXT)*
8cda6f8f
GM
72
73distclean: clean
9b4fb9b7 74 - $(DEL) makefile
8cda6f8f
GM
75
76maintainer-clean: distclean
77 - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
78
79# Tell versions [3.59,3.63) of GNU make to not export all variables.
80# Otherwise a system limit (for SysV at least) may be exceeded.
81.NOEXPORT: