]> code.delx.au - gnu-emacs/blob - doc/lispintro/Makefile.in
Replace doc/*/Makefile.in dist rules with code in admin/admin.el
[gnu-emacs] / doc / lispintro / Makefile.in
1 ### @configure_input@
2
3 # Copyright (C) 1994-1999, 2001-2014 Free Software Foundation, Inc.
4
5 # This file is part of GNU Emacs.
6
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.
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
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
20 SHELL = @SHELL@
21
22 srcdir = @srcdir@
23
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
29
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@
39
40 MKDIR_P = @MKDIR_P@
41
42 GZIP_PROG = @GZIP_PROG@
43
44 HTML_OPTS = --no-split --html
45
46 INFO_EXT=@INFO_EXT@
47 # Options used only when making info output.
48 INFO_OPTS=@INFO_OPTS@
49
50 INSTALL = @INSTALL@
51 INSTALL_DATA = @INSTALL_DATA@
52
53 MAKEINFO = @MAKEINFO@
54 MAKEINFO_OPTS = --force -I $(emacsdir) -I $(srcdir)
55 TEXI2DVI = texi2dvi
56 TEXI2PDF = texi2pdf
57 DVIPS = dvips
58
59 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(emacsdir):$(TEXINPUTS)" \
60 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
61
62 DVI_TARGETS = emacs-lisp-intro.dvi
63 HTML_TARGETS = emacs-lisp-intro.html
64 PDF_TARGETS = emacs-lisp-intro.pdf
65 PS_TARGETS = emacs-lisp-intro.ps
66
67 mkinfodir = @${MKDIR_P} ${buildinfodir}
68
69 srcs = ${srcdir}/emacs-lisp-intro.texi ${srcdir}/doclicense.texi \
70 ${emacsdir}/emacsver.texi
71
72 .PHONY: info dvi html pdf ps
73
74 .SUFFIXES: .ps .dvi
75
76 .dvi.ps:
77 $(DVIPS) -o $@ $<
78
79 info: ${buildinfodir}/eintr$(INFO_EXT)
80
81 dvi: $(DVI_TARGETS)
82 html: $(HTML_TARGETS)
83 pdf: $(PDF_TARGETS)
84 ps: $(PS_TARGETS)
85
86 # The file name eintr must fit within 5 characters, to allow for
87 # -NN extensions to fit into DOS 8+3 limits without clashing.
88 # Note: "<" is not portable in ordinary make rules.
89 ${buildinfodir}/eintr$(INFO_EXT): ${srcs}
90 $(mkinfodir)
91 $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/emacs-lisp-intro.texi
92
93 emacs-lisp-intro.dvi: ${srcs}
94 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-lisp-intro.texi
95
96 emacs-lisp-intro.pdf: ${srcs}
97 $(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-lisp-intro.texi
98
99 emacs-lisp-intro.html: ${srcs}
100 $(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ ${srcdir}/emacs-lisp-intro.texi
101
102 .PHONY: mostlyclean clean distclean maintainer-clean infoclean
103
104 mostlyclean:
105 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
106 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
107
108 clean: mostlyclean
109 rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
110
111 distclean: clean
112 rm -f Makefile
113
114 infoclean:
115 -cd $(buildinfodir) && rm -f eintr$(INFO_EXT) eintr$(INFO_EXT)-[1-9]
116
117 maintainer-clean: distclean infoclean
118
119 .PHONY: install-dvi install-html install-pdf install-ps install-doc
120
121 install-dvi: dvi
122 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
123 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
124 install-html: html
125 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
126 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
127 install-pdf: pdf
128 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
129 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
130 install-ps: ps
131 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
132 for file in $(PS_TARGETS); do \
133 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
134 [ -n "${GZIP_PROG}" ] || continue; \
135 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
136 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
137 done
138
139 ## Top-level Makefile installs the info pages.
140 install-doc: install-dvi install-html install-pdf install-ps
141
142
143 .PHONY: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps uninstall-doc
144
145 uninstall-dvi:
146 for file in $(DVI_TARGETS); do \
147 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
148 done
149 uninstall-html:
150 for file in $(HTML_TARGETS); do \
151 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
152 done
153 uninstall-ps:
154 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
155 for file in $(PS_TARGETS); do \
156 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
157 done
158 uninstall-pdf:
159 for file in $(PDF_TARGETS); do \
160 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
161 done
162
163 uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
164
165
166 ### Makefile ends here