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