#
# Copyright (c) 1986 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
# @(#)Makefile 6.3 (Berkeley) 5/14/86
#
# $Header: Makefile 1.4 83/07/21 21:27:16 sklower Exp $
# makefile for the franz lisp manual
#
# sources: ${MacroSrc}: macros for the franz documents
# ${TMacSrc}: macros for typesetting franz documents
# ch1.n intro and description of types
# ch2.n data structure access
# ch3.n on arithmetic functions.
# ch4.n special functions.
# ch5.n i/o
# ch6.n system functions
# ch7.n reader
# ch8.n functions and macros
# ch9.n arrays
# ch10.n exception handling
# ch11.n trace package
# ch12.n liszt
# ch13.n cmu top level
# ch14.n stepper
# ch15.n fixit package
# ch16.n lisp editor
# ch17.n hash tables
# chb.n special symbols
# chc.n short subjects
SUFFIXES: .n .t .x .v .r .rx .q .qx .sp
# the syntax's have this meaning:
# .n nroff/troff source file
# .t troff output file, can be vpr -t 'ed
# .x index file from a troff run, when collected and run through troff
# again, an index is produced.
# .v this file never exists, but asking for it will cause a .t file to
# be created and then vpr'ed. the .t file will not be deleted.
# .p this file also never exists, but asking for it will cause TROFF
# (usually vtroff or itroff) to be run directly on the file, leaving
# no .t around. This is used in /usr/doc for people who want to
# run off a manual and are too lazy to read this makefile.
# .r nroff output file.
# .rx special index output from nroff run. These files should be catted
# together and then left around for lisp to read when given the help
# command.
#
# .q nroff output file compatible with model 37
# .qx index file for .q files.
#
# .sp spell errors
#
# make install will install the nroff versions of the manual in the
# directory (LibDir/manual) where the auxfns0.l help command can find them.
#
LibDir = /usr/lib/lisp
CcodeDir = ../franz
CopyTo = /dev/null
TROFF= ditroff
TBL= dtbl
NROFF= nroff
PRINTER = -Pdp
O =
Append = ${LibDir}/append
# Rmt = is unecessary; you can say, make rall NROFF="'dali nroff'".
# better to just copy the doc directory to the remote machine and
# run it all there.
#--- Sources:
# We use the suffixes to tell make how to make a file. Thus
# we only specify the root and let the append function add the
# appropriate suffix.
findex: ${Append}
make `${Append} .x ${RootGenSrc}`
echo ".Ib" > index
sort +3 -o index index `${Append} .x ${RootGenSrc}`
sed -f indexsed index > indexx
${Rmt} ${TROFF} -me ${MacroSrc} indexx
index.t:
make `${Append} .x ${RootGenSrc}`
echo ".Ib" > index
sort +3 -o index index `${Append} .x ${RootGenSrc}`
sed -f indexsed index > indexx
${TROFF} -me -x -t ${MacroSrc} indexx > index.t
pindex: ${Append}
make `${Append} .x ${RootGenSrc}`
echo ".Ib" > index
sort +3 -o index index `${Append} .x ${RootGenSrc}`
sed -f indexsed index > indexx
${TROFF} -me ${MacroSrc} indexx
# simple table of contents, just a listing of which function is
# documented in which chapter
tofc:
egrep "^.Lc|^.Lf|^.Lx|^.sh" `${Append} .n ${RootGenSrc}` > tofc