Annotation of embedaddon/readline/doc/Makefile.in, revision 1.1.1.2

1.1       misho       1: # This makefile for Readline library documentation is in -*- text -*- mode.
                      2: # Emacs likes it that way.
                      3: 
                      4: # Copyright (C) 1996-2009 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 3 of the License, or
                      9: #   (at your option) 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, see <http://www.gnu.org/licenses/>.
                     18: 
                     19: PACKAGE_TARNAME = @PACKAGE_TARNAME@
                     20: 
                     21: topdir = @top_srcdir@
                     22: srcdir = @srcdir@
                     23: VPATH = @srcdir@
                     24: 
                     25: prefix = @prefix@
                     26: 
                     27: datarootdir = @datarootdir@
                     28: 
                     29: docdir = @docdir@
                     30: infodir = @infodir@
                     31: 
                     32: mandir = @mandir@
                     33: manpfx = man
                     34: 
                     35: man1ext = .1
                     36: man1dir = $(mandir)/$(manpfx)1
                     37: man3ext = .3
                     38: man3dir = $(mandir)/$(manpfx)3
                     39: 
                     40: # set this to a value to have the HTML documentation installed
                     41: htmldir =
                     42: 
                     43: # Support an alternate destination root directory for package building
                     44: DESTDIR =
                     45: 
                     46: SHELL = @MAKE_SHELL@
                     47: RM = rm -f
                     48: 
                     49: INSTALL = @INSTALL@
                     50: INSTALL_DATA = @INSTALL_DATA@
                     51: 
                     52: BUILD_DIR = @BUILD_DIR@
                     53: TEXINPUTDIR = $(srcdir)
                     54: 
                     55: MAKEINFO    = LANGUAGE= makeinfo
                     56: TEXI2DVI    = $(srcdir)/texi2dvi
                     57: TEXI2HTML   = $(srcdir)/texi2html
                     58: QUIETPS     = #set this to -q to shut up dvips
                     59: PAPERSIZE   = letter
                     60: PSDPI       = 600
                     61: DVIPS       = dvips -D ${PSDPI} $(QUIETPS) -t ${PAPERSIZE} -o $@     # tricky
1.1.1.2 ! misho      62: # experimental; uses external texi2dvi for now; this needs pdftex to be present
        !            63: TEXI2PDF    = texi2dvi --pdf
1.1       misho      64: 
                     65: # These tools might not be available; they're not required
                     66: DVIPDF      = dvipdfm -o $@ -p ${PAPERSIZE}
                     67: PSPDF       = gs -sPAPERSIZE=${PAPERSIZE} -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@
                     68: 
                     69: RLSRC = $(srcdir)/rlman.texi $(srcdir)/rluser.texi \
                     70:        $(srcdir)/rltech.texi $(srcdir)/version.texi \
                     71:        $(srcdir)/rluserman.texi $(srcdir)/fdl.texi
                     72: HISTSRC = $(srcdir)/history.texi $(srcdir)/hsuser.texi \
                     73:          $(srcdir)/hstech.texi $(srcdir)/version.texi $(srcdir)/fdl.texi
                     74: 
                     75: # This should be a program that converts troff to an ascii-readable format
                     76: NROFF       = groff -Tascii
                     77: 
                     78: # This should be a program that converts troff to postscript
                     79: GROFF       = groff
                     80: 
                     81: DVIOBJ = readline.dvi history.dvi rluserman.dvi
                     82: INFOOBJ = readline.info history.info rluserman.info
                     83: PSOBJ = readline.ps history.ps rluserman.ps readline_3.ps history_3.ps
                     84: HTMLOBJ = readline.html history.html rluserman.html
                     85: TEXTOBJ = readline.0 history.0
                     86: PDFOBJ = readline.pdf history.pdf rluserman.pdf
                     87: 
                     88: INTERMEDIATE_OBJ = rlman.dvi
                     89: 
                     90: DIST_DOCS = $(DVIOBJ) $(PSOBJ) $(HTMLOBJ) $(INFOOBJ) $(TEXTOBJ) $(PDFOBJ)
                     91: 
                     92: .SUFFIXES:      .0 .3 .ps .txt .dvi .html .pdf
                     93: 
                     94: .3.0:
                     95:        $(RM) $@
                     96:        -${NROFF} -man $< > $@
                     97: 
                     98: .ps.pdf:
                     99:        $(RM) $@
                    100:        -${PSPDF} $<
                    101: 
                    102: .dvi.pdf:
                    103:        $(RM) $@
                    104:        -${DVIPDF} $<
                    105: 
1.1.1.2 ! misho     106: #.texi.pdf:
        !           107: #      $(RM) $@
        !           108: #      -${TEXI2PDF} $<
        !           109: 
1.1       misho     110: all: info dvi html ps text pdf
                    111: nodvi: info html text
                    112: 
                    113: xdist: $(DIST_DOCS)
                    114: 
                    115: info:  $(INFOOBJ)
                    116: dvi:   $(DVIOBJ)
                    117: ps:    $(PSOBJ)
                    118: html:  $(HTMLOBJ)
                    119: text:  $(TEXTOBJ)
                    120: pdf:   $(PDFOBJ)
                    121: 
                    122: readline.dvi: $(RLSRC)
                    123:        TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rlman.texi
                    124:        mv rlman.dvi readline.dvi
                    125: 
                    126: readline.info: $(RLSRC)
                    127:        $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rlman.texi
                    128: 
                    129: rluserman.dvi: $(RLSRC)
                    130:        TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/rluserman.texi
                    131: 
                    132: rluserman.info: $(RLSRC)
                    133:        $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/rluserman.texi
                    134: 
                    135: history.dvi: ${HISTSRC}
                    136:        TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/history.texi
                    137: 
                    138: history.info: ${HISTSRC}
                    139:        $(MAKEINFO) --no-split -I $(TEXINPUTDIR) -o $@ $(srcdir)/history.texi
                    140: 
                    141: readline.ps:   readline.dvi
                    142:        $(RM) $@
                    143:        $(DVIPS) readline.dvi
                    144: 
                    145: rluserman.ps:  rluserman.dvi
                    146:        $(RM) $@
                    147:        $(DVIPS) rluserman.dvi
                    148: 
                    149: history.ps:    history.dvi
                    150:        $(RM) $@
                    151:        $(DVIPS) history.dvi
                    152: 
                    153: #
                    154: # This leaves readline.html and rlman.html -- rlman.html is for www.gnu.org
                    155: #
                    156: readline.html: ${RLSRC}
                    157:        $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rlman.texi
                    158:        sed -e 's:rlman.html:readline.html:g' rlman.html > readline.html
                    159:        $(RM) rlman.html
                    160: 
                    161: rluserman.html:        ${RLSRC}
                    162:        $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/rluserman.texi
                    163: 
                    164: history.html:  ${HISTSRC}
                    165:        $(TEXI2HTML) -menu -monolithic -I $(TEXINPUTDIR) $(srcdir)/history.texi
                    166: 
                    167: readline.0: readline.3
                    168: 
                    169: readline_3.ps: $(srcdir)/readline.3
                    170:        ${RM} $@
                    171:        ${GROFF} -man < $(srcdir)/readline.3 > $@ 
                    172: 
                    173: history.0: history.3
                    174: 
                    175: history_3.ps: $(srcdir)/history.3
                    176:        ${RM} $@
                    177:        ${GROFF} -man < $(srcdir)/history.3 > $@ 
                    178: 
1.1.1.2 ! misho     179: readline.pdf:  $(RLSRC)
        !           180:        TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2PDF) $(srcdir)/rlman.texi
        !           181:        mv rlman.pdf $@
        !           182: 
        !           183: history.pdf:   $(HISTSRC)
        !           184:        TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2PDF) $(srcdir)/history.texi
        !           185: 
        !           186: rluserman.pdf: $(RLSRC)
        !           187:        TEXINPUTS=.:$(TEXINPUTDIR):$$TEXINPUTS $(TEXI2PDF) $(srcdir)/rluserman.texi
1.1       misho     188: 
                    189: clean:
                    190:        $(RM) *.aux *.bak *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.cps \
                    191:              *.pgs *.bt *.bts *.rw *.rws *.fns *.kys *.tps *.vrs *.o \
                    192:              core *.core
                    193: 
                    194: mostlyclean: clean
                    195: 
                    196: distclean: clean maybe-clean
                    197:        $(RM) $(INTERMEDIATE_OBJ)
                    198:        $(RM) Makefile
                    199: 
                    200: maybe-clean:
                    201:        -if test "X$(topdir)" != "X.." && test "X$(topdir)" != "X$(BUILD_DIR)"; then \
                    202:                $(RM) $(DIST_DOCS); \
                    203:        fi
                    204: 
                    205: maintainer-clean: clean
                    206:        $(RM) $(DIST_DOCS)
                    207:        $(RM) $(INTERMEDIATE_OBJ)
                    208:        $(RM) $(PDFOBJ)
                    209:        $(RM) Makefile
                    210: 
                    211: installdirs:   $(topdir)/support/mkdirs
                    212:        -$(SHELL) $(topdir)/support/mkdirs $(DESTDIR)$(infodir) $(DESTDIR)$(man3dir)
                    213:        -if test -n "${htmldir}" ; then \
                    214:                $(SHELL) $(topdir)/support/mkdirs $(DESTDIR)$(htmldir) ; \
                    215:        fi
                    216: 
                    217: install:       installdirs
                    218:        if test -f readline.info; then \
                    219:                ${INSTALL_DATA} readline.info $(DESTDIR)$(infodir)/readline.info; \
                    220:        else \
                    221:                ${INSTALL_DATA} $(srcdir)/readline.info $(DESTDIR)$(infodir)/readline.info; \
                    222:        fi
                    223:        if test -f rluserman.info; then \
                    224:                ${INSTALL_DATA} rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
                    225:        else \
                    226:                ${INSTALL_DATA} $(srcdir)/rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
                    227:        fi
                    228:        if test -f history.info; then \
                    229:                ${INSTALL_DATA} history.info $(DESTDIR)$(infodir)/history.info; \
                    230:        else \
                    231:                ${INSTALL_DATA} $(srcdir)/history.info $(DESTDIR)$(infodir)/history.info; \
                    232:        fi
                    233:        -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
                    234:                install-info --dir-file=$(DESTDIR)$(infodir)/dir \
                    235:                        $(DESTDIR)$(infodir)/readline.info ; \
                    236:                install-info --dir-file=$(DESTDIR)$(infodir)/dir \
                    237:                        $(DESTDIR)$(infodir)/history.info ; \
                    238:                install-info --dir-file=$(DESTDIR)$(infodir)/dir \
                    239:                        $(DESTDIR)$(infodir)/rluserman.info ; \
                    240:        else true; fi
                    241:        -${INSTALL_DATA} $(srcdir)/readline.3 $(DESTDIR)$(man3dir)/readline$(man3ext)
                    242:        -${INSTALL_DATA} $(srcdir)/history.3 $(DESTDIR)$(man3dir)/history$(man3ext)
                    243:        -if test -n "${htmldir}" ; then \
                    244:                if test -f readline.html; then \
                    245:                        ${INSTALL_DATA} readline.html $(DESTDIR)$(htmldir)/readline.html; \
                    246:                else \
                    247:                        ${INSTALL_DATA} $(srcdir)/readline.html $(DESTDIR)$(htmldir)/readline.html; \
                    248:                fi ; \
                    249:                if test -f history.html; then \
                    250:                        ${INSTALL_DATA} history.html $(DESTDIR)$(htmldir)/history.html; \
                    251:                else \
                    252:                        ${INSTALL_DATA} $(srcdir)/history.html $(DESTDIR)$(htmldir)/history.html; \
                    253:                fi ; \
                    254:                if test -f rluserman.html; then \
                    255:                        ${INSTALL_DATA} rluserman.html $(DESTDIR)$(htmldir)/rluserman.html; \
                    256:                else \
                    257:                        ${INSTALL_DATA} $(srcdir)/rluserman.html $(DESTDIR)$(htmldir)/rluserman.html; \
                    258:                fi ; \
                    259:        fi
                    260: 
                    261: uninstall:
                    262:        $(RM) $(DESTDIR)$(infodir)/readline.info
                    263:        $(RM) $(DESTDIR)$(infodir)/rluserman.info
                    264:        $(RM) $(DESTDIR)$(infodir)/history.info
                    265:        $(RM) $(DESTDIR)$(man3dir)/readline$(man3ext)
                    266:        $(RM) $(DESTDIR)$(man3dir)/history$(man3ext)
                    267:        -if test -n "${htmldir}" ; then \
                    268:                $(RM) $(DESTDIR)$(htmldir)/readline.html ; \
                    269:                $(RM) $(DESTDIR)$(htmldir)/rluserman.html ; \
                    270:                $(RM) $(DESTDIR)$(htmldir)/history.html ; \
                    271:        fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>