No specific user configuration
[platform/upstream/bash.git] / lib / readline / doc / Makefile
1 # Derived by hand from the generated readline-src/doc/Makefile
2 # This makefile for Readline library documentation is in -*- text -*- mode.
3 # Emacs likes it that way.
4
5 #   Copyright (C) 1996-2002 Free Software Foundation, Inc.
6 #
7 #   This program 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 #   This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
19 #
20
21
22 topdir = .
23 srcdir = .
24 VPATH = .
25
26 prefix = /usr/local
27 infodir = ${prefix}/info
28
29 mandir = ${prefix}/man
30 manpfx = man
31
32 man1ext = 1
33 man1dir = $(mandir)/$(manpfx)$(man1ext)
34 man3ext = 3
35 man3dir = $(mandir)/$(manpfx)$(man3ext)
36
37 SHELL = /bin/sh
38 RM = rm -f
39
40 INSTALL = /usr/bin/install -c
41 INSTALL_DATA = ${INSTALL} -m 644
42
43 BUILD_DIR = .
44 TEXINPUTDIR = $(srcdir)
45
46 MAKEINFO    = LANGUAGE= makeinfo
47 TEXI2DVI    = $(srcdir)/texi2dvi
48 TEXI2HTML   = $(srcdir)/texi2html
49 QUIETPS     = #set this to -q to shut up dvips
50 PSDPI       = 300       # I don't have any 600-dpi printers
51 DVIPS       = dvips -D ${PSDPI} $(QUIETPS) -o $@     # tricky
52
53 RLSRC = $(srcdir)/rlman.texi $(srcdir)/rluser.texi \
54         $(srcdir)/rltech.texi $(srcdir)/version.texi \
55         $(srcdir)/rluserman.texi
56 HISTSRC = $(srcdir)/history.texi $(srcdir)/hsuser.texi \
57           $(srcdir)/hstech.texi $(srcdir)/version.texi
58
59 # This should be a program that converts troff to an ascii-readable format
60 NROFF       = groff -Tascii
61
62 # This should be a program that converts troff to postscript
63 GROFF       = groff
64
65 DVIOBJ = readline.dvi history.dvi rluserman.dvi
66 INFOOBJ = readline.info history.info rluserman.info
67 PSOBJ = readline.ps history.ps rluserman.ps
68 HTMLOBJ = readline.html history.html rluserman.html
69
70 INTERMEDIATE_OBJ = rlman.dvi
71
72 CREATED_DOCS = $(DVIOBJ) $(INFOOBJ) $(PSOBJ) $(HTMLOBJ)
73
74 .SUFFIXES:      .ps .txt .dvi
75
76 all: info dvi html ps 
77 nodvi: info html
78
79 readline.dvi: $(RLSRC)
80         TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rlman.texi
81         mv rlman.dvi readline.dvi
82
83 readline.info: $(RLSRC)
84         $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rlman.texi
85
86 rluserman.dvi: $(RLSRC)
87         TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rluserman.texi
88
89 rluserman.info: $(RLSRC)
90         $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rluserman.texi
91
92 history.dvi: ${HISTSRC}
93         TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/history.texi
94
95 history.info: ${HISTSRC}
96         $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/history.texi
97
98 readline.ps:    readline.dvi
99         $(RM) $@
100         $(DVIPS) readline.dvi
101
102 rluserman.ps:   rluserman.dvi
103         $(RM) $@
104         $(DVIPS) rluserman.dvi
105
106 history.ps:     history.dvi
107         $(RM) $@
108         $(DVIPS) history.dvi
109
110 readline.html:  ${RLSRC}
111         $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texi
112         sed -e 's:rlman.html:readline.html:' rlman.html > readline.html
113         $(RM) rlman.html
114
115 rluserman.html: ${RLSRC}
116         $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rluserman.texi
117
118 history.html:   ${HISTSRC}
119         $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/history.texi
120
121 info:   $(INFOOBJ)
122 dvi:    $(DVIOBJ)
123 ps:     $(PSOBJ)
124 html:   $(HTMLOBJ)
125
126 clean:
127         $(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \
128               *.fns *.kys *.tps *.vrs *.o core
129
130 distclean: clean
131         $(RM) $(CREATED_DOCS)
132         $(RM) $(INTERMEDIATE_OBJ)
133         $(RM) Makefile
134
135 mostlyclean: clean
136
137 maintainer-clean: clean
138         $(RM) $(CREATED_DOCS)
139         $(RM) $(INTERMEDIATE_OBJ)
140         $(RM) Makefile
141
142 install:
143         @echo "This documentation should not be installed."
144
145 uninstall: