Update copyright year to 2014 by running admin/update-copyright.
[emacs.git] / doc / lispintro / Makefile.in
blobc041cd17e029fa76e86f106daf43cf6388ae933b
1 ### @configure_input@
3 # Copyright (C) 1994-1999, 2001-2014 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 = @SHELL@
22 # NB If you add any more configure variables,
23 # update the sed rules in the dist target below.
24 srcdir = @srcdir@
25 version=@version@
27 buildinfodir = $(srcdir)/../../info
28 # Directory with the (customized) texinfo.tex file.
29 texinfodir = $(srcdir)/../misc
30 # Directory with emacsver.texi.
31 emacsdir = $(srcdir)/../emacs
33 prefix = @prefix@
34 datarootdir = @datarootdir@
35 datadir = @datadir@
36 PACKAGE_TARNAME = @PACKAGE_TARNAME@
37 docdir = @docdir@
38 dvidir = @dvidir@
39 htmldir = @htmldir@
40 pdfdir = @pdfdir@
41 psdir = @psdir@
43 MKDIR_P = @MKDIR_P@
45 GZIP_PROG = @GZIP_PROG@
47 HTML_OPTS = --no-split --html
49 INFO_EXT=@INFO_EXT@
50 # Options used only when making info output.
51 INFO_OPTS=@INFO_OPTS@
53 INSTALL = @INSTALL@
54 INSTALL_DATA = @INSTALL_DATA@
56 MAKEINFO = @MAKEINFO@
57 MAKEINFO_OPTS = --force -I $(emacsdir) -I $(srcdir)
58 TEXI2DVI = texi2dvi
59 TEXI2PDF = texi2pdf
60 DVIPS = dvips
62 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
63 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
65 DVI_TARGETS = emacs-lisp-intro.dvi
66 HTML_TARGETS = emacs-lisp-intro.html
67 PDF_TARGETS = emacs-lisp-intro.pdf
68 PS_TARGETS = emacs-lisp-intro.ps
70 mkinfodir = @${MKDIR_P} ${buildinfodir}
72 srcs = ${srcdir}/emacs-lisp-intro.texi ${srcdir}/doclicense.texi \
73 ${emacsdir}/emacsver.texi
75 .PHONY: info dvi html pdf ps
77 .SUFFIXES: .ps .dvi
79 .dvi.ps:
80 $(DVIPS) -o $@ $<
82 info: ${buildinfodir}/eintr$(INFO_EXT)
84 dvi: $(DVI_TARGETS)
85 html: $(HTML_TARGETS)
86 pdf: $(PDF_TARGETS)
87 ps: $(PS_TARGETS)
89 # The file name eintr must fit within 5 characters, to allow for
90 # -NN extensions to fit into DOS 8+3 limits without clashing.
91 # Note: "<" is not portable in ordinary make rules.
92 ${buildinfodir}/eintr$(INFO_EXT): ${srcs}
93 $(mkinfodir)
94 $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/emacs-lisp-intro.texi
96 emacs-lisp-intro.dvi: ${srcs}
97 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-lisp-intro.texi
99 emacs-lisp-intro.pdf: ${srcs}
100 $(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-lisp-intro.texi
102 emacs-lisp-intro.html: ${srcs}
103 $(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ ${srcdir}/emacs-lisp-intro.texi
105 .PHONY: mostlyclean clean distclean maintainer-clean infoclean
107 mostlyclean:
108 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
109 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
111 clean: mostlyclean
112 rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
113 rm -f emacs-lispintro-${version}.tar*
115 distclean: clean
116 rm -f Makefile
118 infoclean:
119 -cd $(buildinfodir) && rm -f eintr$(INFO_EXT) eintr$(INFO_EXT)-[1-9]
121 maintainer-clean: distclean infoclean
123 .PHONY: dist
125 dist:
126 rm -rf emacs-lispintro-${version}
127 mkdir emacs-lispintro-${version}
128 cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \
129 ${texinfodir}/texinfo.tex ${emacsdir}/emacsver.texi \
130 ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispintro-${version}/
131 sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \
132 -e 's/^\(emacsdir *=\).*/\1 ./' \
133 -e 's/^\(buildinfodir *=\).*/\1 ./' \
134 -e 's/^\(clean:.*\)/\1 infoclean/' \
135 -e "s/@ver[s]ion@/${version}/" \
136 -e 's/@MAKE[I]NFO@/makeinfo/' -e 's/@MK[D]IR_P@/mkdir -p/' \
137 -e 's/@IN[F]O_EXT@/.info/' -e 's/@IN[F]O_OPTS@//' \
138 ${srcdir}/Makefile.in > emacs-lispintro-${version}/Makefile
139 @if grep '@[a-zA-Z_]*@' emacs-lispintro-${version}/Makefile; then \
140 echo "Unexpanded configure variables in Makefile?" 1>&2; exit 1; \
142 tar -cf emacs-lispintro-${version}.tar emacs-lispintro-${version}
143 rm -rf emacs-lispintro-${version}
146 .PHONY: install-dvi install-html install-pdf install-ps install-doc
148 install-dvi: dvi
149 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
150 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
151 install-html: html
152 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
153 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
154 install-pdf: pdf
155 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
156 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
157 install-ps: ps
158 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
159 for file in $(PS_TARGETS); do \
160 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
161 [ -n "${GZIP_PROG}" ] || continue; \
162 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
163 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
164 done
166 ## Top-level Makefile installs the info pages.
167 install-doc: install-dvi install-html install-pdf install-ps
170 .PHONY: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
172 uninstall-dvi:
173 for file in $(DVI_TARGETS); do \
174 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
175 done
176 uninstall-html:
177 for file in $(HTML_TARGETS); do \
178 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
179 done
180 uninstall-ps:
181 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
182 for file in $(PS_TARGETS); do \
183 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
184 done
185 uninstall-pdf:
186 for file in $(PDF_TARGETS); do \
187 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
188 done
190 uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
193 ### Makefile ends here