* lisp/doc-view.el (doc-view-scale-internally): New var.
[emacs.git] / doc / lispintro / Makefile.in
bloba6b50b88ad904ebf99d60f0ed0c22b4a121f3b5b
1 #### Makefile for the Emacs Lisp Introduction manual
3 # Copyright (C) 1994-1999, 2001-2013 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/>.
20 SHELL = /bin/sh
22 srcdir = @srcdir@
23 version=@version@
25 buildinfodir = $(srcdir)/../../info
26 # Directory with the (customized) texinfo.tex file.
27 texinfodir = $(srcdir)/../misc
29 MKDIR_P = @MKDIR_P@
31 INFO_EXT=@INFO_EXT@
32 # Options used only when making info output.
33 INFO_OPTS=@INFO_OPTS@
35 MAKEINFO = @MAKEINFO@
36 MAKEINFO_OPTS = --force -I $(srcdir)
37 TEXI2DVI = texi2dvi
38 TEXI2PDF = texi2pdf
39 DVIPS = dvips
41 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
42 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
44 mkinfodir = @${MKDIR_P} ${buildinfodir}
46 srcs = ${srcdir}/emacs-lisp-intro.texi ${srcdir}/doclicense.texi
48 .PHONY: info dvi html pdf ps
50 info: ${buildinfodir}/eintr$(INFO_EXT)
52 dvi: emacs-lisp-intro.dvi
53 html: emacs-lisp-intro.html
54 pdf: emacs-lisp-intro.pdf
55 ps: emacs-lisp-intro.ps
57 # The file name eintr must fit within 5 characters, to allow for
58 # -NN extensions to fit into DOS 8+3 limits without clashing.
59 # Note: "<" is not portable in ordinary make rules.
60 ${buildinfodir}/eintr$(INFO_EXT): ${srcs}
61 $(mkinfodir)
62 $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/emacs-lisp-intro.texi
64 emacs-lisp-intro.dvi: ${srcs}
65 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-lisp-intro.texi
67 emacs-lisp-intro.ps: emacs-lisp-intro.dvi
68 $(DVIPS) -o $@ emacs-lisp-intro.dvi
70 emacs-lisp-intro.pdf: ${srcs}
71 $(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-lisp-intro.texi
73 emacs-lisp-intro.html: ${srcs}
74 $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ ${srcdir}/emacs-lisp-intro.texi
76 .PHONY: mostlyclean clean distclean maintainer-clean infoclean
78 mostlyclean:
79 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
80 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
82 clean: mostlyclean
83 rm -f emacs-lisp-intro.dvi emacs-lisp-intro.pdf emacs-lisp-intro.ps
84 rm -rf emacs-lisp-intro.html/
85 rm -f emacs-lispintro-${version}.tar*
87 distclean: clean
89 infoclean:
90 -cd $(buildinfodir) && rm -f eintr$(INFO_EXT) eintr$(INFO_EXT)-[1-9]
92 maintainer-clean: distclean infoclean
94 .PHONY: dist
96 dist:
97 rm -rf emacs-lispintro-${version}
98 mkdir emacs-lispintro-${version}
99 cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \
100 ${texinfodir}/texinfo.tex \
101 ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispintro-${version}/
102 sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \
103 -e 's/^\(buildinfodir *=\).*/\1 ./' \
104 -e 's/^\(clean:.*\)/\1 infoclean/' \
105 -e "s/@ver[s]ion@/${version}/" \
106 ${srcdir}/Makefile.in > emacs-lispintro-${version}/Makefile
107 tar -cf emacs-lispintro-${version}.tar emacs-lispintro-${version}
108 rm -rf emacs-lispintro-${version}
110 ### Makefile ends here