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.
9 infodir = ${prefix}/info
11 mandir = ${prefix}/man
15 man1dir = $(mandir)/$(manpfx)$(man1ext)
17 man3dir = $(mandir)/$(manpfx)$(man3ext)
22 INSTALL = /usr/bin/install -c
23 INSTALL_DATA = ${INSTALL} -m 644
26 TEXINPUTDIR = $(srcdir)
28 MAKEINFO = LANGUAGE= makeinfo
29 TEXI2DVI = $(srcdir)/texi2dvi
30 TEXI2HTML = $(srcdir)/texi2html
31 QUIETPS = #set this to -q to shut up dvips
32 PSDPI = 300 # I don't have any 600-dpi printers
33 DVIPS = dvips -D ${PSDPI} $(QUIETPS) -o $@ # tricky
35 RLSRC = $(srcdir)/rlman.texinfo $(srcdir)/rluser.texinfo \
36 $(srcdir)/rltech.texinfo $(srcdir)/manvers.texinfo \
37 $(srcdir)/rluserman.texinfo
38 HISTSRC = $(srcdir)/hist.texinfo $(srcdir)/hsuser.texinfo \
39 $(srcdir)/hstech.texinfo $(srcdir)/manvers.texinfo
41 # This should be a program that converts troff to an ascii-readable format
44 # This should be a program that converts troff to postscript
47 DVIOBJ = readline.dvi history.dvi rluserman.dvi
48 INFOOBJ = readline.info history.info rluserman.info
49 PSOBJ = readline.ps history.ps rluserman.ps
50 HTMLOBJ = readline.html history.html rluserman.html
52 INTERMEDIATE_OBJ = rlman.dvi hist.dvi rluserman.dvi
54 CREATED_DOCS = $(DVIOBJ) $(INFOOBJ) $(PSOBJ) $(HTMLOBJ)
56 .SUFFIXES: .ps .txt .dvi
61 readline.dvi: $(RLSRC)
62 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rlman.texinfo
63 mv rlman.dvi readline.dvi
65 readline.info: $(RLSRC)
66 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rlman.texinfo
68 rluserman.dvi: $(RLSRC)
69 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rluserman.texinfo
71 rluserman.info: $(RLSRC)
72 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rluserman.texinfo
74 history.dvi: ${HISTSRC}
75 TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/hist.texinfo
76 mv hist.dvi history.dvi
78 history.info: ${HISTSRC}
79 $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/hist.texinfo
81 readline.ps: readline.dvi
85 rluserman.ps: rluserman.dvi
87 $(DVIPS) rluserman.dvi
89 history.ps: history.dvi
93 readline.html: ${RLSRC}
94 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texinfo
95 sed -e 's:rlman.html:readline.html:' rlman.html > readline.html
98 rluserman.html: ${RLSRC}
99 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rluserman.texinfo
101 history.html: ${HISTSRC}
102 $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/hist.texinfo
103 sed -e 's:hist.html:history.html:' hist.html > history.html
112 $(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \
113 *.fns *.kys *.tps *.vrs *.o core
116 $(RM) $(CREATED_DOCS)
117 $(RM) $(INTERMEDIATE_OBJ)
122 maintainer-clean: clean
123 $(RM) $(CREATED_DOCS)
124 $(RM) $(INTERMEDIATE_OBJ)
128 @echo "This documentation should not be installed."