Update copyright year to 2015
[emacs.git] / doc / lispintro / Makefile.in
blobba63ee80197636ad0a9547b4f5a68865f6a4e01c
1 ### @configure_input@
3 # Copyright (C) 1994-1999, 2001-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/>.
20 SHELL = @SHELL@
22 srcdir = @srcdir@
24 buildinfodir = $(srcdir)/../../info
25 # Directory with the (customized) texinfo.tex file.
26 texinfodir = $(srcdir)/../misc
27 # Directory with emacsver.texi.
28 emacsdir = $(srcdir)/../emacs
30 prefix = @prefix@
31 datarootdir = @datarootdir@
32 datadir = @datadir@
33 PACKAGE_TARNAME = @PACKAGE_TARNAME@
34 docdir = @docdir@
35 dvidir = @dvidir@
36 htmldir = @htmldir@
37 pdfdir = @pdfdir@
38 psdir = @psdir@
40 MKDIR_P = @MKDIR_P@
42 GZIP_PROG = @GZIP_PROG@
44 HTML_OPTS = --no-split --html
46 # Options used only when making info output.
47 INFO_OPTS= --no-split
49 INSTALL = @INSTALL@
50 INSTALL_DATA = @INSTALL_DATA@
52 MAKEINFO = @MAKEINFO@
53 MAKEINFO_OPTS = --force -I $(emacsdir) -I $(srcdir)
54 TEXI2DVI = texi2dvi
55 TEXI2PDF = texi2pdf
56 DVIPS = dvips
58 # 'make' verbosity.
59 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
61 AM_V_GEN = $(am__v_GEN_@AM_V@)
62 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
63 am__v_GEN_0 = @echo " GEN " $@;
64 am__v_GEN_1 =
66 ENVADD = \
67 $(AM_V_GEN)TEXINPUTS="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
68 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
70 DVI_TARGETS = emacs-lisp-intro.dvi
71 HTML_TARGETS = emacs-lisp-intro.html
72 PDF_TARGETS = emacs-lisp-intro.pdf
73 PS_TARGETS = emacs-lisp-intro.ps
75 srcs = ${srcdir}/emacs-lisp-intro.texi ${srcdir}/doclicense.texi \
76 ${emacsdir}/emacsver.texi
78 ## Disable implicit rules.
79 %.texi: ;
81 .PHONY: info dvi html pdf ps
83 info: ${buildinfodir}/eintr.info
84 dvi: $(DVI_TARGETS)
85 html: $(HTML_TARGETS)
86 pdf: $(PDF_TARGETS)
87 ps: $(PS_TARGETS)
89 ${buildinfodir}:
90 ${MKDIR_P} $@
92 # The file name eintr must fit within 5 characters, to allow for
93 # -NN extensions to fit into DOS 8+3 limits without clashing.
94 ${buildinfodir}/eintr.info: ${srcs} | ${buildinfodir}
95 $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $<
97 emacs-lisp-intro.dvi: ${srcs}
98 $(ENVADD) $(TEXI2DVI) $<
100 emacs-lisp-intro.pdf: ${srcs}
101 $(ENVADD) $(TEXI2PDF) $<
103 emacs-lisp-intro.html: ${srcs}
104 $(AM_V_GEN)$(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ $<
106 emacs-lisp-intro.ps: emacs-lisp-intro.dvi
107 $(DVIPS) -o $@ $<
109 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean infoclean
111 mostlyclean:
112 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
113 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
115 clean: mostlyclean
116 rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
118 distclean: clean
119 rm -f Makefile
121 infoclean:
122 rm -f \
123 $(buildinfodir)/eintr.info \
124 $(buildinfodir)/eintr.info-[1-9]
126 bootstrap-clean maintainer-clean: distclean infoclean
128 .PHONY: install-dvi install-html install-pdf install-ps install-doc
130 install-dvi: dvi
131 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
132 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
133 install-html: html
134 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
135 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
136 install-pdf: pdf
137 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
138 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
139 install-ps: ps
140 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
141 for file in $(PS_TARGETS); do \
142 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
143 [ -n "${GZIP_PROG}" ] || continue; \
144 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
145 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
146 done
148 ## Top-level Makefile installs the info pages.
149 install-doc: install-dvi install-html install-pdf install-ps
152 .PHONY: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
154 uninstall-dvi:
155 for file in $(DVI_TARGETS); do \
156 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
157 done
158 uninstall-html:
159 for file in $(HTML_TARGETS); do \
160 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
161 done
162 uninstall-ps:
163 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
164 for file in $(PS_TARGETS); do \
165 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
166 done
167 uninstall-pdf:
168 for file in $(PDF_TARGETS); do \
169 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
170 done
172 uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
175 ### Makefile ends here