1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
# Generated automatically from Makefile.in by configure.
#
# WebMagick Documentation Makefile
# Written by Bob Friesenhahn, 1997
#
SHELL = /bin/sh
# Berkely compatable install program
INSTALL = /usr/bin/install -c
# Default top-level directories in which to install architecture-
# specific files (exec_prefix) and machine-independent files such
# as scripts (prefix). The values specified here may be overridden
# at configure-time with the --exec-prefix and --prefix options
# to the "configure" script.
prefix = /usr
exec_prefix = ${prefix}
# The following definition can be set to non-null for special systems
# like AFS with replication. It allows the pathnames used for installation
# to be different than those used for actually reference files at
# run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
# when installing files.
INSTALL_ROOT =
# Top-level directory for manual entries:
MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man
# Directory in which to install manual pages:
MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1
# Directory in which to install Info pages
INFO_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/info
#
# Programs used
#
MAKEINFO = makeinfo # TeXinfo to Info translator
TEXI2DVI = texi2dvi # TeXinfo to DVI translator (runs TeX)
DVIPS = dvips # DVI to Postscript driver
TEXI2HTML = texi2html # TeXinfo to HTML translator
HELP2MAN = ../utils/help2man # Help output to manual page translator
# These two only used if TeX is not available (see target webmagick.me)
TEXI2ROFF = texi2roff # TeXinfo to troff translator
TROFF = groff # Troff typesetter program
WEBMAGICK_TEXI = webmagick.texinfo
all: webmagick.info webmagick.ps webmagick_toc.html webmagick.1
# DVI version
webmagick.dvi: $(WEBMAGICK_TEXI)
$(TEXI2DVI) webmagick.texinfo
# Postscript version
# Remove the '0' from -r0 to reverse output order
webmagick.ps: webmagick.dvi
$(DVIPS) -r0 -o $@ webmagick.dvi
# Info version
webmagick.info: $(WEBMAGICK_TEXI)
$(MAKEINFO) --output=$@ webmagick.texinfo
# Plain text version
# Not built by default. Do a 'make webmagick.txt' to build.
webmagick.txt: $(WEBMAGICK_TEXI)
$(MAKEINFO) webmagick.texinfo --output=$@ --no-headers --no-validate
# HTML version
webmagick_toc.html: $(WEBMAGICK_TEXI)
$(TEXI2HTML) -split_chapter webmagick.texinfo
# Simple manual page
webmagick.1: ../webmagick.in
$(HELP2MAN) ../webmagick > $@
# Poor-man's TeX replacement
# troff -me version
# Postscript file webmagick_me.ps is generated (doesn't trash webmagick.ps)
# With a patched up texi2roff-2.0, output appears perfectly usable.
# Texi2roff is available from ftp.cdrom.com:/tex/ctan/support/texi2roff or
# from other CPAN mirrors.
# Index generation doesn't seem to work so there is no index.
webmagick.me: $(WEBMAGICK_TEXI)
echo 'Ignore "unrecognized Texinfo command" warnings'
$(TEXI2ROFF) -me webmagick.texinfo > webmagick.me
$(TROFF) -me webmagick.me > webmagick_me.ps
install: webmagick.info webmagick.1
if test ! -d $(INFO_INSTALL_DIR); then mkdir $(INFO_INSTALL_DIR); fi
for file in webmagick.info* ; \
do \
$(INSTALL) -m 0644 $$file $(INFO_INSTALL_DIR) ; \
done
$(INSTALL) -m 0644 webmagick.1 $(MAN1_INSTALL_DIR)
clean:
$(RM) webmagick.dvi webmagick.ps webmagick.info* webmagick*.html webmagick.txt
$(RM) *.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp
$(RM) *.vr *.op *.ops *.sw *.sws *.bak
$(RM) webmagick.me webmagick_me.ps
|