Deleted Added
sdiff udiff text old ( 47558 ) new ( 58310 )
full compact
1# This makefile for Readline library documentation is in -*- text -*- mode.
2# Emacs likes it that way.
3
4# Copyright (C) 1996 Free Software Foundation, Inc.
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
19
20topdir = @top_srcdir@
21srcdir = @srcdir@
22VPATH = .:@srcdir@
23
24prefix = @prefix@
25infodir = @infodir@
26
27mandir = @mandir@
28manpfx = man
29
30man1ext = 1
31man1dir = $(mandir)/$(manpfx)$(man1ext)
32man3ext = 3
33man3dir = $(mandir)/$(manpfx)$(man3ext)
34
35SHELL = @MAKE_SHELL@
36RM = rm -f
37
38INSTALL = @INSTALL@
39INSTALL_DATA = @INSTALL_DATA@
40
41BUILD_DIR = @BUILD_DIR@
42TEXINPUTDIR = $(srcdir)
43
44MAKEINFO = LANGUAGE= makeinfo
45TEXI2DVI = $(srcdir)/texi2dvi
46TEXI2HTML = $(srcdir)/texi2html
47QUIETPS = #set this to -q to shut up dvips
48PAPERSIZE = letter
49PSDPI = 300 # I don't have any 600-dpi printers
50DVIPS = dvips -D ${PSDPI} $(QUIETPS) -t ${PAPERSIZE} -o $@ # tricky
51
52RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \
53 $(srcdir)/rltech.texinfo $(srcdir)/manvers.texinfo \
54 $(srcdir)/rluserman.texinfo
55HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \
56 $(srcdir)/hstech.texinfo $(srcdir)/manvers.texinfo
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
68TEXTOBJ = readline.0
69
70INTERMEDIATE_OBJ = rlman.dvi hist.dvi rluserman.dvi
71
72CREATED_DOCS = $(DVIOBJ) $(INFOOBJ) $(PSOBJ) $(HTMLOBJ) $(TEXTOBJ)
73
74.SUFFIXES: .0 .3 .ps .txt .dvi
75
76.3.0:
77 $(RM) $@
78 -${NROFF} -man $< > $@
79
80all: info dvi html ps text
81nodvi: info html text
82
83readline.dvi: $(RLSRC)
84 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rlman.texinfo
85 mv rlman.dvi readline.dvi
86
87readline.info: $(RLSRC)
88 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rlman.texinfo
89
90rluserman.dvi: $(RLSRC)
91 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rluserman.texinfo
92
93rluserman.info: $(RLSRC)
94 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rluserman.texinfo
95
96history.dvi: ${HISTSRC}
97 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/hist.texinfo
98 mv hist.dvi history.dvi
99
100history.info: ${HISTSRC}
101 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/hist.texinfo
102
103readline.ps: readline.dvi
104 $(RM) $@
105 $(DVIPS) readline.dvi
106
107rluserman.ps: rluserman.dvi
108 $(RM) $@
109 $(DVIPS) rluserman.dvi
110
111history.ps: history.dvi
112 $(RM) $@
113 $(DVIPS) history.dvi
114
115readline.html: ${RLSRC}
116 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo
117 sed -e 's:rlman.html:readline.html:g' rlman.html > readline.html
118 $(RM) rlman.html
119
120rluserman.html: ${RLSRC}
121 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rluserman.texinfo
122
123history.html: ${HISTSRC}
124 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo
125 sed -e 's:hist.html:history.html:g' hist.html > history.html
126 $(RM) hist.html
127
128info: $(INFOOBJ)
129dvi: $(DVIOBJ)
130ps: $(PSOBJ)
131html: $(HTMLOBJ)
132text: $(TEXTOBJ)
133
134readline.0: readline.3
135
136clean:
137 $(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \
138 *.fns *.kys *.tps *.vrs *.bt *.bts *.o core
139
140distclean: clean
141 $(RM) $(CREATED_DOCS)
142 $(RM) $(INTERMEDIATE_OBJ)
143 $(RM) Makefile
144
145mostlyclean: clean
146
147maintainer-clean: clean
148 $(RM) $(CREATED_DOCS)
149 $(RM) $(INTERMEDIATE_OBJ)
150 $(RM) Makefile
151
152installdirs: $(topdir)/support/mkdirs
153 -$(SHELL) $(topdir)/support/mkdirs $(infodir) $(man3dir)
154
155install: installdirs
156 if test -f readline.info; then \
157 ${INSTALL_DATA} readline.info $(infodir)/readline.info; \
158 else \
159 ${INSTALL_DATA} $(srcdir)/readline.info $(infodir)/readline.info; \
160 fi
161 if test -f rluserman.info; then \
162 ${INSTALL_DATA} rluserman.info $(infodir)/rluserman.info; \
163 else \
164 ${INSTALL_DATA} $(srcdir)/rluserman.info $(infodir)/rluserman.info; \
165 fi
166 if test -f history.info; then \
167 ${INSTALL_DATA} history.info $(infodir)/history.info; \
168 else \
169 ${INSTALL_DATA} $(srcdir)/history.info $(infodir)/history.info; \
170 fi
171 -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
172 install-info --dir-file=$(infodir)/dir $(infodir)/readline.info ; \
173 install-info --dir-file=$(infodir)/dir $(infodir)/history.info ; \
174 else true; fi
175 -${INSTALL_DATA} $(srcdir)/readline.3 $(man3dir)/readline.3
176
177uninstall:
178 $(RM) $(infodir)/readline.info
179 $(RM) $(infodir)/rluserman.info
180 $(RM) $(infodir)/history.info
181 $(RM) $(man3dir)/readline.3