]>
Commit | Line | Data |
---|---|---|
ccc6cda3 | 1 | # This makefile for Readline library documentation is in -*- text -*- mode. |
726f6388 | 2 | # Emacs likes it that way. |
ccc6cda3 | 3 | TEXI2DVI = texi2dvi |
726f6388 | 4 | |
ccc6cda3 | 5 | RM = rm -f |
726f6388 | 6 | |
ccc6cda3 JA |
7 | INSTALL_DATA = cp |
8 | infodir = /usr/local/info | |
726f6388 JA |
9 | |
10 | RLSRC = rlman.texinfo rluser.texinfo rltech.texinfo | |
11 | HISTSRC = hist.texinfo hsuser.texinfo hstech.texinfo | |
12 | ||
13 | DVIOBJ = readline.dvi history.dvi | |
14 | INFOOBJ = readline.info history.info | |
15 | PSOBJ = readline.ps history.ps | |
ccc6cda3 | 16 | HTMLOBJ = readline.html history.html |
726f6388 | 17 | |
ccc6cda3 | 18 | all: info dvi html |
726f6388 JA |
19 | |
20 | readline.dvi: $(RLSRC) | |
ccc6cda3 | 21 | $(TEXI2DVI) rlman.texinfo |
726f6388 JA |
22 | mv rlman.dvi readline.dvi |
23 | ||
24 | readline.info: $(RLSRC) | |
ccc6cda3 | 25 | makeinfo --no-split -o $@ rlman.texinfo |
726f6388 JA |
26 | |
27 | history.dvi: ${HISTSRC} | |
ccc6cda3 | 28 | $(TEXI2DVI) hist.texinfo |
726f6388 JA |
29 | mv hist.dvi history.dvi |
30 | ||
31 | history.info: ${HISTSRC} | |
ccc6cda3 | 32 | makeinfo --no-split -o $@ hist.texinfo |
726f6388 JA |
33 | |
34 | readline.ps: readline.dvi | |
35 | dvips -D 300 -o $@ readline.dvi | |
36 | ||
37 | history.ps: history.dvi | |
38 | dvips -D 300 -o $@ history.dvi | |
39 | ||
ccc6cda3 JA |
40 | readline.html: ${RLSRC} |
41 | texi2html rlman.texinfo | |
42 | sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman.html > readline.html | |
43 | sed -e 's:rlman.html:readline.html:' -e 's:rlman_toc.html:readline_toc.html:' rlman_toc.html > readline_toc.html | |
44 | rm -f rlman.html rlman_toc.html | |
45 | ||
46 | history.html: ${HISTSRC} | |
47 | texi2html hist.texinfo | |
48 | sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist.html > history.html | |
49 | sed -e 's:hist.html:history.html:' -e 's:hist_toc.html:history_toc.html:' hist_toc.html > history_toc.html | |
50 | rm -f hist.html hist_toc.html | |
51 | ||
726f6388 JA |
52 | info: $(INFOOBJ) |
53 | dvi: $(DVIOBJ) | |
54 | ps: $(PSOBJ) | |
ccc6cda3 | 55 | html: $(HTMLOBJ) |
726f6388 | 56 | |
ccc6cda3 JA |
57 | clean: |
58 | $(RM) *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps *.pgs \ | |
59 | *.fns *.kys *.tps *.vrs *.o core | |
726f6388 | 60 | |
ccc6cda3 JA |
61 | distclean: clean |
62 | mostlyclean: clean | |
726f6388 | 63 | |
ccc6cda3 JA |
64 | maintainer-clean: clean |
65 | $(RM) *.dvi *.info *.info-* *.ps *.html | |
726f6388 | 66 | |
ccc6cda3 JA |
67 | install: info |
68 | ${INSTALL_DATA} readline.info $(infodir)/readline.info | |
69 | ${INSTALL_DATA} history.info $(infodir)/history.info |