1999-04-15 20:05:35 +02:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
subdir = Doc
|
|
|
|
|
dir_top = ..
|
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
@VERSION_MK@
|
|
|
|
|
|
|
|
|
|
# source/build directories
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
sdir = @srcdir@
|
|
|
|
|
sdir_top = @top_srcdir@
|
|
|
|
|
INSTALL = @INSTALL@
|
2013-11-12 18:41:40 +01:00
|
|
|
|
LN_S = @LN_S@
|
2000-04-19 16:10:56 +02:00
|
|
|
|
|
|
|
|
|
@DEFS_MK@
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
MAKEINFO = makeinfo
|
|
|
|
|
TEXI2DVI = texi2dvi
|
2000-04-19 16:10:56 +02:00
|
|
|
|
DVIPS = dvips
|
2014-01-19 16:24:40 +01:00
|
|
|
|
TEXI2HTML = @TEXI2HTML@ --output . --ifinfo --split=chapter --node-files \
|
2014-08-11 20:42:38 +02:00
|
|
|
|
--init-file texi2html.conf
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
.SUFFIXES: .yo .1
|
|
|
|
|
|
|
|
|
|
# man pages to install
|
2006-12-01 11:23:06 +01:00
|
|
|
|
MAN = zsh.1 zshbuiltins.1 zshcalsys.1 zshcompctl.1 zshcompwid.1 zshcompsys.1 \
|
2000-09-04 23:10:29 +02:00
|
|
|
|
zshcontrib.1 zshexpn.1 zshmisc.1 zshmodules.1 \
|
2005-10-21 11:51:54 +02:00
|
|
|
|
zshoptions.1 zshparam.1 zshroadmap.1 zshtcpsys.1 zshzftpsys.1 zshzle.1 \
|
|
|
|
|
zshall.1
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
# yodl documentation
|
2000-04-19 16:10:56 +02:00
|
|
|
|
|
|
|
|
|
YODLDOC = $(MAN) texi
|
|
|
|
|
|
|
|
|
|
MODDOCSRC = \
|
2009-03-03 16:04:15 +01:00
|
|
|
|
Zsh/mod_attr.yo Zsh/mod_cap.yo Zsh/mod_clone.yo \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
Zsh/mod_compctl.yo Zsh/mod_complete.yo Zsh/mod_complist.yo \
|
2007-10-14 19:14:22 +02:00
|
|
|
|
Zsh/mod_computil.yo Zsh/mod_curses.yo \
|
2003-10-25 19:38:18 +02:00
|
|
|
|
Zsh/mod_datetime.yo Zsh/mod_deltochar.yo \
|
2011-10-12 15:03:54 +02:00
|
|
|
|
Zsh/mod_example.yo Zsh/mod_files.yo Zsh/mod_langinfo.yo \
|
2005-07-20 18:08:12 +02:00
|
|
|
|
Zsh/mod_mapfile.yo Zsh/mod_mathfunc.yo Zsh/mod_newuser.yo \
|
2007-05-02 00:05:03 +02:00
|
|
|
|
Zsh/mod_parameter.yo Zsh/mod_pcre.yo Zsh/mod_regex.yo \
|
2002-08-22 14:08:06 +02:00
|
|
|
|
Zsh/mod_sched.yo Zsh/mod_socket.yo \
|
2003-08-30 21:06:06 +02:00
|
|
|
|
Zsh/mod_stat.yo Zsh/mod_system.yo Zsh/mod_tcp.yo \
|
|
|
|
|
Zsh/mod_termcap.yo Zsh/mod_terminfo.yo \
|
2001-05-31 13:58:40 +02:00
|
|
|
|
Zsh/mod_zftp.yo Zsh/mod_zle.yo Zsh/mod_zleparameter.yo \
|
2002-05-08 15:13:52 +02:00
|
|
|
|
Zsh/mod_zprof.yo Zsh/mod_zpty.yo Zsh/mod_zselect.yo \
|
2003-08-30 21:06:06 +02:00
|
|
|
|
Zsh/mod_zutil.yo
|
2000-04-19 16:10:56 +02:00
|
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
|
YODLSRC = zmacros.yo zman.yo ztexi.yo Zsh/arith.yo Zsh/builtins.yo \
|
2006-12-01 11:23:06 +01:00
|
|
|
|
Zsh/calsys.yo \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
Zsh/compat.yo Zsh/compctl.yo Zsh/compsys.yo Zsh/compwid.yo Zsh/cond.yo \
|
2000-09-04 23:10:29 +02:00
|
|
|
|
Zsh/contrib.yo Zsh/exec.yo Zsh/expn.yo \
|
2011-04-30 22:52:22 +02:00
|
|
|
|
Zsh/filelist.yo Zsh/files.yo Zsh/ftp_sites.yo \
|
|
|
|
|
Zsh/func.yo Zsh/grammar.yo Zsh/manual.yo \
|
1999-04-15 20:05:35 +02:00
|
|
|
|
Zsh/index.yo Zsh/intro.yo Zsh/invoke.yo Zsh/jobs.yo Zsh/metafaq.yo \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
Zsh/modules.yo Zsh/modlist.yo Zsh/modmenu.yo Zsh/manmodmenu.yo $(MODDOCSRC) \
|
|
|
|
|
Zsh/options.yo Zsh/params.yo Zsh/prompt.yo Zsh/redirect.yo Zsh/restricted.yo \
|
2003-02-06 13:21:49 +01:00
|
|
|
|
Zsh/seealso.yo Zsh/tcpsys.yo Zsh/zftpsys.yo Zsh/zle.yo
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
# ========== DEPENDENCIES FOR BUILDING ==========
|
|
|
|
|
|
2013-11-25 09:11:36 +01:00
|
|
|
|
all: man $(runhelp) texi ../META-FAQ
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: all
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2006-12-17 17:02:01 +01:00
|
|
|
|
everything: all dvi html pdf info
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: everything
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
dvi: zsh.dvi
|
|
|
|
|
.PHONY: dvi
|
|
|
|
|
|
2002-05-12 20:51:46 +02:00
|
|
|
|
zsh.dvi: $(sdir)/zsh.texi
|
|
|
|
|
$(TEXI2DVI) $(sdir)/zsh.texi
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2012-07-27 20:43:17 +02:00
|
|
|
|
pdf: zsh.pdf intro.a4.pdf intro.us.pdf
|
2005-02-04 17:59:23 +01:00
|
|
|
|
.PHONY: pdf
|
|
|
|
|
|
|
|
|
|
zsh.pdf: $(sdir)/zsh.texi
|
2006-12-04 12:24:10 +01:00
|
|
|
|
if [ x$(TEXI2PDF) != x ]; then \
|
|
|
|
|
$(TEXI2PDF) $(sdir)/zsh.texi; \
|
|
|
|
|
else \
|
|
|
|
|
PDFTEX=$(PDFETEX) $(TEXI2DVI) --pdf $(sdir)/zsh.texi; \
|
|
|
|
|
fi
|
2005-02-04 17:59:23 +01:00
|
|
|
|
|
2012-07-27 20:43:17 +02:00
|
|
|
|
# Use roff2ps / ps2pdf because pdfroff produces doubled output.
|
|
|
|
|
intro.a4.pdf: $(sdir)/intro.ms
|
|
|
|
|
roff2ps -ms -P-pa4 < $(sdir)/intro.ms > intro.a4.ps
|
|
|
|
|
ps2pdf intro.a4.ps
|
|
|
|
|
|
|
|
|
|
intro.us.pdf: $(sdir)/intro.ms
|
|
|
|
|
roff2ps -ms -P-pletter < $(sdir)/intro.ms > intro.us.ps
|
|
|
|
|
ps2pdf intro.us.ps
|
2012-04-14 22:42:38 +02:00
|
|
|
|
|
2002-05-12 20:51:46 +02:00
|
|
|
|
texi: $(sdir)/zsh.texi
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: texi
|
|
|
|
|
|
2007-11-20 15:19:59 +01:00
|
|
|
|
$(sdir)/zsh.texi: version.yo
|
2014-09-20 13:43:42 +02:00
|
|
|
|
case '$(YODL)' in :*) touch $@ ;; *) \
|
|
|
|
|
$(YODL) -o $@ -I$(sdir) -w ztexi.yo version.yo zsh.yo; \
|
|
|
|
|
test -f $@ \
|
|
|
|
|
;; esac
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
info: zsh.info
|
|
|
|
|
.PHONY: info
|
|
|
|
|
|
2002-05-12 20:51:46 +02:00
|
|
|
|
zsh.info: $(sdir)/zsh.texi
|
|
|
|
|
$(MAKEINFO) $(sdir)/zsh.texi
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
.yo.1:
|
2005-04-24 20:38:01 +02:00
|
|
|
|
@case $@ in \
|
2002-05-12 20:51:46 +02:00
|
|
|
|
*/*) target=$@ ;; \
|
|
|
|
|
*) target=$(sdir)/$@ ;; \
|
|
|
|
|
esac; \
|
2005-05-06 17:52:59 +02:00
|
|
|
|
case '$(YODL)' in :*) touch $$target ;; *) \
|
2008-02-27 19:24:41 +01:00
|
|
|
|
echo $(YODL) -o $$target -I$(sdir):. -w zman.yo version.yo $< ; \
|
|
|
|
|
$(YODL) -I$(sdir):. -w zman.yo version.yo $< | \
|
2005-08-23 02:37:51 +02:00
|
|
|
|
sed -e '1s/\\-/-/g' -e '/^\.'\''/d' -e 's/\(\\fB\)*'\''/\1\\\&'\''/' > $$target \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
;; esac; \
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2005-07-31 20:03:59 +02:00
|
|
|
|
# These targets are no longer made by default, nor
|
|
|
|
|
# distributed with the -doc.tar.gz, since the PDF
|
|
|
|
|
# output is generally better. However, they still work.
|
2000-04-19 16:10:56 +02:00
|
|
|
|
ps: us_ps a4_ps
|
|
|
|
|
.PHONY: ps
|
|
|
|
|
|
|
|
|
|
us_ps: zsh_us.ps
|
|
|
|
|
.PHONY: us_ps
|
|
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
|
zsh_us.ps: zsh.dvi
|
|
|
|
|
$(DVIPS) -t letter -o $@ zsh.dvi
|
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
a4_ps: zsh_a4.ps
|
|
|
|
|
.PHONY: a4_ps
|
|
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
|
zsh_a4.ps: zsh.dvi
|
|
|
|
|
$(DVIPS) -t a4 -o $@ zsh.dvi
|
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
html: zsh_toc.html
|
|
|
|
|
.PHONY: html
|
|
|
|
|
|
2014-08-11 20:42:38 +02:00
|
|
|
|
zsh_toc.html: $(sdir)/zsh.texi texi2html.conf
|
2002-05-12 20:51:46 +02:00
|
|
|
|
$(TEXI2HTML) $(sdir)/zsh.texi
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
zshall.1: zsh.yo
|
2005-04-24 20:38:01 +02:00
|
|
|
|
@case $@ in \
|
2002-05-12 20:51:46 +02:00
|
|
|
|
*/*) target=$@ ;; \
|
|
|
|
|
*) target=$(sdir)/$@ ;; \
|
|
|
|
|
esac; \
|
2005-05-06 17:52:59 +02:00
|
|
|
|
case '$(YODL)' in :*) touch $$target ;; *) \
|
2005-04-24 20:38:01 +02:00
|
|
|
|
echo $(YODL) -o $$target -I$(sdir) -DZSHALL -w zman.yo version.yo zsh.yo; \
|
2002-05-12 20:51:46 +02:00
|
|
|
|
$(YODL) -I$(sdir) -DZSHALL -w zman.yo version.yo zsh.yo | sed -e '1s/\\-/-/g' -e '/^\.'\''/d' > $$target \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
;; esac; \
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2011-04-30 22:52:22 +02:00
|
|
|
|
../META-FAQ: META-FAQ.yo Zsh/metafaq.yo Zsh/ftp_sites.yo
|
2005-05-06 17:52:59 +02:00
|
|
|
|
case '$(YODL)' in :*) touch $(sdir_top)/META-FAQ ;; *) \
|
2011-04-30 22:52:22 +02:00
|
|
|
|
$(YODL) -I$(sdir) META-FAQ.yo | sed -e '/NEXTLINE/N' -e '/DELLINE/d' -e '/^SECTHEAD$$/{N;s/^SECTHEAD.//;h;s/./-/g;H;g;}' -e 's/ *$$//' -e '/comment(.*)/d' > $(sdir_top)/META-FAQ \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
;; esac
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
$(YODLDOC): version.yo
|
|
|
|
|
|
2002-05-12 20:51:46 +02:00
|
|
|
|
$(sdir)/zsh.texi: $(YODLSRC)
|
2000-04-19 16:10:56 +02:00
|
|
|
|
|
|
|
|
|
man: $(MAN)
|
|
|
|
|
.PHONY: man
|
|
|
|
|
|
2013-11-25 09:11:36 +01:00
|
|
|
|
runhelp: help.txt
|
|
|
|
|
.PHONY: runhelp
|
|
|
|
|
|
|
|
|
|
help.txt: zshbuiltins.1
|
|
|
|
|
@-rm -f $(sdir)/help.txt $(sdir)/help/*
|
|
|
|
|
perl $(sdir_top)/Util/helpfiles \
|
2013-11-12 18:41:40 +01:00
|
|
|
|
$(sdir)/zshbuiltins.1 $(sdir)/help $(sdir)/help.txt \
|
2014-02-02 22:19:25 +01:00
|
|
|
|
|| rm -f $(sdir)/help.txt $(sdir)/help/*
|
|
|
|
|
touch $(sdir)/$@
|
2013-11-12 18:41:40 +01:00
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
$(MAN): zmacros.yo zman.yo
|
|
|
|
|
|
|
|
|
|
zsh.1 zshall.1: Zsh/intro.yo Zsh/metafaq.yo Zsh/invoke.yo Zsh/files.yo \
|
2011-04-30 22:52:22 +02:00
|
|
|
|
Zsh/filelist.yo Zsh/filelist.yo Zsh/seealso.yo \
|
2012-08-13 10:52:13 +02:00
|
|
|
|
Zsh/ftp_sites.yo Zsh/compat.yo Zsh/restricted.yo
|
2000-04-19 16:10:56 +02:00
|
|
|
|
|
|
|
|
|
zshbuiltins.1: Zsh/builtins.yo
|
|
|
|
|
|
2006-12-01 11:23:06 +01:00
|
|
|
|
zshcalsys.1: Zsh/calsys.yo
|
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
zshcompctl.1: Zsh/compctl.yo
|
|
|
|
|
|
|
|
|
|
zshcompwid.1: Zsh/compwid.yo
|
|
|
|
|
|
|
|
|
|
zshcompsys.1: Zsh/compsys.yo
|
|
|
|
|
|
2000-09-04 23:10:29 +02:00
|
|
|
|
zshcontrib.1: Zsh/contrib.yo
|
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
zshexpn.1: Zsh/expn.yo
|
|
|
|
|
|
|
|
|
|
zshmisc.1: Zsh/grammar.yo Zsh/redirect.yo Zsh/exec.yo Zsh/func.yo \
|
|
|
|
|
Zsh/jobs.yo Zsh/arith.yo Zsh/cond.yo Zsh/compat.yo \
|
2012-08-13 10:52:13 +02:00
|
|
|
|
Zsh/prompt.yo
|
2000-04-19 16:10:56 +02:00
|
|
|
|
|
|
|
|
|
zshmodules.1: Zsh/modules.yo Zsh/modlist.yo Zsh/modmenu.yo $(MODDOCSRC)
|
|
|
|
|
|
|
|
|
|
zshoptions.1: Zsh/options.yo
|
|
|
|
|
|
|
|
|
|
zshparam.1: Zsh/params.yo
|
|
|
|
|
|
2005-10-21 11:51:54 +02:00
|
|
|
|
zshroadmap.1: Zsh/roadmap.yo
|
|
|
|
|
|
2003-02-06 13:21:49 +01:00
|
|
|
|
zshtcpsys.1: Zsh/tcpsys.yo
|
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
zshzftpsys.1: Zsh/zftpsys.yo
|
|
|
|
|
|
|
|
|
|
zshzle.1: Zsh/zle.yo
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2008-10-30 13:09:18 +01:00
|
|
|
|
# This should depend on config.status to get the /etc files right
|
|
|
|
|
# but that would introduce a dependency on Yodl in shipped versions
|
|
|
|
|
# of the shell that we want to avoid.
|
1999-04-15 20:05:35 +02:00
|
|
|
|
version.yo: $(sdir_top)/Config/version.mk
|
|
|
|
|
( \
|
2006-03-20 12:06:22 +01:00
|
|
|
|
echo 'IFDEF(INCWSLEVEL)(INCWSLEVEL())(STARTDEF())'; \
|
1999-04-15 20:05:35 +02:00
|
|
|
|
echo 'def(version)(0)('$(VERSION)')'; \
|
|
|
|
|
echo 'def(date)(0)('$(VERSION_DATE)')'; \
|
2008-10-30 13:09:18 +01:00
|
|
|
|
echo 'def(zshenv)(0)(@zshenv@)'; \
|
|
|
|
|
echo 'def(zprofile)(0)(@zprofile@)'; \
|
|
|
|
|
echo 'def(zshrc)(0)(@zshrc@)'; \
|
|
|
|
|
echo 'def(zlogin)(0)(@zlogin@)'; \
|
|
|
|
|
echo 'def(zlogout)(0)(@zlogout@)'; \
|
2006-03-20 12:06:22 +01:00
|
|
|
|
echo 'IFDEF(DECWSLEVEL)(DECWSLEVEL())(ENDDEF())#' | tr '#' '\\'; \
|
2002-05-12 20:51:46 +02:00
|
|
|
|
) > $(sdir)/version.yo
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2014-01-19 16:24:40 +01:00
|
|
|
|
texi2html.conf: $(sdir_top)/Config/version.mk
|
|
|
|
|
echo '$$PRE_BODY_CLOSE = "<font size=\"-1\">Zsh version $(VERSION), released on $(VERSION_DATE).</font>";' \
|
2014-08-11 20:42:38 +02:00
|
|
|
|
> $@
|
2014-01-19 16:24:40 +01:00
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
Zsh/modlist.yo: $(MODDOCSRC)
|
|
|
|
|
( \
|
|
|
|
|
echo "startitem()"; \
|
|
|
|
|
for modfile in $(MODDOCSRC); do \
|
2000-06-08 16:36:24 +02:00
|
|
|
|
sed -n -e '1{s|^COMMENT(!MOD!\(.*\)$$|item(tt(\1))(|;p;d;}' \
|
2000-06-02 19:22:50 +02:00
|
|
|
|
-e '/^!MOD!)$$/q;p' \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
< $(sdir)/$$modfile; \
|
|
|
|
|
echo ")"; \
|
|
|
|
|
done; \
|
|
|
|
|
echo "enditem()"; \
|
|
|
|
|
echo "includefile(Zsh/modmenu.yo)"; \
|
|
|
|
|
set '' $(MODDOCSRC); \
|
|
|
|
|
mod1= mod2= mod3=; \
|
|
|
|
|
test ".$$2" = . || \
|
|
|
|
|
mod2=`sed -n '1{s|^COMMENT(!MOD!||;p;q;}' < $(sdir)/$$2`; \
|
|
|
|
|
while test ".$$2" != .; do \
|
|
|
|
|
mod3=; \
|
|
|
|
|
test ".$$3" = . || \
|
|
|
|
|
mod3=`sed -n '1{s|^COMMENT(!MOD!||;p;q;}' < $(sdir)/$$3`; \
|
|
|
|
|
echo "texinode(The $$mod2 Module)($${mod3:+The $$mod3 Module})($${mod1:+The $$mod1 Module})(Zsh Modules)"; \
|
|
|
|
|
echo "sect(The $$mod2 Module)"; \
|
|
|
|
|
echo "includefile($${2})"; \
|
|
|
|
|
shift; \
|
|
|
|
|
mod1=$$mod2; \
|
|
|
|
|
mod2=$$mod3; \
|
|
|
|
|
done \
|
2002-05-12 20:51:46 +02:00
|
|
|
|
) > $(sdir)/Zsh/modlist.yo
|
2000-04-19 16:10:56 +02:00
|
|
|
|
|
|
|
|
|
Zsh/modmenu.yo: $(MODDOCSRC)
|
|
|
|
|
( \
|
|
|
|
|
echo "startmenu()"; \
|
|
|
|
|
for modfile in $(MODDOCSRC); do \
|
|
|
|
|
sed -n '1{s|^COMMENT(!MOD!\(.*\)$$|menu(The \1 Module)|;p;q;}' \
|
|
|
|
|
< $(sdir)/$$modfile; \
|
|
|
|
|
done; \
|
|
|
|
|
echo "endmenu()" \
|
2002-05-12 20:51:46 +02:00
|
|
|
|
) > $(sdir)/Zsh/modmenu.yo
|
2000-04-19 16:10:56 +02:00
|
|
|
|
|
|
|
|
|
Zsh/manmodmenu.yo: $(MODDOCSRC)
|
|
|
|
|
( \
|
|
|
|
|
for modfile in $(MODDOCSRC); do \
|
|
|
|
|
sed -n '1{s|^COMMENT(!MOD!\(.*\)$$|menu(The \1 Module)|;p;q;}' \
|
|
|
|
|
< $(sdir)/$$modfile; \
|
|
|
|
|
done \
|
2002-05-12 20:51:46 +02:00
|
|
|
|
) > $(sdir)/Zsh/manmodmenu.yo
|
2000-04-19 16:10:56 +02:00
|
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
|
# ========== DEPENDENCIES FOR INSTALLING ==========
|
|
|
|
|
|
2013-11-12 18:41:40 +01:00
|
|
|
|
# install just installs the manual and runhelp pages
|
|
|
|
|
install: install.man install.runhelp
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: install
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2013-11-12 18:41:40 +01:00
|
|
|
|
# uninstall just uninstalls the manual and runhelp pages
|
|
|
|
|
uninstall: uninstall.man uninstall.runhelp
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: uninstall
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
# install man pages, creating install directory if necessary
|
2000-04-19 16:10:56 +02:00
|
|
|
|
install.man: man
|
2001-05-20 12:59:27 +02:00
|
|
|
|
${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(mandir)/man1
|
1999-04-15 20:05:35 +02:00
|
|
|
|
for file in $(MAN); do \
|
2008-04-26 21:48:26 +02:00
|
|
|
|
test -s $(sdir)/$$file || exit 1; \
|
2002-05-12 20:51:46 +02:00
|
|
|
|
$(INSTALL_DATA) $(sdir)/$$file $(DESTDIR)$(mandir)/man1/`echo $$file | sed 's|zsh|$(tzsh)|'` || exit 1; \
|
1999-04-15 20:05:35 +02:00
|
|
|
|
done
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: install.man
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2013-11-12 18:41:40 +01:00
|
|
|
|
# install runhelp pages, creating install directory if necessary
|
2013-11-25 09:11:36 +01:00
|
|
|
|
install.runhelp: $(runhelp)
|
2013-11-12 18:41:40 +01:00
|
|
|
|
if test x"$(runhelpdir)" != x""; then \
|
|
|
|
|
${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(runhelpdir); \
|
|
|
|
|
$(INSTALL_DATA) $(sdir)/help/* $(DESTDIR)$(runhelpdir); \
|
|
|
|
|
while read from to; do \
|
|
|
|
|
rm -f $(DESTDIR)$(runhelpdir)/$$to || : ; \
|
|
|
|
|
$(LN_S) $$from $(DESTDIR)$(runhelpdir)/$$to; \
|
|
|
|
|
done < $(sdir)/help.txt; \
|
|
|
|
|
fi
|
|
|
|
|
.PHONY: install.runhelp
|
|
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
|
# install info pages, creating install directory if necessary
|
2000-04-19 16:10:56 +02:00
|
|
|
|
install.info: texi
|
2001-05-20 12:59:27 +02:00
|
|
|
|
${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(infodir)
|
2000-04-19 16:10:56 +02:00
|
|
|
|
rm -rf infodir
|
|
|
|
|
mkdir infodir
|
|
|
|
|
if ( \
|
|
|
|
|
sed '/^@setfilename/s|zsh|$(tzsh)|' \
|
2002-05-12 20:51:46 +02:00
|
|
|
|
< $(sdir)/zsh.texi > infodir/tzsh.texi && \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
(cd infodir && $(MAKEINFO) tzsh.texi) && \
|
|
|
|
|
for file in infodir/$(tzsh).info*; do \
|
|
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(infodir) || exit 1; \
|
|
|
|
|
done \
|
|
|
|
|
); then \
|
2000-07-03 18:51:18 +02:00
|
|
|
|
if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
|
2006-04-11 19:39:28 +02:00
|
|
|
|
install-info --info-dir=$(DESTDIR)$(infodir) \
|
2001-08-12 21:43:13 +02:00
|
|
|
|
$(DESTDIR)$(infodir)/$(tzsh).info; \
|
2000-07-03 18:51:18 +02:00
|
|
|
|
else true; fi; \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
rm -rf infodir; \
|
|
|
|
|
exit 0; \
|
|
|
|
|
else \
|
|
|
|
|
rm -rf infodir; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi
|
|
|
|
|
.PHONY: install.info
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
# uninstall man pages
|
|
|
|
|
uninstall.man:
|
|
|
|
|
for file in $(MAN); do \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
rm -f $(DESTDIR)$(mandir)/man1/`echo $$file | sed 's|zsh|$(tzsh)|'`; \
|
1999-04-15 20:05:35 +02:00
|
|
|
|
done
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: uninstall.man
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2013-11-12 18:41:40 +01:00
|
|
|
|
# uninstall runhelp pages
|
|
|
|
|
uninstall.runhelp:
|
|
|
|
|
test x"$(runhelpdir)" = x"" || rm -rf -- $(DESTDIR)$(runhelpdir)
|
|
|
|
|
.PHONY: uninstall.runhelp
|
|
|
|
|
|
1999-04-15 20:05:35 +02:00
|
|
|
|
# uninstall info pages
|
|
|
|
|
uninstall.info:
|
2000-04-19 16:10:56 +02:00
|
|
|
|
rm -f $(DESTDIR)$(infodir)/$(tzsh).info
|
|
|
|
|
rm -f $(DESTDIR)$(infodir)/$(tzsh).info-[1-9]*
|
|
|
|
|
.PHONY: uninstall.info
|
|
|
|
|
|
|
|
|
|
# install HTML manual
|
|
|
|
|
install.html: html
|
2001-05-20 12:59:27 +02:00
|
|
|
|
${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(htmldir)
|
2009-05-25 18:09:40 +02:00
|
|
|
|
for file in *.html; do \
|
2000-04-19 16:10:56 +02:00
|
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(htmldir) || exit 1; \
|
|
|
|
|
done
|
|
|
|
|
.PHONY: install.html
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
# uninstall HTML manual
|
|
|
|
|
uninstall.html:
|
2009-05-25 18:09:40 +02:00
|
|
|
|
rm -f $(DESTDIR)$(htmldir)/*.html
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: uninstall.html
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
# ========== DEPENDENCIES FOR CLEANUP ==========
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
clean-here:
|
2005-07-31 20:03:59 +02:00
|
|
|
|
rm -f *.html *.info* *.dvi *.ps *.pdf
|
1999-04-15 20:05:35 +02:00
|
|
|
|
rm -f *.aux *.cp *.cps *.fn *.fns *.ky *.log
|
|
|
|
|
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
|
2000-04-19 16:10:56 +02:00
|
|
|
|
rm -rf infodir
|
2014-01-19 16:24:40 +01:00
|
|
|
|
rm -f texi2html.conf
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: clean-here
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
distclean-here: clean-here
|
1999-04-15 20:05:35 +02:00
|
|
|
|
rm -f Makefile
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: distclean-here
|
|
|
|
|
|
|
|
|
|
realclean-here: distclean-here
|
2002-05-12 20:51:46 +02:00
|
|
|
|
cd $(sdir) && rm -f Zsh/modlist.yo Zsh/modmenu.yo Zsh/manmodmenu.yo
|
|
|
|
|
cd $(sdir) && rm -f version.yo ../META-FAQ zsh.texi $(MAN)
|
2013-11-18 19:06:33 +01:00
|
|
|
|
cd $(sdir) && rm -f help.txt help/*
|
2000-04-19 16:10:56 +02:00
|
|
|
|
.PHONY: realclean-here
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
@CLEAN_MK@
|
1999-04-15 20:05:35 +02:00
|
|
|
|
|
|
|
|
|
# ========== DEPENDENCIES FOR MAINTENANCE ==========
|
|
|
|
|
|
2000-04-19 16:10:56 +02:00
|
|
|
|
@CONFIG_MK@
|