1 ## Copyright (C) 1993 Free Software Foundation, Inc.
3 # Makefile for Readline documentation.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 infodir = $(prefix)/info
28 INSTALL_DATA
= $(INSTALL
)
30 # where to find texinfo
31 TEXIDIR
=$(srcdir)/..
/..
/texinfo
33 # where to find makeinfo, preferably one designed for texinfo-2
36 # auxiliary program for sorting Texinfo indices
39 # Don Knuth's TeX formatter
42 #### Host, target, and site specific Makefile fragments come in here.
49 info: history.
info readline.
info
51 dvi: history.
dvi readline.
dvi
54 -parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
55 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
56 -if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
57 for i in
*.
info* ; do \
58 $(INSTALL_DATA
) $$i $(infodir)/$$i ; \
61 history.
info: hist.texinfo hsuser.texinfo hstech.texinfo
62 $(MAKEINFO
) -I
$(srcdir) -o .
/history.
info $(srcdir)/hist.texinfo
64 history.
dvi: hist.texinfo hsuser.texinfo hstech.texinfo
$(TEXIDIR
)/texinfo.
tex
65 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) hist.texinfo
67 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) hist.texinfo
69 readline.
info: rlman.texinfo rluser.texinfo rltech.texinfo
70 $(MAKEINFO
) -I
$(srcdir) -o .
/readline.
info $(srcdir)/rlman.texinfo
72 readline.
dvi: rlman.texinfo rluser.texinfo rltech.texinfo
73 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) rlman.texinfo
75 TEXINPUTS
=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX
) rlman.texinfo
78 rm -f Makefile config.status
84 clean: clean-info clean-dvi
87 rm -f history.
info* readline.
info*
90 rm -f hist.?? hist.???
91 rm -f rlman.?? rlman.???
93 Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
94 $(SHELL
) .
/config.status