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 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
|
#
# $Id: Makefile.in,v 3.1.2.4 1997/05/06 05:56:36 hzoli Exp $
#
# Makefile for Doc subdirectory
#
# Copyright (c) 1995-1997 Richard Coleman
# All rights reserved.
#
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and to distribute modified versions of this software for any
# purpose, provided that the above copyright notice and the following
# two paragraphs appear in all copies of this software.
#
# In no event shall Richard Coleman or the Zsh Development Group be liable
# to any party for direct, indirect, special, incidental, or consequential
# damages arising out of the use of this software and its documentation,
# even if Richard Coleman and the Zsh Development Group have been advised of
# the possibility of such damage.
#
# Richard Coleman and the Zsh Development Group specifically disclaim any
# warranties, including, but not limited to, the implied warranties of
# merchantability and fitness for a particular purpose. The software
# provided hereunder is on an "as is" basis, and Richard Coleman and the
# Zsh Development Group have no obligation to provide maintenance,
# support, updates, enhancements, or modifications.
#
SHELL = /bin/sh
# Program to format Texinfo source into Info files.
MAKEINFO = makeinfo
# Program to format Texinfo source into DVI files.
TEXI2DVI = texi2dvi
# Program to convert DVI files to PostScript
DVIPS = dvips -D 300
# Program to convert texinfo files to html
TEXI2HTML = texi2html -expandinfo -split_chapter
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
MODDIR = $(libdir)/zsh/$(VERSION)
infodir = @infodir@
mandir = @mandir@
manext = 1
VERSION = @VERSION@
CC = @CC@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
DLCFLAGS = @DLCFLAGS@
DLLDFLAGS = @DLLDFLAGS@
LIBLDFLAGS = @LIBLDFLAGS@
EXELDFLAGS = @EXELDFLAGS@
LIBS = @LIBS@
DL_EXT = @DL_EXT@
DLLD = @DLLD@
AWK = @AWK@
YODL = @YODL@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
zshenv = @zshenv@
zshrc = @zshrc@
zprofile = @zprofile@
zlogin = @zlogin@
zlogout = @zlogout@
SED = sed
.SUFFIXES:
.SUFFIXES: .yo .$(manext) .texi .info .dvi
.texi.dvi:
$(TEXI2DVI) $<
.texi.info:
@$(MAKEINFO) -I$(srcdir) $< || { \
echo Info documentation cannot be compiled without $(MAKEINFO). ; \
echo You can find precompiled info files in zsh-doc.tar.gz. ; }
.yo.$(manext):
$(YODL) -o $@ -I$(srcdir) -w zman.yo paths.yo $<
@test -f $@
.yo.texi: ztexi.yo paths.yo zsh.yo $(YOSRC)
$(YODL) -o $@ -I$(srcdir) -w ztexi.yo paths.yo $<
@test -f $@
# man pages to install
MAN = zsh.$(manext) zshbuiltins.$(manext) zshcompctl.$(manext) \
zshexpn.$(manext) zshmisc.$(manext) zshmodules.$(manext) \
zshoptions.$(manext) zshparam.$(manext) zshzle.$(manext) zshall.$(manext)
# yodl documentation
YODL = @YODL@
YODLDOC = $(MAN) zsh.texi
YODLSRC = zmacros.yo zman.yo ztexi.yo Zsh/arith.yo Zsh/builtins.yo \
Zsh/compat.yo Zsh/compctl.yo Zsh/cond.yo Zsh/exec.yo Zsh/expn.yo \
Zsh/filelist.yo Zsh/files.yo Zsh/func.yo Zsh/grammar.yo Zsh/guide.yo \
Zsh/index.yo Zsh/intro.yo Zsh/invoke.yo Zsh/jobs.yo Zsh/modules.yo \
Zsh/mod_cap.yo \
Zsh/mod_clone.yo Zsh/mod_comp1.yo Zsh/mod_compctl.yo Zsh/mod_deltochar.yo \
Zsh/mod_example.yo Zsh/mod_files.yo Zsh/mod_stat.yo \
Zsh/mod_zle.yo Zsh/options.yo \
Zsh/params.yo Zsh/prompt.yo Zsh/redirect.yo Zsh/restricted.yo \
Zsh/seealso.yo Zsh/zle.yo
# auxiliary files
AUX = Makefile.in zsh.texi intro.ms
# all files in this directory included in the distribution
DIST = $(DIST_MAN) $(AUX)
# ========== DEPENDENCIES FOR BUILDING ==========
all: $(MAN) zsh.info
everything: all zsh_us.ps zsh_a4.ps zsh_toc.html
zsh.dvi zsh.info: zsh.texi
zsh_us.ps: zsh.dvi
$(DVIPS) -t letter -o $@ zsh.dvi
zsh_a4.ps: zsh.dvi
$(DVIPS) -t a4 -o $@ zsh.dvi
zsh_toc.html: zsh.texi
$(TEXI2HTML) $(srcdir)/zsh.texi
zshall.$(manext): zsh.yo
$(YODL) -o $@ -I$(srcdir) -w -DZSHALL zman.yo paths.yo zsh.yo
@test -f $@
$(YODLDOC): $(YODLSRC) paths.yo
MODYRULE = -e 's,%ifdyn%,ARG1,g' -e 's,%ifndyn%,,g'
MONYRULE = -e 's,%ifdyn%,,g' -e 's,%ifndyn%,ARG1,g'
paths.yo: FORCE
@sed -e 's,%zshenv%,$(zshenv),g' \
-e 's,%zshrc%,$(zshrc),g' \
-e 's,%zprofile%,$(zprofile),g' \
-e 's,%zlogin%,$(zlogin),g' \
-e 's,%zlogout%,$(zlogout),g' \
-e 's,%libdir%,$(libdir),g' \
-e 's,%dlext%,$(DL_EXT),g' \
-e 's,%mandir%,man$(manext),g' \
-e 's,%manext%,$(manext),g' \
-e 's,%version%,$(VERSION),g' \
$(MO@D@YRULE) \
$(srcdir)/paths.yo.in > $@.tmp
@if cmp -s $@ $@.tmp; then \
rm -f $@.tmp; \
echo "\`$@' is up to date." ; \
else \
mv -f $@.tmp $@; \
echo "Updated \`$@'." ; \
fi
FORCE:
# ========== DEPENDENCIES FOR INSTALLING ==========
# install all the documentation
install: install.man install.info
# uninstall all the documentation
uninstall: uninstall.man uninstall.info
# install man pages, creating install directory if necessary
install.man: $(MAN)
$(top_srcdir)/mkinstalldirs $(mandir)/man$(manext)
for file in $(MAN); do \
if test -f $$file; then \
$(INSTALL_DATA) $$file $(mandir)/man$(manext); \
elif test -f $(srcdir)/$$file; then \
$(INSTALL_DATA) $(srcdir)/$$file $(mandir)/man$(manext); \
else :; \
fi || exit 1; \
done
# install info pages, creating install directory if necessary
install.info: zsh.info
$(top_srcdir)/mkinstalldirs $(infodir)
for file in zsh.info zsh.info-[1-9]; do \
if test -f $$file; then \
$(INSTALL_DATA) $$file $(infodir); \
elif test -f $(srcdir)/$$file; then \
$(INSTALL_DATA) $(srcdir)/$$file $(infodir); \
else :; \
fi || exit 1; \
done
# uninstall man pages
uninstall.man:
for file in $(MAN); do \
rm -f $(mandir)/man$(manext)/$$file; \
done
# uninstall info pages
uninstall.info:
rm -f $(infodir)/zsh.info $(infodir)/zsh.info-[1-9]
# ========== DEPENDENCIES FOR CLEANUP ==========
mostlyclean:
rm -f *~
clean: mostlyclean
rm -f paths.yo
rm -f *.html *.info* *.dvi *.ps
rm -f *.aux *.cp *.cps *.fn *.fns *.ky *.log
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
distclean: clean
rm -f Makefile
realclean: distclean
rm -f *.$(manext) *.texi
superclean: realclean
# ========== DEPENDENCIES FOR MAINTENANCE ==========
subdir = Doc
Makefile: Makefile.in ../config.status
cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
|