head	2.47;
access;
symbols
	fourth_edition:2.44;
locks
	grog:2.47; strict;
comment	@# @;


2.47
date	2006.02.23.23.16.43;	author grog;	state Exp;
branches;
next	2.46;

2.46
date	2005.08.23.01.54.49;	author grog;	state Exp;
branches;
next	2.45;

2.45
date	2003.06.29.05.14.34;	author grog;	state Exp;
branches;
next	2.44;

2.44
date	2003.04.02.07.39.32;	author grog;	state Exp;
branches;
next	2.43;

2.43
date	2003.03.29.05.14.02;	author grog;	state Exp;
branches;
next	2.42;

2.42
date	2003.03.07.02.31.17;	author grog;	state Exp;
branches;
next	2.41;

2.41
date	2003.01.18.04.13.28;	author grog;	state Exp;
branches;
next	2.40;

2.40
date	2003.01.07.03.39.36;	author grog;	state Exp;
branches;
next	2.39;

2.39
date	2003.01.02.01.03.29;	author grog;	state Exp;
branches;
next	2.38;

2.38
date	2002.12.22.04.24.03;	author grog;	state Exp;
branches;
next	2.37;

2.37
date	2002.11.22.07.46.40;	author grog;	state Exp;
branches;
next	2.36;

2.36
date	2002.11.13.03.50.12;	author grog;	state Exp;
branches;
next	2.35;

2.35
date	2002.11.04.07.00.34;	author grog;	state Exp;
branches;
next	2.34;

2.34
date	2002.10.29.07.29.13;	author grog;	state Exp;
branches;
next	2.33;

2.33
date	2002.10.29.06.10.08;	author grog;	state Exp;
branches;
next	2.32;

2.32
date	2002.10.29.06.09.40;	author grog;	state Exp;
branches;
next	2.31;

2.31
date	2002.10.29.06.08.56;	author grog;	state Exp;
branches;
next	2.30;

2.30
date	2002.10.29.06.08.23;	author grog;	state Exp;
branches;
next	2.29;

2.29
date	2002.10.27.00.44.23;	author grog;	state Exp;
branches;
next	2.28;

2.28
date	2002.10.13.07.16.47;	author grog;	state Exp;
branches;
next	2.27;

2.27
date	2002.06.16.03.11.27;	author grog;	state Exp;
branches;
next	2.26;

2.26
date	2002.06.12.06.28.45;	author grog;	state Exp;
branches;
next	2.25;

2.25
date	2002.05.05.02.36.40;	author grog;	state Exp;
branches;
next	2.24;

2.24
date	2002.04.14.07.00.33;	author grog;	state Exp;
branches;
next	2.23;

2.23
date	2001.12.22.02.22.48;	author grog;	state Exp;
branches;
next	2.22;

2.22
date	2001.12.20.02.53.12;	author grog;	state Exp;
branches;
next	2.21;

2.21
date	2000.10.07.23.25.25;	author grog;	state Exp;
branches;
next	2.20;

2.20
date	99.07.05.23.04.26;	author grog;	state Exp;
branches;
next	2.19;

2.19
date	99.05.16.08.40.05;	author grog;	state Exp;
branches;
next	2.18;

2.18
date	99.05.14.07.54.17;	author grog;	state Exp;
branches;
next	2.17;

2.17
date	99.05.12.01.09.45;	author grog;	state Exp;
branches;
next	2.16;

2.16
date	99.05.08.05.26.16;	author grog;	state Exp;
branches;
next	2.15;

2.15
date	99.02.15.02.47.35;	author grog;	state Exp;
branches;
next	2.14;

2.14
date	98.07.20.23.26.10;	author grog;	state Exp;
branches;
next	2.13;

2.13
date	98.07.20.23.13.43;	author grog;	state Exp;
branches;
next	2.12;

2.12
date	98.07.20.08.58.51;	author grog;	state Exp;
branches;
next	2.11;

2.11
date	98.03.25.22.39.20;	author grog;	state Exp;
branches;
next	2.10;

2.10
date	98.02.03.02.40.40;	author grog;	state Exp;
branches;
next	2.9;

2.9
date	98.02.03.00.04.58;	author grog;	state Exp;
branches;
next	2.8;

2.8
date	97.12.19.02.28.06;	author grog;	state Exp;
branches;
next	2.7;

2.7
date	97.12.16.07.42.11;	author grog;	state Exp;
branches;
next	2.6;

2.6
date	97.12.16.05.53.20;	author grog;	state Exp;
branches;
next	2.5;

2.5
date	97.12.16.04.58.55;	author grog;	state Exp;
branches;
next	2.4;

2.4
date	97.12.16.01.13.16;	author grog;	state Exp;
branches;
next	2.3;

2.3
date	97.12.15.23.49.58;	author grog;	state Exp;
branches;
next	2.2;

2.2
date	97.12.15.07.26.49;	author grog;	state Exp;
branches;
next	2.1;

2.1
date	97.12.07.08.34.53;	author grog;	state Exp;
branches;
next	1.116;

1.116
date	97.12.02.09.10.10;	author grog;	state Exp;
branches;
next	1.115;

1.115
date	97.11.29.06.46.39;	author grog;	state Exp;
branches;
next	1.114;

1.114
date	97.11.29.03.31.00;	author grog;	state Exp;
branches;
next	1.113;

1.113
date	97.11.28.01.15.45;	author grog;	state Exp;
branches;
next	1.112;

1.112
date	97.11.27.01.35.59;	author grog;	state Exp;
branches;
next	1.111;

1.111
date	97.11.25.07.59.57;	author grog;	state Exp;
branches;
next	1.110;

1.110
date	97.11.23.22.26.22;	author grog;	state Exp;
branches;
next	1.109;

1.109
date	97.11.07.04.48.16;	author grog;	state Exp;
branches;
next	1.108;

1.108
date	97.11.04.08.07.39;	author grog;	state Exp;
branches;
next	1.107;

1.107
date	97.11.04.06.14.49;	author grog;	state Exp;
branches;
next	1.106;

1.106
date	97.11.03.05.19.13;	author grog;	state Exp;
branches;
next	1.105;

1.105
date	97.11.03.02.38.11;	author grog;	state Exp;
branches;
next	1.104;

1.104
date	97.11.01.08.22.01;	author grog;	state Exp;
branches;
next	1.103;

1.103
date	97.11.01.07.33.32;	author grog;	state Exp;
branches;
next	1.102;

1.102
date	97.10.31.06.37.39;	author grog;	state Exp;
branches;
next	1.101;

1.101
date	97.10.28.04.32.18;	author grog;	state Exp;
branches;
next	1.100;

1.100
date	97.10.26.04.58.28;	author grog;	state Exp;
branches;
next	1.99;

1.99
date	97.10.25.08.27.42;	author grog;	state Exp;
branches;
next	1.98;

1.98
date	97.10.16.04.58.20;	author grog;	state Exp;
branches;
next	1.97;

1.97
date	97.10.13.02.37.20;	author grog;	state Exp;
branches;
next	1.96;

1.96
date	97.10.10.07.48.04;	author grog;	state Exp;
branches;
next	1.95;

1.95
date	97.10.10.04.34.05;	author grog;	state Exp;
branches;
next	1.94;

1.94
date	97.10.09.08.49.24;	author grog;	state Exp;
branches;
next	1.93;

1.93
date	97.10.08.10.06.38;	author grog;	state Exp;
branches;
next	1.92;

1.92
date	97.10.08.09.10.39;	author grog;	state Exp;
branches;
next	1.91;

1.91
date	97.10.07.05.44.21;	author grog;	state Exp;
branches;
next	1.90;

1.90
date	97.10.06.07.23.19;	author grog;	state Exp;
branches;
next	1.89;

1.89
date	97.10.06.06.49.51;	author grog;	state Exp;
branches;
next	1.88;

1.88
date	97.10.04.06.54.35;	author grog;	state Exp;
branches;
next	1.87;

1.87
date	97.10.02.02.11.05;	author grog;	state Exp;
branches;
next	1.86;

1.86
date	97.10.01.03.51.17;	author grog;	state Exp;
branches;
next	1.85;

1.85
date	97.09.30.06.57.26;	author grog;	state Exp;
branches;
next	1.84;

1.84
date	97.09.25.02.11.08;	author grog;	state Exp;
branches;
next	1.83;

1.83
date	97.09.22.03.54.31;	author grog;	state Exp;
branches;
next	1.82;

1.82
date	97.09.20.03.03.57;	author grog;	state Exp;
branches;
next	1.81;

1.81
date	97.09.19.09.31.16;	author grog;	state Exp;
branches;
next	1.80;

1.80
date	97.09.19.09.29.48;	author grog;	state Exp;
branches;
next	1.79;

1.79
date	97.09.19.08.15.09;	author grog;	state Exp;
branches;
next	1.78;

1.78
date	97.09.18.06.13.21;	author grog;	state Exp;
branches;
next	1.77;

1.77
date	97.09.17.06.43.15;	author grog;	state Exp;
branches;
next	1.76;

1.76
date	97.09.16.03.23.08;	author grog;	state Exp;
branches;
next	1.75;

1.75
date	97.09.16.02.40.31;	author grog;	state Exp;
branches;
next	1.74;

1.74
date	97.09.09.03.12.38;	author grog;	state Exp;
branches;
next	1.73;

1.73
date	97.09.09.01.33.23;	author grog;	state Exp;
branches;
next	1.72;

1.72
date	97.09.09.01.28.27;	author grog;	state Exp;
branches;
next	1.71;

1.71
date	97.09.03.00.54.44;	author grog;	state Exp;
branches;
next	1.70;

1.70
date	97.08.30.07.58.26;	author grog;	state Exp;
branches;
next	1.69;

1.69
date	97.08.30.07.44.21;	author grog;	state Exp;
branches;
next	1.68;

1.68
date	97.07.06.09.24.51;	author grog;	state Exp;
branches;
next	1.67;

1.67
date	97.06.21.11.33.08;	author grog;	state Exp;
branches;
next	1.66;

1.66
date	97.06.21.11.29.55;	author grog;	state Exp;
branches;
next	1.65;

1.65
date	97.06.21.11.25.35;	author grog;	state Exp;
branches;
next	1.64;

1.64
date	97.06.21.11.22.45;	author grog;	state Exp;
branches;
next	1.63;

1.63
date	97.06.08.06.40.42;	author grog;	state Exp;
branches;
next	1.62;

1.62
date	97.06.08.06.24.27;	author grog;	state Exp;
branches;
next	1.61;

1.61
date	97.04.22.15.24.37;	author grog;	state Exp;
branches;
next	1.60;

1.60
date	96.12.06.16.45.22;	author grog;	state Exp;
branches;
next	1.59;

1.59
date	96.11.28.11.21.43;	author grog;	state Exp;
branches;
next	1.58;

1.58
date	96.11.04.13.12.19;	author grog;	state Exp;
branches;
next	1.57;

1.57
date	96.07.17.08.03.44;	author grog;	state Exp;
branches;
next	1.56;

1.56
date	96.07.03.10.47.39;	author grog;	state Exp;
branches;
next	1.55;

1.55
date	96.07.01.12.33.00;	author grog;	state Exp;
branches;
next	1.54;

1.54
date	96.06.30.15.47.39;	author grog;	state Exp;
branches;
next	1.53;

1.53
date	96.06.30.14.09.02;	author grog;	state Exp;
branches;
next	1.52;

1.52
date	96.06.30.12.14.18;	author grog;	state Exp;
branches;
next	1.51;

1.51
date	96.06.30.12.10.03;	author grog;	state Exp;
branches;
next	1.50;

1.50
date	96.06.30.11.10.19;	author grog;	state Exp;
branches;
next	1.49;

1.49
date	96.06.26.10.50.40;	author grog;	state Exp;
branches;
next	1.48;

1.48
date	96.06.26.10.45.40;	author grog;	state Exp;
branches;
next	1.47;

1.47
date	96.06.26.08.58.13;	author grog;	state Exp;
branches;
next	1.46;

1.46
date	96.05.12.14.27.26;	author grog;	state Exp;
branches;
next	1.45;

1.45
date	96.05.11.17.10.58;	author grog;	state Exp;
branches;
next	1.44;

1.44
date	96.05.11.12.46.13;	author grog;	state Exp;
branches;
next	1.43;

1.43
date	96.05.09.10.20.32;	author grog;	state Exp;
branches;
next	1.42;

1.42
date	96.05.05.11.32.59;	author grog;	state Exp;
branches;
next	1.41;

1.41
date	96.05.02.13.00.23;	author grog;	state Exp;
branches;
next	1.40;

1.40
date	96.05.01.12.11.24;	author grog;	state Exp;
branches;
next	1.39;

1.39
date	96.05.01.11.55.56;	author grog;	state Exp;
branches;
next	1.38;

1.38
date	96.04.30.11.10.59;	author grog;	state Exp;
branches;
next	1.37;

1.37
date	96.04.29.09.21.39;	author grog;	state Exp;
branches;
next	1.36;

1.36
date	96.04.11.11.37.23;	author grog;	state Exp;
branches;
next	1.35;

1.35
date	96.04.08.12.00.03;	author grog;	state Exp;
branches;
next	1.34;

1.34
date	96.04.06.10.49.05;	author grog;	state Exp;
branches;
next	1.33;

1.33
date	96.02.24.16.23.33;	author grog;	state Exp;
branches;
next	1.32;

1.32
date	96.02.24.15.23.30;	author grog;	state Exp;
branches;
next	1.31;

1.31
date	96.02.24.13.44.54;	author grog;	state Exp;
branches;
next	1.30;

1.30
date	96.02.24.13.33.51;	author grog;	state Exp;
branches;
next	1.29;

1.29
date	96.02.24.11.46.36;	author grog;	state Exp;
branches;
next	1.28;

1.28
date	96.02.19.12.07.11;	author grog;	state Exp;
branches;
next	1.27;

1.27
date	96.02.17.15.25.11;	author grog;	state Exp;
branches;
next	1.26;

1.26
date	96.02.17.13.10.38;	author grog;	state Exp;
branches;
next	1.25;

1.25
date	96.02.17.07.32.38;	author grog;	state Exp;
branches;
next	1.24;

1.24
date	96.02.04.17.45.06;	author grog;	state Exp;
branches;
next	1.23;

1.23
date	96.01.28.13.44.14;	author grog;	state Exp;
branches;
next	1.22;

1.22
date	96.01.21.16.51.23;	author grog;	state Exp;
branches;
next	1.21;

1.21
date	96.01.06.16.44.20;	author grog;	state Exp;
branches;
next	1.20;

1.20
date	96.01.06.12.08.48;	author grog;	state Exp;
branches;
next	1.19;

1.19
date	96.01.04.14.55.43;	author grog;	state Exp;
branches;
next	1.18;

1.18
date	96.01.04.11.55.25;	author grog;	state Exp;
branches;
next	1.17;

1.17
date	95.12.30.11.25.32;	author grog;	state Exp;
branches;
next	1.16;

1.16
date	95.12.30.11.21.43;	author grog;	state Exp;
branches;
next	1.15;

1.15
date	95.12.30.10.57.10;	author grog;	state Exp;
branches;
next	1.14;

1.14
date	95.12.22.10.51.46;	author grog;	state Exp;
branches;
next	1.13;

1.13
date	95.12.16.16.31.20;	author grog;	state Exp;
branches;
next	1.12;

1.12
date	95.12.15.06.51.19;	author grog;	state Exp;
branches;
next	1.11;

1.11
date	95.12.13.10.58.48;	author grog;	state Exp;
branches;
next	1.10;

1.10
date	95.12.12.11.37.07;	author grog;	state Exp;
branches;
next	1.9;

1.9
date	95.12.05.18.09.19;	author grog;	state Exp;
branches;
next	1.8;

1.8
date	95.11.18.14.18.45;	author grog;	state Exp;
branches;
next	1.7;

1.7
date	95.11.18.14.16.29;	author grog;	state Exp;
branches;
next	1.6;

1.6
date	95.11.18.14.13.27;	author grog;	state Exp;
branches;
next	1.5;

1.5
date	95.11.18.11.06.15;	author grog;	state Exp;
branches;
next	1.4;

1.4
date	95.11.14.14.49.01;	author grog;	state Exp;
branches;
next	1.3;

1.3
date	95.11.11.13.31.30;	author grog;	state Exp;
branches;
next	1.2;

1.2
date	95.11.11.13.20.37;	author grog;	state Exp;
branches;
next	1.1;

1.1
date	95.11.11.13.15.34;	author grog;	state Exp;
branches;
next	;


desc
@Makefile
@


2.47
log
@Add 10th anniversary preface.
Remove Chapter hierarchy.
Change main entry to build PDF version.
@
text
@# Makefile for "The Complete FreeBSD" and related documents.
# Greg Lehey, LEMIS
#
# $Id: Makefile,v 2.46 2005/08/23 01:54:49 grog Exp grog $
#

# XXX while this is in the wrong place
F	=	/home/Book/FreeBSD-4
GS	=	gs

# The symbolic tag of the currently printed edition, used
# for creating errata
EDITION = fourth_edition

# Set this for debugging *roff macros
ROFFDEBUG = -b

# HEIGHT is the real height of the paper + .2" (XXX until we fix the macros)
HEIGHT.small = 9i
HEIGHT.long = 9i
HEIGHT.network = 9i
HEIGHT.bisdn = 10i
HEIGHT.ii = 10i
HEIGHT.workshop = 11i
HEIGHT.complete = 9.1875i
# XXX kludge for strange differences between individual chapters and entire book.
# XHEIGHT.complete = 9.33i
XHEIGHT.complete = 9.2i
HEIGHT.kernel = 11.9i
# For comparison with last edition HEIGHT.complete = 9i

# Margin width
MARGINS = 2
# real paper width less margins, which is now only 5.875", dammit
WIDTH.small = 4.475i
WIDTH.long = 4.475i
WIDTH.network = 4.475i
WIDTH.bisdn = 5.8i
WIDTH.workshop = 5.8i
# Well, we can hope...
WIDTH.complete = 5i
WIDTH.kernel = 7.1i
# For comparison with last edition WIDTH.complete = 4.475i

# Set the origin relocation, in points, for the finished output.  This is pretty non-critical,
# but these values give crop marks which are visible with Ghostscript
Y_ORIGIN	=	45
X_ORIGIN	=	65

FTP	=	/echunga/var/spool/ftp/.../cfbsd

TEXTSIZE = 10
LINESPACING = 12

# Point size for Dx command
EXAMPLE-SIZE = 8

SIZES = short long network bisdn complete kernel workshop
# Which book?   Should be one of ${SIZES}, or override on the invocation line
SIZE?= complete
TAGS.complete= complete long
TAGS.workshop=	workshop

SHELL = /bin/sh
XCHAR=${TOOLS}/xchar

.SUFFIXES: .mm .ps .psl .PS .txt .roff .html .ascii .pdf .ctoc

# get site-specific paths
include paths.make

PREFACE = foreword.mm 10-years.mm preface.mm

# The chapter source files
CHAPTERS.bisdn = bisdn.mm
CHAPTERS.ii = ii.mm

CHAPTERS.short = introduction.mm concepts.mm quickinstall.mm install.mm \
	   shareinstall.mm problems.mm xsetup.mm xtheory.mm unixref.mm disks.mm building.mm

# XXX This is AFU
CHAPTERS.network = netintro.mm phones.mm isp.mm netsetup.mm modems.mm ppp.mm  \
		   ii.mm isdn.mm netdebug.mm nfs.mm dickless.mm dns.mm \
		   routing.mm email.mm news.mm www.mm

CHAPTERS.long = introduction.mm concepts.mm quickinstall.mm install.mm postinstall.mm \
	shareinstall.mm problems.mm xsetup.mm xtheory.mm unixref.mm \
	disks.mm building.mm


XCHAPTERS.complete =  introduction.mm  concepts.mm \
		     quickinstall.mm shareinstall.mm install.mm \
		     postinstall.mm unixref.mm unixadmin.mm ports.mm filesys.mm \
		     disks.mm vinum.mm burncd.mm tapes.mm \
		     printers.mm netintro.mm netsetup.mm \
		     isp.mm modems.mm ppp.mm dns.mm firewall.mm \
		     netdebug.mm netclient.mm netserver.mm mua.mm \
		     mta.mm xtheory.mm starting.mm configfiles.mm \
		     current.mm upgrading.mm

LCHAPTER.complete = building.mm 

CHAPTERS.complete = ${XCHAPTERS.complete} ${LCHAPTER.complete}

# To work on:
# Ones left out of the second edition for lack of time: mobile.mm, international.mm
# security.mm 
# micronet.mm

CHAPTERS.workshop = install.mm postinstall.mm

CHAPTERS = ${CHAPTERS.${SIZE}}
XCHAPTERS = ${XCHAPTERS.${SIZE}}
LCHAPTER = ${LCHAPTER.${SIZE}}

# Appendices
APPENDICES.short = packages.mm biblio.mm getting.mm licenses.mm
APPENDICES.long = packages.mm biblio.mm getting.mm licenses.mm
APPENDICES.network = 
APPENDICES.complete =  biblio.mm evolution.mm 
# APPENDICES.long =  packages.mm biblio.mm hardware.mm getting.mm hwconfig.mm \
#	difference.mm licenses.mm

APPENDICES = ${APPENDICES.${SIZE}}

DIRECTORIES = ${SIZE} ${SIZE} ${SIZE}/Toc ${SIZE}/txt ${SIZE}/ps \
	      ${SIZE}/nps ${SIZE}/pdf ${SIZE}/roff

# The final documents
PSDOCS = ${SIZE}/chapters.ps ${SIZE}/appendix.ps ${SIZE}/ps/toc.ps

TXTDOCS = ${SIZE}/chapters.txt ${SIZE}/appendix.txt ${SIZE}/txt/toc.txt

# and files that we create during the build
AUXFILES = ${SIZE}/toc.mm ${SIZE}/tables.mm ${SIZE}/index.mm ${SIZE}/ids.mm ${SIZE}/Xref \
	${SIZE}/chapternumbers packages_body.mm

VPATH = ${SIZE}

# The sources for all chapters
SOURCES = ${CHAPTERS} ${APPENDICES} 

# The sources for chapters, index and TOC
ALL-SOURCES = ${PREFACE} ${CHAPTERS} ${APPENDICES} ${AUXFILES} global.mm reset.mm grog.mm

# The output files with toc, index and crossref information
TOCFILES = ${SIZE}/Toc/toc ${SIZE}/Toc/book ${SIZE}/Toc/appendix

# And the corresponding version for html output
TOCFILESH = ${SIZE}/Toc/${SOURCES:.mm=.html}

# Sources to be put in review archive
REVIEW-SOURCES =  ${SIZE}/chapters.ps ${SIZE}/ps/toc.ps ${SOURCES}

# All files to be maintained by RCS
RCS-FILES = ${PREFACE} ${SOURCES} Makefile makebookmakefile paths.make tidy.el grog.mm \
	merge getch filter getchapternumbers freebie.sty title.${SIZE} \
	makeshortsect makebisdnsect makenetworksect makelongsect makesect errata \
	mkpackages mkpackages-sorted todo backcover mkthumbnail INDEX \
	mkids global.mm reset.mm dear-reviewer-1 dear-reviewer-2 strip2nl howto.image README \
	errata.mm errata.html textintro.mm mkctoc

# Use this kludge to stop RCS from entering ID strings
RCSIDSTRING   = Id

# Short ToCs
CTOCFILES	=	${CHAPTERS:%=ctoc/%} ${APPENDICES:%=ctoc/%} ctoc/preface.mm


# PostScript and PDF for the chapters
POSTSCRIPT = ${SOURCES:.mm=.ps}
PDF = ${SOURCES:.mm=.pdf}
TEXTDOCS = ${SIZE}/txt/toc.txt ${SOURCES:.mm=.txt}

# Base names without suffix
BASENAMES  = ${PREFACE:.mm=} ${SOURCES:.mm=}

ALLBASES = ${ALL-SOURCES:.mm=}

# Why doesn't this work?
# TOOLS=`cd ../tools; pwd`
TOOLS=/home/Book/tools

# The distribution files, for testing
dist = installing-FreeBSD

.SUFFIXES: .mm .ps .psl .PS

# These targets build the complete book

# Main entry.  Make the PDF version of the book.
all ${SIZE}/book.pdf:  ${SIZE}/book.ps
	ps2pdf ${SIZE}/book.ps  ${SIZE}/book.pdf

# Build the book in PostScript form
# The dependencies here include the tools we use to build the book:
# some of them need rebuilding every time.
book.${SIZE}:	${DIRECTORIES} ctocfiles massage ${SIZE}/book.ps

# Build the book proper, including TOC and index.  The dependency texts makes the
# individual documents.
complete/book.ps: ${SIZE}/chapternumbers title.${SIZE} ${ALL-SOURCES} texts 
	@@echo +++ $@@
	cp ${SIZE}/ps/toc.ps ${SIZE}/toc.ps
	cat ${SIZE}/toc.ps ${SIZE}/chapters.ps ${SIZE}/appendix.ps > ${SIZE}/book.ps
	emacs -batch ${SIZE}/toc.ps -l $F/massageps.el -f massageps -f exit
	emacs -batch ${SIZE}/chapters.ps -l $F/massageps.el -f massageps -f exit
	emacs -batch ${SIZE}/appendix.ps -l $F/massageps.el -f massageps -f exit
# Touch the file so that it's newer than the log files
	emacs -batch ${SIZE}/book.ps -l $F/massageps.el -f massageps -f exit

# Build the book in ASCII from, including TOC and index.
${SIZE}/book.txt book.txt: title.${SIZE} ${ALL-SOURCES} texts.ascii
	@@echo +++ $@@
	cat ${SIZE}/txt/toc.txt ${SIZE}/chapters.txt \
	  ${SIZE}/appendix.txt | sed 's:.::g' >${SIZE}/book.txt
	rm -f ${SIZE}/*~
# Touch the file so that it's newer than the log files
	touch $@@

# Make thumbnails
thumbnails: massageps.el chapters
	cat ${SIZE}/ps/toc.ps ${SIZE}/chapters.ps \
	  ${SIZE}/appendix.ps >${SIZE}/thumbnail.ps
	emacs -batch ${SIZE}/thumbnail.ps -l $F/massageps.el -f thumbnail -f exit
	rm -f ${SIZE}/thumbnail.ps~

texts:
	@@echo +++ $@@
	make ${PSDOCS} ${AUXFILES} SIZE=${SIZE}
	make ${PSDOCS} ${AUXFILES} SIZE=${SIZE}
	make ${PSDOCS} ${AUXFILES} SIZE=${SIZE}

texts.ascii:
	@@echo +++ $@@
	make ${TXTDOCS} ${AUXFILES} SIZE=${SIZE}
	make ${TXTDOCS} ${AUXFILES} SIZE=${SIZE}
	make ${TXTDOCS} ${AUXFILES} SIZE=${SIZE}

# Main bulk of the book: all the numbered chapters
${SIZE}/chapters.ps chapters: ${CHAPTERS} ${SIZE}/ids.mm ${SIZE}/Xref 
	@@if [ -f $@@ ]; then \
	  ls -tl ${CHAPTERS} ${SIZE}/ids.mm ${SIZE}/Xref $@@; \
	else \
	  echo +++ $@@ " doesn't exist, rebuilding"; \
	fi
	(cat ${SIZE}/ids.mm global.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
          for i in ${XCHAPTERS}; do ${SOELIM} $$i reset.mm; done; \
          ${SOELIM} ${LCHAPTER} ) | \
	  ${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} | \
	  groff ${ROFFDEBUG} -U -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} \
	    -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -rfirstpage=1 -mpic ${MACROFILE} - \
	  >${SIZE}/chapters.ps.tmp 2>${SIZE}/Toc/book
	mv ${SIZE}/chapters.ps.tmp ${SIZE}/chapters.ps
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/book
	grep %%Pages: ${SIZE}/chapters.ps | head -1 | awk '{print $$2}' > appendix-start
# Touch the file so that it's newer than the log files
	touch $@@

# Main bulk of the book in ASCII: all the numbered chapters
${SIZE}/chapters.txt: ${CHAPTERS} ${SIZE}/ids.mm ${SIZE}/Xref 
	@@if [ -f $@@ ]; then \
	  ls -tl ${CHAPTERS} ${SIZE}/ids.mm ${SIZE}/Xref $@@; \
	else \
	  echo +++ $@@ " doesn't exist, rebuilding"; \
	fi
	(cat ${SIZE}/ids.mm global.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
          for i in ${CHAPTERS}; do ${SOELIM} $$i reset.mm; done) | \
	  ${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} | \
	   nroff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW7.9i -rPS=${TEXTSIZE} \
	    -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -rfirstpage=1 -mpic ${MACROFILE} - \
	  >${SIZE}/chapters.txt.tmp 2>${SIZE}/Toc/book
	mv ${SIZE}/chapters.txt.tmp ${SIZE}/chapters.txt
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/book
# XXX	grep %%Pages: ${SIZE}/chapters.txt | head -1 | awk '{print $$2}' > appendix-start
	grep '^><Last Page' ${SIZE}/Toc/book | tail -1 | awk '{print $$3}' > appendix-start
# Touch the file so that it's newer than the log files
	touch $@@

# Appendices, index and bibliography
${SIZE}/appendix.ps appendix: ${APPENDICES} ${AUXFILES} ${SIZE}/Xref appendix-start
	@@@@if [ -f $@@@@ ]; then \
	  ls -tl $@@@@ ${APPENDICES} ${AUXFILES} ${SIZE}/Xref; \
	else \
	  echo +++ $@@@@ " doesn't exist, rebuilding"; \
	fi
	read < appendix-start page; page=`expr $$page + 1`; \
	(echo .nr % $$page; cat global.mm ${SIZE}/Xref ${SIZE}/chapternumbers ${SIZE}/ids.mm; \
	 for i in ${APPENDICES} ${SIZE}/index.mm; do ${SOELIM} $$i reset.mm; done; ${SOELIM} grog.mm) | \
	  ${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} | \
	  groff ${ROFFDEBUG} -U -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -rfirstpage=1 -mpic ${MACROFILE} - \
	  >${SIZE}/appendix.ps.tmp 2>${SIZE}/Toc/appendix
	mv ${SIZE}/appendix.ps.tmp ${SIZE}/appendix.ps
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/appendix
# Touch the file so that it's newer than the log files
	touch $@@

# Title matter, table of contents and preface
${SIZE}/ps/toc.ps toc toc.ps: title.${SIZE} ${AUXFILES} ${SIZE}/Xref ctoc/preface.mm
	@@@@if [ -f $@@@@ ]; then \
	  ls -tl $@@@@ title.${SIZE} ${PREFACE} ${AUXFILES} ${SIZE}/Xref; \
	else \
	  echo +++ $@@@@ " doesn't exist, rebuilding"; \
	fi
	${SOELIM} ${SIZE}/Xref ${SIZE}/ids.mm global.mm title.${SIZE}  ${SIZE}/chapternumbers ${SIZE}/toc.mm \
	  reset.mm foreword.mm reset.mm 10-years.mm reset.mm preface.mm  | \
	  ${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} | \
	  groff ${ROFFDEBUG} -U -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -mpic ${MACROFILE} - \
	  > ${SIZE}/ps/toc.ps.tmp 2>${SIZE}/Toc/toc
	mv ${SIZE}/ps/toc.ps.tmp ${SIZE}/ps/toc.ps
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/toc
	rm -f ${SIZE}/nps/00-toc.ps
	ln ${SIZE}/ps/toc.ps ${SIZE}/nps/00-toc.ps
# Touch the file so that it's newer than the log files
	touch $@@

# Appendices, index and bibliography--text version
${SIZE}/appendix.txt: ${APPENDICES} ${AUXFILES} ${SIZE}/Xref appendix-start
	@@if [ -f $@@ ]; then \
	  ls -tl $@@ ${APPENDICES} ${AUXFILES} ${SIZE}/Xref; \
	else \
	  echo +++ $@@ " doesn't exist, rebuilding"; \
	fi
	read < appendix-start page; \
	(echo ".pn $$page"; cat reset.mm global.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
	 for i in ${APPENDICES} ${SIZE}/index.mm; do ${SOELIM} $$i reset.mm; done; ${SOELIM} grog.mm) | \
	  ${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} | \
	   nroff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW7.9i -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -rfirstpage=1 -mpic ${MACROFILE} - \
	  >${SIZE}/appendix.txt 2>${SIZE}/Toc/appendix
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/appendix
# Touch the file so that it's newer than the log files
	touch $@@

${SIZE}/chapternumbers: ${SOURCES} getchapternumbers .FORCE
	@@echo +++ chapternumbers
#	-ls -rlt ${SIZE}/chapternumbers ${SOURCES} getchapternumbers
	./getchapternumbers ${SIZE} ${SOURCES} > $@@.temp
	@@-cmp $@@ $@@.temp 2>/dev/null; \
	if [ $$? -ne 0 ]; then \
	  echo Chapter numbers have changed; \
	  mv $@@.temp $@@; \
	else \
	  rm $@@.temp; \
	  touch $@@; \
	fi

# Create the auxiliary files.  We touch them in case they haven't
# changed; otherwise we'll repeat the target the next time, although
# we have already established that there's nothing to do.
${SIZE}/Xref:	${TOCFILES} getchapternumbers
	@@echo +++ $@@
	${TOOLS}/make-xref $@@ ${TOCFILES} $$newer

${SIZE}/Xref.html: getchapternumbers .FORCE
	@@echo +++ $@@
	${TOOLS}/make-xref-html $@@ ${SIZE}/Toc ${SOURCES:.mm=.html}

X:	${TOCFILES} getchapternumbers .FORCE
	@@echo +++ $@@
	@@newer=`find ${SIZE}/Toc -type f -newer ${SIZE}/Toc/book`; \
	${TOOLS}/make-xref ${SIZE}/Xref ${TOCFILES} $$newer >/dev/null
	touch ${SIZE}/Xref

${SIZE}/index.mm:	${TOCFILES}
	@@echo +++ $@@
	${TOOLS}/make-index $@@ ${TOCFILES}

${SIZE}/toc.mm:	${TOCFILES}
	@@echo +++ $@@
	${TOOLS}/make-toc $@@ ${TOCFILES}

${SIZE}/tables.mm:	${TOCFILES}
	@@echo +++ $@@
	${TOOLS}/make-table $@@ ${TOCFILES}

# Create dummy toc files.  If we try to really make them, we end up with
# circular dependencies.
${SIZE}/Toc/toc ${SIZE}/Toc/book ${SIZE}/Toc/1 ${SIZE}/Toc/1X ${SIZE}/Toc/2 ${SIZE}/Toc/4 \
		${SIZE}/Toc/8 ${SIZE}/Toc/appendix ${SIZE}/Toc/X:  ${SIZE}/Toc
	@@echo +++ $@@
	@@echo Creating dummy $@@
	touch $@@

tools:
	@@echo +++ $@@
	(cd ${TOOLS}; make)

clean:
	@@echo +++ $@@
	rm -f *.toc *.ps *.ascii *~ core core.* *.even *.odd Contents Index make.log *.PS 
	rm -rf ${SIZES} Chapter *.tar.gz
	rm -f book.longmakefile paths.make filelist appendix-start
	rm -f ${AUXFILES} ${RCS-FILES} totidy massage*.el
	rm -f index.mm STATUS* packages_body_sorted.mm
	rm -f appendix-start ktrace.out *.pp Make.log

realclean: clean
	@@echo +++ $@@
	rm -f ${RCS-FILES} makebookmakefile totidy

# Make individual chapters without checking dependencies on earlier chapters
all-chapters: ${POSTSCRIPT} foreword.ps 10-years.ps preface.ps

packages.mm::	packages_body.mm packages_body_sorted.mm

packages_body.mm:  mkpackages INDEX
	mkpackages

packages_body_sorted.mm:  mkpackages-sorted
	-ls -tl packages_body_sorted.mm mkpackages-sorted
	mkpackages-sorted

review:	tools STATUS ${CHAPTERS:.mm=.rv}

orphan XXX:
	rm -f ${SIZE}/[0-9].ps ${SIZE}/[A-Z].ps ${SIZE}/*.txt
	@@echo +++++ Making individual chapters in PostScript
	make all-chapters toc.ps 
	@@echo +++++ Making individual chapters in ASCII
	@@echo make  ${CHAPTERS:.mm=.txt} ${APPENDICES:.mm=.txt} toc.ps toc.txt
	make  ${CHAPTERS:.mm=.txt} ${APPENDICES:.mm=.txt} toc.ps toc.txt
	@@echo packing files
	make ftpreview 

release: mkthumbnail
	gzip < ${SIZE}/book.ps >/var/spool/ftp/pub/.FINAL/book.ps.gz
	mkthumbnail < ${SIZE}/book.ps 1 2000 | gzip  >/var/spool/ftp/pub/.FINAL/thumbnail.ps.gz

# Put the review chapters on the ftp site.  Currently unused and deprecated.
ftpreview: dear-reviewer STATUS ${FTP}/ps ${FTP}/txt
	gzip < ${SIZE}/book.ps > ${FTP}/book.ps.gz
	rm -f ${FTP}/ps/*  ${FTP}/txt/* STATUS*
	cd ${SIZE}/txt; \
	sed 's:.::g' < toc.txt > 00-toc.txt; \
	cp -p [0-9A-G]* ${FTP}/txt; \
	tar czvf ${FTP}/txt.tar.gz [0-9]*.txt [A-Z]*.txt
	-cd ${SIZE}/nps; \
	for i in [0-9]*.ps [A-Z]*.ps; do \
	  echo $$i; \
	  gzip -c $$i > ${FTP}/ps/$$i.gz; \
        done
	(cd ${FTP}/txt; gzip *)
	chmod 644 ${FTP}/txt/* ${FTP}/ps/* ${FTP}/*
	chmod 755 ${FTP}/txt ${FTP}/ps

ps2pdf:
	mkdir -p ${SIZE}/pdf
	cd ${SIZE}/ps; \
	for i in [a-z]*; do \
	  echo $$i; \
	  $(GS) -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 \
		-sOutputFile=../pdf/`basename $$i .ps`.pdf -c save pop -f \
		$$i; \
	done

# Make all review texts
fullreview: ${POSTSCRIPT}  ${TEXTDOCS} dear-reviewer STATUS ${WWW} ps2pdf

# Make all review texts and install them on the web site area
installreview: fullreview wwwreview

newdir:
	rm -rf ${SIZE}

wwwreview:
	rm -f ${WWW}/*
	cp dear-reviewer.html ${WWW}/cfbsd.html
	cd ${SIZE}/txt; \
	for i in [a-z]*; do cp -p $$i ${WWW}/$$i; done; \
	sed 's:.::g' < toc.txt > ${WWW}/toc.txt
	cp -p ${SIZE}/pdf/* ${SIZE}/STATUS.ps ${SIZE}/STATUS.txt ${WWW}
	chmod 644 ${WWW}/*

dear-reviewer:  dear-reviewer-1 dear-reviewer-1a dear-reviewer-2 URLS
	cat dear-reviewer-1 > $@@.html
	TZ=Etc/UTC date >> $@@.html
	cat dear-reviewer-1a URLS dear-reviewer-2  >> $@@.html

STATUS:	${PREFACE} ${CHAPTERS} ${APPENDICES}
	rm -f $@@
	echo ".ll 6.5i" >> $@@
	echo ".ce" >> $@@
	echo "Chapter status at `TZ=Etc/UTC date`" >> $@@
	echo ".sp 1.5v" >> $@@
	echo ".TB \"Chapter status `TZ=Etc/UTC date`\"" >> $@@
	echo ".TS" >> $@@
	echo "tab(#) ;" >> $@@
	echo "| r | l | l | l | r | r | l | ." >> $@@
	echo "_" >> $@@
	echo "Chap-#Source file#Revision#Modified (UTC)#First#Pages#Status" >> $@@
	echo "ter####Page" >> $@@
	echo "=" >> $@@
	-ch=0; \
	for i in preface.mm ${CHAPTERS}; do \
	  psfile=${SIZE}/ps/`echo $$i | sed 's:.mm$$:.ps:'`; \
	  if [ -f $$psfile ]; then \
	    pages=`grep "%%Pages" $$psfile | head -n 1 | awk '{print $$2}'`; \
	  else \
	    pages="?"; \
	  fi; \
	  firstpage=`egrep "^Chapter.*\\<$$i" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	  status=`grep '\\" STATUS' $$i | sed 's/:.*://; s/^.*STATUS://'`; \
	  RCSID="$$ch#`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 }'`"; \
	  rcsdiff $$i >/dev/null 2>&1; \
	  if [ $$? != 0 ]; then \
	    RCSID="$$RCSID*#`TZ=Etc/UTC ls -l $$i | awk '{print $$7 \" \" $$6 \", \" $$8}'`"; \
	  else \
	    RCSID="$$RCSID#`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$5 " " $$6 }'`"; \
	  fi; \
	  echo $$RCSID#$$firstpage#$$pages#$$status >> $@@; \
	  ch=`expr $$ch \\+ 1`; \
	done
	echo "_" >> $@@
	echo "App-#Source file#Revision#Modified (UTC)#First#Pages#Status" >> $@@
	echo "endix####Page" >> $@@
	echo "_" >> $@@
	-ch=65; \
	for i in ${APPENDICES}; do \
	  psfile=${SIZE}/ps/`echo $$i | sed 's:.mm$$:.ps:'`; \
	  if [ -f $$psfile ]; then \
	    pages=`grep "%%Pages" $$psfile | head -n 1 | awk '{print $$2}'`; \
	  else \
	    pages="?"; \
	  fi; \
	  firstpage=`egrep "^Appendix.*\\<$$i" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	  status=`grep '\\" STATUS' $$i | sed 's/:.*://; s/^.*STATUS://'`; \
	  RCSID="$$ch#`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 }'`"; \
	  rcsdiff $$i >/dev/null 2>&1; \
	  if [ $$? != 0 ]; then \
	    RCSID="$$RCSID*#`TZ=Etc/UTC ls -l $$i | awk '{print $$7 \" \" $$6 \", \" $$8}'`"; \
	  else \
	    RCSID="$$RCSID#`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$5 " " $$6 }'`"; \
	  fi; \
	  echo $$RCSID#$$firstpage#$$pages#$$status >> $@@; \
	  ch=`expr $$ch \\+ 1`; \
	done
	echo "_" >> $@@
	echo ".TE" >> $@@
	echo ".sp" >> $@@
	echo "Note: a \\f(CW*\\fP symbol after the version number indicates that the source file has been modified since the last checkin.  In this case, the column \`\`Modified'' shows the date of the last modification.  The version information of any such file may be inaccurate." >> $@@
	${TBL} STATUS | groff ${ROFFDEBUG} -U >${SIZE}/STATUS.ps -rW${WIDTH.${SIZE}}
	${TBL} STATUS | nroff > ${SIZE}/STATUS.txt

URLS:	preface.mm ${CHAPTERS} ${APPENDICES}
	rm -f $@@
	echo '    <a href="toc.pdf">Preface and table of contents in PDF format</a>' >> $@@
	echo '    <br />' >> $@@
	echo '     <a href="toc.txt">Preface and table of contents in ASCII</a>' >> $@@
	ch=1; \
	for j in ${CHAPTERS}; do \
	  i=`basename $$j .mm`; \
	  echo "    <p>" >> $@@; \
	  echo "    <a href=\"$$i.pdf\">Chapter $$ch ($$i) in PDF format</a>" >> $@@; \
	  echo "    <br />" >> $@@; \
	  echo "     <a href=\"$$i.txt\">Chapter $$ch ($$i) in ASCII</a></p>" >> $@@; \
	  echo >> $@@; \
	  ch=`expr $$ch + 1`; \
	done

# Remake individual chapters
foreword.ps 10-years.ps preface.ps ${POSTSCRIPT}:  ${SIZE}/Toc/book ${SIZE}/ps \
	   ${SIZE}/nps ${SIZE}/chapternumbers ${SIZE}/ids.mm 
	make ctoc/`basename ${@@:.ps=.mm}`
	-@@base=${@@:.ps=}; \
	page=`egrep "^Chapter.*\\<$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	RCSID=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$3 " v" $$4 " (" $$5 " " $$6 ") " }'`; \
	timestamp=`echo $$RCSID | sed 's:.*(::; s/:[0-9][0-9]).*$$//; s#[:/ ]##g'`; \
	rcsdiff $$base.mm >/dev/null; \
	if [ $$? != 0 ]; then \
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -lT $$base.mm | awk '{print $$7 \" \" $$6 \" \" $$9 \", \" $$8}'` UTC)"; \
	fi; \
	echo "^Chapter.*\\<$$base.mm"; \
	chapter=`egrep "^Chapter.*\\<$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$2}'`; \
	if [ "$$chapter" = "" ]; then \
	  setit=`egrep "^Appendix.*\\<$$base.mm" ${SIZE}/Toc/appendix`; \
	  if [ "$$setit" != "" ]; then \
	    set $$setit; \
	    prefix=`${XCHAR} $$2`; \
	    page=`echo $$4 | sed 's:,::'`; chapter=$$6; \
	  else \
	    page=1; \
	    prefix=00; \
	  fi; \
	fi; \
	echo base $$base; \
	echo -n "+++ Chapter $$chapter ($@@) starts on page $$page "; \
	(echo ".pn $$page";  echo ".ds RCS-ID $$RCSID"; \
	   (${SOELIM} ${SIZE}/ids.mm ${MACROFILE} ; echo ".ds RCS-ID $$RCSID"; \
	   ${SOELIM} ${SIZE}/Xref ${SIZE}/chapternumbers global.mm $$base.mm | \
	${TOOLS}/stripcond ${TAGS.${SIZE}} | \
	 ${PIC} 2>/dev/tty | ${TBL})) | \
	 groff ${ROFFDEBUG} -U -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${XHEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} \
	    -rPS=${TEXTSIZE} -rLS=${LINESPACING} - \
	 >${SIZE}/ps/$@@.tmp 2>${SIZE}/Toc/$$base; \
	exitcode=$$?; \
	mv ${SIZE}/ps/$@@.tmp ${SIZE}/ps/$@@; \
	startpage=$$page; \
	page=`awk < ${SIZE}/ps/$@@ '/%%Page:/ {page=$$2 }; END {print page}'`; \
	if [ "$$prefix" != "" ]; then \
	  filename=${SIZE}/nps/$$prefix-$@@; \
	elif [ $$chapter -lt 10 ]; then \
	  filename=${SIZE}/nps/0$$chapter-$@@; \
	else \
	  filename=${SIZE}/nps/$$chapter-$@@; \
	fi; \
	echo -n "and ends on page $$page "; \
	page=`expr $$page + 1`; \
	echo \(`expr $$page - $$startpage` pages\): $$filename; \
	if [ `expr $$page % 2 ` -eq 0 ]; then \
	  echo " (Last page is blank)"; \
	  page=`expr $$page + 1`; \
	fi; \
	egrep -v ^'Chapter|File|PSPIC|><' ${SIZE}/Toc/$$base; \
	rm -f $$filename; \
	ln ${SIZE}/ps/$@@ $$filename; \
	if [ $$exitcode -ne 0 ]; then \
	  echo "*** Exit code $$exitcode - format aborted"; \
	fi;
# Set the destination timestamp to the RCS date.
# Why would I want to do that?
#	TZ=Etc/GMT touch -t $$timestamp ${SIZE}/ps/`basename $@@`;
	
# All chapters in PDF
pdf:	${PDF}

# Remake individual chapters in PDF.  This is probably obsolete.
preface.pdf ${CHAPTERS:.mm=.pdf} ${APPENDICES:.mm=.pdf}: ${@@:.pdf=.ps} ${SIZE}/pdf
	make ${@@:.pdf=.txt} 
	$(GS) -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 \
		-sOutputFile=${SIZE}/pdf/$@@ -c save pop -f \
		${SIZE}/ps/${@@:.pdf=.ps}

# Review stuff, yet again
preface.rv ${CHAPTERS:.mm=.rv} ${APPENDICES:.mm=.rv}: ${@@:.rv=.pdf} ${@@:.rv=.txt}
	@@-base=${@@:.rv=}; \
	echo "^Chapter.*\\<$$base.mm"; \
	chapter=`egrep "^Chapter.*\\<$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$2}'`; \
	if [ "$$chapter" = "" ]; then \
	  setit=`egrep "^Appendix.*\\<$$base.mm" ${SIZE}/Toc/appendix`; \
	  if [ "$$setit" != "" ]; then \
	    set $$setit; \
	    prefix=`${XCHAR} $$2`; \
	    page=`echo $$4 | sed 's:,::'`; chapter=$$6; \
	  else \
	    page=1; \
	    prefix=00; \
	  fi; \
	fi; \
	echo base $$base; \
	if [ "$$prefix" != "" ]; then \
	  filename=$$prefix-$$base; \
	elif [ $$chapter -lt 10 ]; then \
	  filename=0$$chapter-$$base; \
	else \
	  filename=$$chapter-$$base; \
	fi; \
	echo chapter $$chapter, prefix $$prefix, filename $$filenam

txt:	${TEXTDOCS}

${TEXTDOCS}: ${SIZE}/Toc/book ${SIZE}/txt ${SIZE}/chapternumbers  ${SIZE}/Xref ${SIZE}/ids.mm
	@@echo +++ $@@
	-@@base=${@@:.txt=}; \
	page=`egrep "^Chapter.*\\<$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	RCSID=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$3 " v" $$4 " (" $$5 " " $$6 ")" }'`; \
	mod=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$9}'`; \
	if [ X$$mod = Xgrog ]; then \
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -lT $$base.mm | awk '{print $$7 \" \" $$6 \" \" $$9 \", \" $$8}'` UTC)"; \
	fi; \
	chapter=`egrep "^Chapter.*\\<$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$2}'`; \
	if [ "$$chapter" = "" ]; then \
	  setit=`egrep "^Appendix.*\\<$$base.mm" ${SIZE}/Toc/appendix`; \
	  if [ "$$setit" != "" ]; then \
	    set $$setit; \
	    prefix=`${XCHAR} $$2`; \
	    page=`echo $$4 | sed 's:,::'`; chapter=$$6; \
	  else \
	    page=1; \
	    prefix=00; \
	  fi; \
	fi; \
	(echo ".pn $$page";  echo ".ds RCS-ID $$RCSID"; \
	   ${SOELIM} global.mm ${SIZE}/ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   ${SOELIM} ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
	${TOOLS}/stripcond ${TAGS.${SIZE}} | \
	 ${PIC} | ${TBL} | \
	 nroff -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT.${SIZE}} -rW7.9i \
	    -rPS=${TEXTSIZE} -rLS=${LINESPACING} -mpic ${MACROFILE} - 2>${SIZE}/Toc/$$base \
	    | sed 's:.::g' >${SIZE}/txt/$@@.tmp; \
	exitcode=$$?; \
	mv ${SIZE}/txt/$@@.tmp ${SIZE}/txt/$@@; \
	if [ "$$prefix" != "" ]; then \
	  filename=${SIZE}/txt/$$prefix-$@@; \
	elif [ $$chapter -lt 10 ]; then \
	  filename=${SIZE}/txt/0$$chapter-$@@; \
	else \
	  filename=${SIZE}/txt/$$chapter-$@@; \
	fi; \
	rm -f $$filename; \
	ln ${SIZE}/txt/$@@ $$filename; \
	if [ $$exitcode -ne 0 ]; then \
	  echo "*** Exit code $$exitcode - format aborted"; \
	fi; \
	touch ${SIZE}/txt/`basename $@@`; \

# Make individual chapters in ASCII for CD-ROM
preface.roff ${CHAPTERS:.mm=.roff} ${APPENDICES:.mm=.roff}:	${SIZE}/Toc/book ${SIZE}/roff \
			${SIZE}/chapternumbers  ${SIZE}/Xref ${SIZE}/ids.mm
	@@echo +++ $@@
	@@base=${@@:.roff=}; \
	page=`egrep "^Chapter.*\\<$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	RCSID=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$3 " v" $$4 " (" $$5 " " $$6 ")" }'`; \
	mod=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$9}'`; \
	if [ X$$mod = Xgrog ]; then \
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -lT $$base.mm | awk '{print $$7 \" \" $$6 \" \" $$9 \", \" $$8}'` UTC)"; \
	fi; \
	chapter=`egrep "^Chapter.*\\<$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$2}'`; \
	if [ "$$chapter" = "" ]; then \
	  setit=`egrep "^Appendix.*\\<$$base.mm" ${SIZE}/Toc/appendix`; \
	  if [ "$$setit" != "" ]; then \
	    set $$setit; \
	    prefix=`${XCHAR} $$2`; \
	    page=`echo $$4 | sed 's:,::'`; chapter=$$6; \
	  else \
	    page=1; \
	    prefix=00; \
	  fi; \
	fi; \
	(echo ".pn $$page";  echo ".ds RCS-ID $$RCSID"; \
	   ${SOELIM} global.mm ${SIZE}/ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   ${SOELIM} ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
	${TOOLS}/stripcond ${TAGS.${SIZE}} | \
	 ${PIC} | ${TBL} | \
	 nroff -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT.${SIZE}} -rW7.9i \
	    -rPS=${TEXTSIZE} -rLS=${LINESPACING} -mpic ${MACROFILE} - 2>${SIZE}/Toc/$$base \
	     >${SIZE}/roff/$@@.tmp; \
	exitcode=$$?; \
	mv ${SIZE}/roff/$@@.tmp ${SIZE}/roff/$@@; \
	if [ "$$prefix" != "" ]; then \
	  filename=${SIZE}/roff/$$prefix-$@@; \
	elif [ $$chapter -lt 10 ]; then \
	  filename=${SIZE}/roff/0$$chapter-$@@; \
	else \
	  filename=${SIZE}/roff/$$chapter-$@@; \
	fi; \
	rm -f $$filename; \
	ln ${SIZE}/roff/$@@ $$filename; \
	if [ $$exitcode -ne 0 ]; then \
	  echo "*** Exit code $$exitcode - format aborted"; \
	fi
# Touch the file so that it's newer than the log files
	@@touch ${SIZE}/roff/`basename $@@`

# ${CHAPTERS:.mm=.pp} ${APPENDICES:.mm=.pp}: ${AUXFILES}
# 	base=${@@:.pp=}; \
# 	page=`egrep "^*\<$$base\>" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
# 	(echo ".pn $$page"; ${SOELIM} ${MACROFILE} global.mm ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
# 	${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} >$@@
# Touch the file so that it's newer than the log files
#	touch $@@

# Make preprocessor output for individual chapters, for debugging.
# This should go into groff and produce the same output as the .ps target.
${CHAPTERS:.mm=.pp} ${APPENDICES:.mm=.pp}: ${AUXFILES}
	base=${@@:.pp=}; \
	page=`egrep "^Chapter.*\\<$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	RCSID=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$3 " v" $$4 " (" $$5 " " $$6 ") " }'`; \
	timestamp=`echo $$RCSID | sed 's:.*(::; s/:[0-9][0-9]).*$$//; s#[:/ ]##g'`; \
	mod=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$9}'`; \
	if [ X$$mod = Xgrog ]; then \
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -lT $$base.mm | awk '{print $$7 \" \" $$6 \" \" $$9 \", \" $$8}'` UTC)"; \
	fi; \
	echo "    $$base.mm, RCS ID: $$RCSID"; \
	echo "^Chapter.*\\<$$base.mm"; \
	chapter=`egrep "^Chapter.*\\<$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$2}'`; \
	if [ "$$chapter" = "" ]; then \
	  setit=`egrep "^Appendix.*\\<$$base.mm" ${SIZE}/Toc/appendix`; \
	  if [ "$$setit" != "" ]; then \
	    set $$setit; \
	    prefix=`${XCHAR} $$2`; \
	    page=`echo $$4 | sed 's:,::'`; chapter=$$6; \
	  else \
	    page=1; \
	    prefix=00; \
	  fi; \
	fi; \
	echo base $$base; \
	echo -n "+++ Chapter $$chapter ($@@) starts on page $$page "; \
	(echo ".pn $$page";  echo ".ds RCS-ID $$RCSID"; \
	   (${SOELIM} global.mm ${SIZE}/ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   ${SOELIM} ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm | \
	${TOOLS}/stripcond ${TAGS.${SIZE}} | \
        ${PIC} | ${TBL})) > $@@
# Touch the file so that it's newer than the log files
	touch $@@

pageframe: massage
	if [ ! -d ${SIZE}/prod ]; then \
	  mkdir -p ${SIZE}/prod; \
	fi
	cp -p ${SIZE}/book.ps ${SIZE}/prod
	emacs -batch ${SIZE}/book.ps -l $F/massageps.el -f makeframe -f exit
	rm -f ${SIZE}/book.ps~

massagetex.el massageps.el: massage

# Copy the tools massage macros, substituting our page dimensions in points
massage:	.FORCE
	@@H=`echo ${HEIGHT.${SIZE}} | awk '{print $$1 * 72}'`; \
	W=`echo ${WIDTH.${SIZE}} ${MARGINS} | awk '{print ($$1 + $$2) * 72}'`; \
	echo Crop marks: Height $$H points, Width $$W points; \
	sed < ${TOOLS}/massageps.el > massageps.el "s:@@YORIG@@:${Y_ORIGIN}:; s:@@XORIG@@:${X_ORIGIN}:; s:@@HEIGHT@@:$$H:g; s:@@WIDTH@@:$$W:"; \
#	sed < ${TOOLS}/massagetex.el > massagetex.el "s:@@YORIG@@:${Y_ORIGIN}:; s:@@XORIG@@:${X_ORIGIN}:; s:@@HEIGHT@@:$$H:g; s:@@WIDTH@@:$$W:"

# Check in with current date.
ci:
	-ci -d  ${RCS-FILES} totidy
	co -M Makefile paths.make

# Yes, make checks out automatically, but it doesn't use the -M option, so 
# it will remake even if it's not needed.
co:
	-co -l -M -q ${RCS-FILES} totidy

save:	.FORCE
	rm -f save/*
	cp -p * save

errata:  ${SOURCES}
	rcsdiff -wu -r${EDITION} ${SOURCES} >$@@

${SIZE}/errata.ps:  errata.ps
${SIZE}/errata.txt:  errata.txt

${SIZE}/errata.ascii:  ${SIZE}/errata.txt
	sed < ${SIZE}/errata.txt 's:.::g' >${SIZE}/errata.ascii

install-errata: ${SIZE}/errata.ps  ${SIZE}/errata.txt ${SIZE}/errata.ascii
	-cp -p ${SIZE}/errata.ps /var/spool/ftp/pub/cfbsd/errata-3.ps
	-cp -p ${SIZE}/errata.txt /var/spool/ftp/pub/cfbsd/errata-3.txt
	-sed < ${SIZE}/errata.txt 's:.::g' > /var/spool/ftp/pub/cfbsd/errata-3.ascii
	rm -f /var/spool/ftp/pub/cfbsd/errata-3
	-ln /var/spool/ftp/pub/cfbsd/errata-3.ascii /var/spool/ftp/pub/cfbsd/errata-3
	-cp -p errata.html /usr/local/www/data/errata-3.html

# Make everything that goes on the CD-ROM
install-cd:   ${SIZE} book.txt package-doc merge makesect
	mv ${SIZE}/book.txt book
	find book -name *~ | xargs rm -f
	tar czf cdbook.tar.gz book
	scp cdbook.tar.gz freefall.freebsd.org:

archive:
	tar cf - ${RCS-FILES} ${SIZE}/book.ps ${SIZE}/ps/toc.ps | gzip >book.tar.gz

ps.tar.gz ps:
	tar cf - ${SIZE}/book.ps ${SIZE}/ps/toc.ps | gzip >ps.tar.gz

srcarchive book.${SIZE}src.tar.gz:
	(cd ${dist}; make clean)
	tar cfh - ${dist} | gzip >book.${SIZE}.tar.gz

book.${SIZE}.tar.gz: book.${SIZE}
	tar cvzf $@@ ${REVIEW-SOURCES}	

incdiffs diffs:	${SOURCES} .FORCE
	rm -rf $@@
	mkdir $@@
	for i in ${BASENAMES}; do \
	  if [ "$@@" = "diffs" ]; then \
	    rcsdiff -r4.1 -uw $$i.mm  >$@@/$$i || true; \
	  else \
	    rcsdiff -uw $$i.mm >$@@/$$i; \
	  fi; \
	  if [ ! -s $@@/$$i ]; then \
	    rm -f $@@/$$i; \
	  fi \
	done

# ${RCS-FILES}:
#	-co -q -M $@@

${SOURCES}:	global.mm # ${SIZE}/chapternumbers

# paths.make:
# 	@@echo +++ $@@
# 	@@if [ -f paths.make.orig ]; then \
# 	  echo ; \
# 	  @@echo ++++++ This source tree doesn\'t contain a paths.make.; \
# 	  @@echo ++++++ This probably means that you have forgotten to; \
# 	  @@echo ++++++ configure it.  I am creating one from the file; \
# 	  @@echo ++++++ paths.make.orig, but you will probably not be; \
# 	  @@echo ++++++ happy unless you edit it.  See the file INSTALL; \
# 	  @@echo ++++++ for further confusing information.; \
# 	  echo ; \
# 	  cp paths.make.orig paths.make; \
# 	else \
# 	  @@echo +++ Checking out paths.make; \
# 	  co -M -q paths.make; \
# 	fi

${DIRECTORIES} fmt/exlist fmt/figlist fmt/index fmt/tablist fmt/toc ${SIZE}/pdf ctoc:
	@@echo +++ Creating $@@
	mkdir -p $@@

# This target does *not* apply to the chapters.  See the target starting
# with 'preface.ps' for that.
.mm.ps:
	@@echo +++ $@@
	${SOELIM} $< | ${TOOLS}/stripcond ${TAGS.${SIZE}} | \
	   ${PIC} | ${TBL} | \
	   groff ${ROFFDEBUG} -U -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -mpic ${MACROFILE} - \
	   >${SIZE}/$@@ 2>${SIZE}/Toc/$@@;
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/$@@

.mm.txt:
	@@echo +++ $@@
	${SOELIM} $< | ${TOOLS}/stripcond ${TAGS.${SIZE}} | \
	   ${PIC} | ${TBL} | \
	   nroff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW7.9i -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -mpic ${MACROFILE} - 2>${SIZE}/Toc/$@@ \
	   >${SIZE}/$@@;
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/$@@

.mm.html: tools
	@@echo +++ $@@
	(echo .nr html 1; echo .nh; echo .nf; echo .na; cat ${SIZE}/Xref.html; \
	   (${SOELIM} $< | ${TOOLS}/setfont)) | ${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} | \
	   nroff -rex=${EXAMPLE-SIZE} -r$$$$ -rL50000i -rW7.9i -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -mpic ${HTMACROFILE} - 2>${SIZE}/Toc/$@@ \
	   >${SIZE}/$@@;
	# Now make the tables and pictures.
	(${SOELIM} $< | ${TOOLS}/setfont -t) | ${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} | \
	   groff ${ROFFDEBUG} -U -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} \
	      -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -mpic ${MACROFILE} - \
	   >${SIZE}/$@@.tables 2>${SIZE}/Toc/$@@;
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/$@@

html:	
	-make -k ${SOURCES:.mm=.html} Xref.html

# Extract the RCS IDs from the source files
IDSRC	=	title.${SIZE} preface.mm ${SOURCES} ${MACROFILE}
${SIZE}/ids.mm:	${IDSRC}  mkids
	./mkids ${IDSRC}
# XXX FIXME
	mv ids.mm ${SIZE}

info:
	@@echo This cave under construction 
	@@echo ALL-SOURCES: ${ALL-SOURCES}
	@@echo ALLBASES: ${ALLBASES}
	@@echo APPENDICES: ${APPENDICES}
	@@echo AUXFILES: ${AUXFILES}
	@@echo BASENAMES : ${BASENAMES }
	@@echo CHAPTERS.SIZE: ${CHAPTERS.${SIZE}}
	@@echo CHAPTERS.complete: ${CHAPTERS.complete}
	@@echo CHAPTERS: ${CHAPTERS}
	@@echo DIRECTORIES: ${DIRECTORIES}
	@@echo IDSRC: ${IDSRC}
	@@echo POSTSCRIPT: ${POSTSCRIPT}
	@@echo PDF: ${PDF}
	@@echo PSDOCS: ${PSDOCS}
	@@echo RCS-FILES: ${RCS-FILES}
	@@echo REVIEW-SOURCES: ${REVIEW-SOURCES}
	@@echo SIZE: ${SIZE}
	@@echo SOURCES: ${SOURCES}
	@@echo TOCFILES: ${TOCFILES}
	@@echo TOCFILESH: ${TOCFILESH}
	@@echo TOOLS: ${TOOLS}
	@@echo CTOCFILES: ${CTOCFILES}
	@@echo WIDTH: ${WIDTH.${SIZE}}
	@@echo HEIGHT: ${HEIGHT.${SIZE}}

# XXX 
# Get rid of this stuff, which is just there to be able to build an index
# without appendices
# 
index.ps: ${SIZE}/index.mm
	page=${START_PAGE}; \
	(echo ".pn $$page"; cat reset.mm global.mm; ${SOELIM} ${SIZE}/index.mm) | \
	  ${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} | \
	  groff ${ROFFDEBUG} -U -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -rfirstpage=1 -mpic ${MACROFILE} - \
	  >${SIZE}/appendix.ps.tmp 2>${SIZE}/Toc/appendix
	mv ${SIZE}/appendix.ps.tmp ${SIZE}/appendix.ps
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/appendix
# Touch the file so that it's newer than the log files
	touch $@@

package-doc: packages_body.mm packages_body_sorted.mm packages.ps packages.txt
	mv ${SIZE}/packages.ps  ${SIZE}/packages.txt book/docs
	make TAGS="${TAGS.${SIZE}} sorted" packages.ps packages.txt
	mv ${SIZE}/packages.ps book/docs/packages-by-category.ps
	mv ${SIZE}/packages.txt book/docs/packages-by-category.txt

grep:
	grep ${GR} ${SOURCES}

bigtext: ${CHAPTERS} ${APPENDICES}
	cat ${CHAPTERS} ${APPENDICES} >bigtext

.txt.ascii:
	sed < $< > $@@ 's:.::g'

# Stop a race condition when building certain parts of the book.
# The 9999 is a fictive page number.
appendix-start:
	echo 9999 > appendix-start

names:
	@@echo ${CHAPTERS} ${APPENDICES}

ymake:
	while :; do  \
	  for i in ${SOURCES}; do \
	    dest=`basename $$i .mm`.ps; \
	    ddest=complete/ps/$$dest; \
	    if [ $$i -nt $$ddest ]; then \
	       ls -lt $$i $$ddest; \
	       echo make $$dest; \
	       make $$dest; \
	       touch $$ddest; \
	    fi; \
	  done; \
	  if [ title.${SIZE} -nt ${SIZE}/ps/toc.ps -o \
               preface.mm -nt ${SIZE}/ps/toc.ps -o \
               toc.mm -nt ${SIZE}/ps/toc.ps ]; then \
	    make toc.ps; \
	  fi; \
	  sleep 1; \
	done

ctocfiles: ctoc ${CTOCFILES}

${CTOCFILES}: ${@@:ctoc/%=%}
	mkctoc ${@@:ctoc/%=%} ${SIZE}

# For workshops
workshop/book.ps: title.${SIZE} ${ALL-SOURCES} texts
	@@echo +++ $@@
	mv ${SIZE}/chapters.ps ${SIZE}/book.ps
	emacs -batch ${SIZE}/book.ps -l $F/massageps.el -f massageps2 -f exit
	rm -f ${SIZE}/*~
# Touch the file so that it's newer than the log files
	touch $@@

# XXX The stuff below until the next XXX is a set of quick hacks to
# get the build working before I finishe the Grand New Scheme Of
# Things.

# We don't have a ctoc for foreward, but we need this
# to avoid an error message
ctoc/foreword.mm ctoc/10-years.mm:
	touch $@@

# XXX end of particularly ugly hacks.

# Dummy target.  If it's included as a dependency, it causes the
# target to be executed, since there's no file called .FORCE
.FORCE:
@


2.46
log
@Many forgotten mods.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.45 2003/06/29 05:14:34 grog Exp $
d72 1
a72 1
PREFACE = foreword.mm preface.mm
d126 2
a127 2
DIRECTORIES = ${SIZE} Chapter/${SIZE} ${SIZE}/Toc Chapter/${SIZE}/txt Chapter/${SIZE}/ps \
	      Chapter/${SIZE}/nps Chapter/${SIZE}/pdf Chapter/${SIZE}/roff
d130 1
a130 1
PSDOCS = Chapter/${SIZE}/chapters.ps Chapter/${SIZE}/appendix.ps Chapter/${SIZE}/ps/toc.ps
d132 1
a132 1
TXTDOCS = Chapter/${SIZE}/chapters.txt Chapter/${SIZE}/appendix.txt Chapter/${SIZE}/txt/toc.txt
d153 1
a153 1
REVIEW-SOURCES =  Chapter/${SIZE}/chapters.ps Chapter/${SIZE}/ps/toc.ps ${SOURCES}
d173 1
a173 1
TEXTDOCS = Chapter/${SIZE}/txt/toc.txt ${SOURCES:.mm=.txt}
d191 6
a196 2
# Main entry.  Build the book
# The depencies here include the tools we use to build the book:
d198 1
a198 2

all book.${SIZE}:	${DIRECTORIES} ctocfiles massage ${SIZE}/book.ps
d205 1
d210 1
a210 1
	touch $@@
a302 3
# We don't have a ctoc for foreward, but we need this
# to avoid an error message
	touch ctoc/foreword.mm
d309 1
a309 1
	  reset.mm foreword.mm reset.mm preface.mm  | \
d407 1
a407 1
all-chapters: ${POSTSCRIPT} foreword.ps preface.ps
d566 1
a566 1
foreword.ps preface.ps ${POSTSCRIPT}:  ${SIZE}/Toc/book ${SIZE}/ps \
d1054 11
@


2.45
log
@all: Build three seperate documents.
errata: diff with 4.1 by default, print out any error messages.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.44 2003/04/02 07:39:32 grog Exp $
d135 1
a135 1
AUXFILES = ${SIZE}/toc.mm ${SIZE}/tables.mm ${SIZE}/index.mm ids.mm ${SIZE}/Xref \
d194 2
a195 1
all book.${SIZE}:	tools ${DIRECTORIES} ctocfiles massage Chapter/${SIZE}/book.ps
d199 1
a199 1
Chapter/complete/book.ps: ${SIZE}/chapternumbers title.${SIZE} ${ALL-SOURCES} texts 
d201 4
a204 4
	cp Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/toc.ps
	emacs -batch Chapter/${SIZE}/toc.ps -l $F/massageps.el -f massageps -f exit
	emacs -batch Chapter/${SIZE}/chapters.ps -l $F/massageps.el -f massageps -f exit
	emacs -batch Chapter/${SIZE}/appendix.ps -l $F/massageps.el -f massageps -f exit
d209 1
a209 1
Chapter/${SIZE}/book.txt book.txt: title.${SIZE} ${ALL-SOURCES} texts.ascii
d211 3
a213 3
	cat Chapter/${SIZE}/txt/toc.txt Chapter/${SIZE}/chapters.txt \
	  Chapter/${SIZE}/appendix.txt | sed 's:.::g' >Chapter/${SIZE}/book.txt
	rm -f Chapter/${SIZE}/*~
d219 4
a222 4
	cat Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/chapters.ps \
	  Chapter/${SIZE}/appendix.ps >Chapter/${SIZE}/thumbnail.ps
	emacs -batch Chapter/${SIZE}/thumbnail.ps -l $F/massageps.el -f thumbnail -f exit
	rm -f Chapter/${SIZE}/thumbnail.ps~
d237 1
a237 1
Chapter/${SIZE}/chapters.ps chapters: ${CHAPTERS} ids.mm ${SIZE}/Xref 
d239 1
a239 1
	  ls -tl ${CHAPTERS} ids.mm ${SIZE}/Xref $@@; \
d243 1
a243 1
	(cat ids.mm global.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
d250 2
a251 2
	  >Chapter/${SIZE}/chapters.ps.tmp 2>${SIZE}/Toc/book
	mv Chapter/${SIZE}/chapters.ps.tmp Chapter/${SIZE}/chapters.ps
d253 1
a253 1
	grep %%Pages: Chapter/${SIZE}/chapters.ps | head -1 | awk '{print $$2}' > appendix-start
d258 1
a258 1
Chapter/${SIZE}/chapters.txt: ${CHAPTERS} ids.mm ${SIZE}/Xref 
d260 1
a260 1
	  ls -tl ${CHAPTERS} ids.mm ${SIZE}/Xref $@@; \
d264 1
a264 1
	(cat ids.mm global.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
d270 2
a271 2
	  >Chapter/${SIZE}/chapters.txt.tmp 2>${SIZE}/Toc/book
	mv Chapter/${SIZE}/chapters.txt.tmp Chapter/${SIZE}/chapters.txt
d273 1
a273 1
# XXX	grep %%Pages: Chapter/${SIZE}/chapters.txt | head -1 | awk '{print $$2}' > appendix-start
d279 1
a279 1
Chapter/${SIZE}/appendix.ps appendix: ${APPENDICES} ${AUXFILES} ${SIZE}/Xref appendix-start
d286 1
a286 1
	(echo .nr % $$page; cat global.mm ${SIZE}/Xref ${SIZE}/chapternumbers ids.mm; \
d291 2
a292 2
	  >Chapter/${SIZE}/appendix.ps.tmp 2>${SIZE}/Toc/appendix
	mv Chapter/${SIZE}/appendix.ps.tmp Chapter/${SIZE}/appendix.ps
d298 1
a298 1
Chapter/${SIZE}/ps/toc.ps toc toc.ps: title.${SIZE} ${AUXFILES} ${SIZE}/Xref ctoc/preface.mm
d307 1
a307 1
	${SOELIM} ${SIZE}/Xref ${SIZE}/ids.mm title.${SIZE} global.mm reset.mm ${SIZE}/chapternumbers ${SIZE}/toc.mm \
d312 2
a313 2
	  > Chapter/${SIZE}/ps/toc.ps.tmp 2>${SIZE}/Toc/toc
	mv Chapter/${SIZE}/ps/toc.ps.tmp Chapter/${SIZE}/ps/toc.ps
d315 2
a316 2
	rm -f Chapter/${SIZE}/nps/00-toc.ps
	ln Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/nps/00-toc.ps
d321 1
a321 1
Chapter/${SIZE}/appendix.txt: ${APPENDICES} ${AUXFILES} ${SIZE}/Xref appendix-start
d333 1
a333 1
	  >Chapter/${SIZE}/appendix.txt 2>${SIZE}/Toc/appendix
d420 1
a420 1
	rm -f Chapter/${SIZE}/[0-9].ps Chapter/${SIZE}/[A-Z].ps Chapter/${SIZE}/*.txt
d430 2
a431 2
	gzip < Chapter/${SIZE}/book.ps >/var/spool/ftp/pub/.FINAL/book.ps.gz
	mkthumbnail < Chapter/${SIZE}/book.ps 1 2000 | gzip  >/var/spool/ftp/pub/.FINAL/thumbnail.ps.gz
d435 1
a435 1
	gzip < Chapter/${SIZE}/book.ps > ${FTP}/book.ps.gz
d437 1
a437 1
	cd Chapter/${SIZE}/txt; \
d441 1
a441 1
	-cd Chapter/${SIZE}/nps; \
d451 2
a452 2
	mkdir -p Chapter/${SIZE}/pdf
	cd Chapter/${SIZE}/ps; \
d467 1
a467 1
	rm -rf Chapter/${SIZE}
d472 1
a472 1
	cd Chapter/${SIZE}/txt; \
d475 1
a475 1
	cp -p Chapter/${SIZE}/pdf/* Chapter/${SIZE}/STATUS.ps Chapter/${SIZE}/STATUS.txt ${WWW}
d499 1
a499 1
	  psfile=Chapter/${SIZE}/ps/`echo $$i | sed 's:.mm$$:.ps:'`; \
d523 1
a523 1
	  psfile=Chapter/${SIZE}/ps/`echo $$i | sed 's:.mm$$:.ps:'`; \
d545 2
a546 2
	${TBL} STATUS | groff ${ROFFDEBUG} -U >Chapter/${SIZE}/STATUS.ps -rW${WIDTH.${SIZE}}
	${TBL} STATUS | nroff > Chapter/${SIZE}/STATUS.txt
d565 2
a566 2
foreword.ps preface.ps ${POSTSCRIPT}:  ${SIZE}/Toc/book Chapter/${SIZE}/ps \
	   Chapter/${SIZE}/nps ${SIZE}/chapternumbers ids.mm 
d592 1
a592 1
	   (${SOELIM} ids.mm ${MACROFILE} ; echo ".ds RCS-ID $$RCSID"; \
d598 1
a598 1
	 >Chapter/${SIZE}/ps/$@@.tmp 2>${SIZE}/Toc/$$base; \
d600 1
a600 1
	mv Chapter/${SIZE}/ps/$@@.tmp Chapter/${SIZE}/ps/$@@; \
d602 1
a602 1
	page=`awk < Chapter/${SIZE}/ps/$@@ '/%%Page:/ {page=$$2 }; END {print page}'`; \
d604 1
a604 1
	  filename=Chapter/${SIZE}/nps/$$prefix-$@@; \
d606 1
a606 1
	  filename=Chapter/${SIZE}/nps/0$$chapter-$@@; \
d608 1
a608 1
	  filename=Chapter/${SIZE}/nps/$$chapter-$@@; \
d619 1
a619 1
	ln Chapter/${SIZE}/ps/$@@ $$filename; \
d625 1
a625 1
#	TZ=Etc/GMT touch -t $$timestamp Chapter/${SIZE}/ps/`basename $@@`;
d631 1
a631 1
preface.pdf ${CHAPTERS:.mm=.pdf} ${APPENDICES:.mm=.pdf}: ${@@:.pdf=.ps} Chapter/${SIZE}/pdf
d634 2
a635 2
		-sOutputFile=Chapter/${SIZE}/pdf/$@@ -c save pop -f \
		Chapter/${SIZE}/ps/${@@:.pdf=.ps}
d665 1
a665 1
${TEXTDOCS}: ${SIZE}/Toc/book Chapter/${SIZE}/txt ${SIZE}/chapternumbers  ${SIZE}/Xref ids.mm
d687 1
a687 1
	   ${SOELIM} global.mm ids.mm; echo ".ds RCS-ID $$RCSID"; \
d693 1
a693 1
	    | sed 's:.::g' >Chapter/${SIZE}/txt/$@@.tmp; \
d695 1
a695 1
	mv Chapter/${SIZE}/txt/$@@.tmp Chapter/${SIZE}/txt/$@@; \
d697 1
a697 1
	  filename=Chapter/${SIZE}/txt/$$prefix-$@@; \
d699 1
a699 1
	  filename=Chapter/${SIZE}/txt/0$$chapter-$@@; \
d701 1
a701 1
	  filename=Chapter/${SIZE}/txt/$$chapter-$@@; \
d704 1
a704 1
	ln Chapter/${SIZE}/txt/$@@ $$filename; \
d708 1
a708 1
	touch Chapter/${SIZE}/txt/`basename $@@`; \
d711 2
a712 2
preface.roff ${CHAPTERS:.mm=.roff} ${APPENDICES:.mm=.roff}:	${SIZE}/Toc/book Chapter/${SIZE}/roff \
			${SIZE}/chapternumbers  ${SIZE}/Xref ids.mm
d734 1
a734 1
	   ${SOELIM} global.mm ids.mm; echo ".ds RCS-ID $$RCSID"; \
d740 1
a740 1
	     >Chapter/${SIZE}/roff/$@@.tmp; \
d742 1
a742 1
	mv Chapter/${SIZE}/roff/$@@.tmp Chapter/${SIZE}/roff/$@@; \
d744 1
a744 1
	  filename=Chapter/${SIZE}/roff/$$prefix-$@@; \
d746 1
a746 1
	  filename=Chapter/${SIZE}/roff/0$$chapter-$@@; \
d748 1
a748 1
	  filename=Chapter/${SIZE}/roff/$$chapter-$@@; \
d751 1
a751 1
	ln Chapter/${SIZE}/roff/$@@ $$filename; \
d756 1
a756 1
	@@touch Chapter/${SIZE}/roff/`basename $@@`
d760 1
a760 1
# 	page=`egrep "^Chapter/*\<$$base\>" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
d794 1
a794 1
	   (${SOELIM} global.mm ids.mm; echo ".ds RCS-ID $$RCSID"; \
d802 2
a803 2
	if [ ! -d Chapter/${SIZE}/prod ]; then \
	  mkdir -p Chapter/${SIZE}/prod; \
d805 3
a807 3
	cp -p Chapter/${SIZE}/book.ps Chapter/${SIZE}/prod
	emacs -batch Chapter/${SIZE}/book.ps -l $F/massageps.el -f makeframe -f exit
	rm -f Chapter/${SIZE}/book.ps~
d836 2
a837 2
Chapter/${SIZE}/errata.ps:  errata.ps
Chapter/${SIZE}/errata.txt:  errata.txt
d839 2
a840 2
Chapter/${SIZE}/errata.ascii:  Chapter/${SIZE}/errata.txt
	sed < Chapter/${SIZE}/errata.txt 's:.::g' >Chapter/${SIZE}/errata.ascii
d842 4
a845 4
install-errata: Chapter/${SIZE}/errata.ps  Chapter/${SIZE}/errata.txt Chapter/${SIZE}/errata.ascii
	-cp -p Chapter/${SIZE}/errata.ps /var/spool/ftp/pub/cfbsd/errata-3.ps
	-cp -p Chapter/${SIZE}/errata.txt /var/spool/ftp/pub/cfbsd/errata-3.txt
	-sed < Chapter/${SIZE}/errata.txt 's:.::g' > /var/spool/ftp/pub/cfbsd/errata-3.ascii
d851 2
a852 2
install-cd:   Chapter/${SIZE} book.txt package-doc merge makesect
	mv Chapter/${SIZE}/book.txt book
d858 1
a858 1
	tar cf - ${RCS-FILES} Chapter/${SIZE}/book.ps Chapter/${SIZE}/ps/toc.ps | gzip >book.tar.gz
d861 1
a861 1
	tar cf - Chapter/${SIZE}/book.ps Chapter/${SIZE}/ps/toc.ps | gzip >ps.tar.gz
d906 1
a906 1
${DIRECTORIES} fmt/exlist fmt/figlist fmt/index fmt/tablist fmt/toc Chapter/${SIZE}/pdf ctoc:
d918 1
a918 1
	   >Chapter/${SIZE}/$@@ 2>${SIZE}/Toc/$@@;
d927 1
a927 1
	   >Chapter/${SIZE}/$@@;
d936 1
a936 1
	   >Chapter/${SIZE}/$@@;
d942 1
a942 1
	   >Chapter/${SIZE}/$@@.tables 2>${SIZE}/Toc/$@@;
d950 1
a950 1
ids.mm:	${IDSRC}  mkids
d952 2
d991 2
a992 2
	  >Chapter/${SIZE}/appendix.ps.tmp 2>${SIZE}/Toc/appendix
	mv Chapter/${SIZE}/appendix.ps.tmp Chapter/${SIZE}/appendix.ps
d998 1
a998 1
	mv Chapter/${SIZE}/packages.ps  Chapter/${SIZE}/packages.txt book/docs
d1000 2
a1001 2
	mv Chapter/${SIZE}/packages.ps book/docs/packages-by-category.ps
	mv Chapter/${SIZE}/packages.txt book/docs/packages-by-category.txt
d1024 1
a1024 1
	    ddest=Chapter/complete/ps/$$dest; \
d1032 3
a1034 3
	  if [ title.${SIZE} -nt Chapter/${SIZE}/ps/toc.ps -o \
               preface.mm -nt Chapter/${SIZE}/ps/toc.ps -o \
               toc.mm -nt Chapter/${SIZE}/ps/toc.ps ]; then \
d1046 1
a1046 1
Chapter/workshop/book.ps: title.${SIZE} ${ALL-SOURCES} texts
d1048 3
a1050 3
	mv Chapter/${SIZE}/chapters.ps Chapter/${SIZE}/book.ps
	emacs -batch Chapter/${SIZE}/book.ps -l $F/massageps.el -f massageps2 -f exit
	rm -f Chapter/${SIZE}/*~
@


2.44
log
@Get X and Y origins the right way round.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.43 2003/03/29 05:14:02 grog Exp grog $
a194 1
	rm Chapter/${SIZE}/chapters.ps
d200 4
a203 6
	cat Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/chapters.ps \
	  Chapter/${SIZE}/appendix.ps >Chapter/${SIZE}/book.ps
	emacs -batch Chapter/${SIZE}/book.ps -l $F/massageps.el -f massageps -f exit
# If we remove these files, we'll have to rebuild every time.
#	rm -f Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/chapters.ps Chapter/${SIZE}/appendix.ps
	rm -f Chapter/${SIZE}/*~
d833 1
a833 1
	rcsdiff -wu -r${EDITION} ${SOURCES} >$@@ 2>&1
d874 1
a874 1
	    rcsdiff -r3.0 -uw $$i.mm 2>/dev/null >$@@/$$i; \
d876 1
a876 1
	    rcsdiff -uw $$i.mm 2>/dev/null >$@@/$$i; \
a1053 4

crap:
	for i in ${XCHAPTERS.complete}; do echo $$i; echo reset.mm; done
	echo ${LCHAPTER.complete}@


2.43
log
@Adjust dimensions.
Minor mods.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.41 2003/01/18 04:13:28 grog Exp grog $
d47 2
a48 2
X_ORIGIN	=	45
Y_ORIGIN	=	65
d91 1
a91 1
CHAPTERS.complete =  introduction.mm  concepts.mm \
d99 5
a103 1
		     current.mm upgrading.mm building.mm 
d113 2
d246 2
a247 1
          for i in ${CHAPTERS}; do ${SOELIM} $$i  reset.mm; done) | \
d309 2
a310 2
	${SOELIM} ${SIZE}/Xref title.${SIZE} global.mm reset.mm ${SIZE}/chapternumbers ${SIZE}/toc.mm \
	    reset.mm foreword.mm reset.mm preface.mm  | \
d408 1
a408 1
all-chapters: ${POSTSCRIPT}
d567 1
a567 1
${POSTSCRIPT}:  ${SIZE}/Toc/book Chapter/${SIZE}/ps \
d818 2
a819 2
	sed < ${TOOLS}/massageps.el > massageps.el "s:@@XORIG@@:${X_ORIGIN}:; s:@@YORIG@@:${Y_ORIGIN}:; s:@@HEIGHT@@:$$H:g; s:@@WIDTH@@:$$W:"; \
#	sed < ${TOOLS}/massagetex.el > massagetex.el "s:@@XORIG@@:${X_ORIGIN}:; s:@@YORIG@@:${Y_ORIGIN}:; s:@@HEIGHT@@:$$H:g; s:@@WIDTH@@:$$W:"
d1058 3
@


2.42
log
@First phase of final draft, stragglers.
@
text
@a17 1
# The second edition is printed in the format 9" high by 7" wide
d25 4
a28 1
HEIGHT.complete = 9.2i
d33 1
a33 1
MARGINS = 1.2
d47 2
a48 2
X_ORIGIN	=	50
Y_ORIGIN	=	30
d91 1
a91 1
CHAPTERS.complete =  introduction.mm concepts.mm \
d214 1
a214 1
thumbnails: massageps.el
d218 1
d591 1
a591 1
	 groff ${ROFFDEBUG} -U -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} \
d971 2
@


2.41
log
@Checkpoint 18 January.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.39 2003/01/02 01:03:29 grog Exp grog $
d70 1
a70 1
PREFACE = preface.mm
a87 1
# Ones left out of the second edition for lack of time: mobile.mm, international.mm
d89 1
a89 1
CHAPTERS.complete =  introduction.mm concepts.mm  \
d97 1
a97 3
		     current.mm upgrading.mm building.mm  

#		     micronet.mm
d100 1
d102 1
d112 1
a112 1
APPENDICES.complete =  terminology.mm biblio.mm evolution.mm 
d159 1
a159 1
CTOCFILES	=	${CHAPTERS:%=ctoc/%} ${APPENDICES:%=ctoc/%}
d237 1
a237 1
          for i in ${CHAPTERS}; do ${SOELIM} reset.mm $$i; done) | \
d278 1
a278 1
	(echo .nr % $$page; cat global.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
d290 4
a293 1
Chapter/${SIZE}/ps/toc.ps toc toc.ps: title.${SIZE} ${AUXFILES} ${SIZE}/Xref
d295 1
a295 1
	  ls -tl $@@@@ title.${SIZE} ${AUXFILES} ${SIZE}/Xref; \
d299 2
a300 2
	${SOELIM} ${SIZE}/Xref title.${SIZE} reset.mm global.mm ${SIZE}/chapternumbers ${SIZE}/toc.mm reset.mm ${SIZE}/tables.mm \
	    reset.mm ${PREFACE} | \
d475 1
a475 1
STATUS:	preface.mm ${CHAPTERS} ${APPENDICES}
d560 1
a560 1
	-base=${@@:.ps=}; \
@


2.40
log
@Checkpoint 12 January.
@
text
@d94 1
a94 1
		     printers.mm extras.mm  emulate.mm netintro.mm netsetup.mm \
d113 1
a113 1
APPENDICES.complete =  terminology.mm biblio.mm evolution.mm
@


2.39
log
@Interim creating ctocfiles.
@
text
@d1 1
a1 1
# Makefile for FreeBSD intro book
d4 1
a4 1
# $Id: Makefile,v 2.38 2002/12/22 04:24:03 grog Exp grog $
d16 1
a16 1
# ROFFDEBUG = -b
d90 11
a100 8
CHAPTERS.complete = introduction.mm concepts.mm evolution.mm \
	quickinstall.mm shareinstall.mm install.mm postinstall.mm \
	desktop.mm unixref.mm unixadmin.mm ports.mm extras.mm netintro.mm netsetup.mm \
        isp.mm modems.mm ppp.mm dns.mm firewall.mm netdebug.mm \
	netclient.mm netserver.mm mua.mm \
	mta.mm xtheory.mm starting.mm configfiles.mm \
	filesys.mm disks.mm vinum.mm burncd.mm tapes.mm printers.mm current.mm \
	upgrading.mm building.mm emulate.mm # micronet.mm
d113 1
a113 1
APPENDICES.complete =  terminology.mm biblio.mm
a179 18
# The default target, all, is in book.${SIZE}.make. The ${SOURCES} is to ensure that the
# files stay checked out of RCS for all three makes.
# default:	${SOURCES}  Chapter/${SIZE} ${SIZE}/Toc
# 	make all
# 	make Xref.new
# 	make all
# 	make ps/toc.ps index.ps
default:	book.${SIZE}

# XXX include book.${SIZE}.make

# Use this for the long version
# book.${SIZE}.make:  Makefile makebookmakefile
#	./makebookmakefile ${POSTSCRIPT}

book.${SIZE}.make:  Makefile makebookmakefile 
	SIZE=${SIZE} ./makebookmakefile "${SOURCES:.mm=.ps}" "${PSDOCS}"

a181 4
# Dummy target.  If it's included as a dependency, it causes the
# target to be executed, since there's no file called .FORCE
.FORCE:

d192 1
a192 1
Chapter/complete/book.ps: title.${SIZE} ${ALL-SOURCES} texts 
d328 3
a330 1
${SIZE}/chapternumbers: ${SOURCES} getchapternumbers
d1039 5
@


2.38
log
@Checkin 22 December
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.37 2002/11/22 07:46:40 grog Exp grog $
a13 1
PATH 	= ${PATH}:.
d50 2
a51 2
TEXTSIZE = 11
LINESPACING = 13
d65 1
a65 1
.SUFFIXES: .mm .ps .psl .PS .txt .roff .html .ascii .pdf
d92 1
a92 1
	desktop.mm unixref.mm ports.mm extras.mm netintro.mm netsetup.mm \
d125 2
a126 1
AUXFILES = ${SIZE}/toc.mm ${SIZE}/tables.mm ${SIZE}/index.mm ids.mm ${SIZE}/Xref ${SIZE}/chapternumbers packages_body.mm
d151 1
a151 1
	errata.mm errata.html textintro.mm
d156 4
d192 1
a192 1
book.${SIZE}.make:  Makefile makebookmakefile
d206 1
a206 1
all book.${SIZE}:	tools ${DIRECTORIES} massage Chapter/${SIZE}/book.ps
a221 8
Chapter/workshop/book.ps: title.${SIZE} ${ALL-SOURCES} texts
	@@echo +++ $@@
	mv Chapter/${SIZE}/chapters.ps Chapter/${SIZE}/book.ps
	emacs -batch Chapter/${SIZE}/book.ps -l $F/massageps.el -f massageps2 -f exit
	rm -f Chapter/${SIZE}/*~
# Touch the file so that it's newer than the log files
	touch $@@

d307 1
a307 1
	touch $@@@@
d327 1
a327 1
	touch $@@@@
a346 17
# Title matter, table of contents and preface--text version
Chapter/${SIZE}/txt/toc.txt: textintro.mm errata.mm title.${SIZE} ${AUXFILES} ${SIZE}/Xref
	@@if [ -f $@@ ]; then \
	  ls -tl $@@ title.${SIZE} ${AUXFILES} ${SIZE}/Xref; \
	else \
	  echo +++ $@@ " doesn't exist, rebuilding"; \
	fi
	${SOELIM} ${SIZE}/Xref textintro.mm title.${SIZE} reset.mm global.mm ${SIZE}/chapternumbers \
	    ${SIZE}/toc.mm reset.mm ${SIZE}/tables.mm reset.mm ${PREFACE} | \
	  ${TOOLS}/stripcond ${TAGS.${SIZE}} | ${PIC} | ${TBL} | \
	   nroff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW7.9i -rPS=${TEXTSIZE} \
	    -rLS=${LINESPACING} -mpic ${MACROFILE} - \
	  > Chapter/${SIZE}/txt/toc.txt 2>${SIZE}/Toc/toc
	-egrep -v ^'File|PSPIC|><' ${SIZE}/Toc/toc
# Touch the file so that it's newer than the log files
	touch $@@

d458 3
a460 2
	cd Chapter/${SIZE}/nps; \
	for i in [0-9]*; do \
d477 1
a477 1
	rm -f ${WWW}/* STATUS*
d480 3
a482 6
	sed 's:.::g' < toc.txt > 00-toc.txt; \
	for i in [0-9]*; do cp -p $$i ${WWW}/CFBSD-$$i; done
	-cd Chapter/${SIZE}/pdf; \
	for i in [0-9]*; do cp -p $$i ${WWW}/CFBSD-$$i; done; \
	cd ..; \
	cp STATUS.ps STATUS.txt ${WWW}; \
d557 3
a559 5
	echo '<p><a href="CFBSD-00-toc.pdf">Chapter 0 (preface) in PDF format<a>' > $@@
	echo '<br><a href="CFBSD-00-toc.txt">Chapter 0 (preface) in ASCII<a>' >> $@@
# Get preface in here too
#	ch=0; \
#	for j in preface.mm ${CHAPTERS}; do \
d563 5
a567 7
	  if [ $$ch -lt 10 ]; then \
	    echo "<p><a href=\"CFBSD-0$$ch-$$i.pdf\">Chapter $$ch ($$i) in PDF format<a>" >>$@@; \
	    echo "<br><a href=\"CFBSD-0$$ch-$$i.txt\">Chapter $$ch ($$i) in ASCII<a>" >>$@@; \
	  else \
	    echo "<p><a href=\"CFBSD-$$ch-$$i.pdf\">Chapter $$ch ($$i) in PDF format<a>" >>$@@; \
	    echo "<br><a href=\"CFBSD-$$ch-$$i.txt\">Chapter $$ch ($$i) in ASCII<a>" >>$@@; \
	  fi; \
d574 1
d913 1
a913 1
${DIRECTORIES} fmt/exlist fmt/figlist fmt/index fmt/tablist fmt/toc Chapter/${SIZE}/pdf:
d982 1
a1008 8
myci:
	ci -d  -m"Third edition nits" ${PREFACE} ${SOURCES} grog.mm title.${SIZE} \
	global.mm textintro.mm

myco:
	co -M -f ${PREFACE} ${SOURCES} grog.mm title.${SIZE} \
	global.mm textintro.mm

d1032 1
a1032 1
	       touch $$dest; \
d1042 14
@


2.37
log
@Checkpoint 23 November.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.36 2002/11/13 03:50:12 grog Exp grog $
a89 8
CHAPTERS.complete =  \
	introduction.mm concepts.mm evolution.mm quickinstall.mm \
	shareinstall.mm install.mm postinstall.mm desktop.mm ports.mm \
	extras.mm xtheory.mm unixref.mm starting.mm configfiles.mm \
	filesys.mm disks.mm vinum.mm burncd.mm tapes.mm printers.mm \
	current.mm upgrading.mm building.mm emulate.mm netintro.mm netsetup.mm \
	isp.mm modems.mm ppp.mm dns.mm firewall.mm netdebug.mm nfs.mm \
	netclient.mm netserver.mm mua.mm mta.mm micronet.mm
d91 11
a101 1
# XXX removed fax.mm mobile.mm
d147 1
a147 1
	merge getch filter getchapternumbers wizard.ps freebie.sty title.${SIZE} \
d301 2
a302 2
	read < appendix-start page; \
	(echo ".pn $$page"; cat reset.mm global.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
d314 1
a314 1
Chapter/${SIZE}/ps/toc.ps toc toc.ps: title.${SIZE} wizard.ps ${AUXFILES} ${SIZE}/Xref
d316 1
a316 1
	  ls -tl $@@@@ title.${SIZE} wizard.ps ${AUXFILES} ${SIZE}/Xref; \
d352 1
a352 1
Chapter/${SIZE}/txt/toc.txt: textintro.mm errata.mm title.${SIZE} wizard.ps ${AUXFILES} ${SIZE}/Xref
d354 1
a354 1
	  ls -tl $@@ title.${SIZE} wizard.ps ${AUXFILES} ${SIZE}/Xref; \
d522 1
a522 1
	echo "| r | l | l | l | r | l | ." >> $@@
d524 2
a525 1
	echo "Chapter#Source file#Revision#Modified (UTC)#Pages#Status" >> $@@
d533 1
a533 1
	    pages="(unknown)"; \
d535 1
d544 1
a544 1
	  echo $$RCSID#$$pages#$$status >> $@@; \
d548 2
a549 1
	echo "Appendix#Source file#Version#Modified (UTC)#Pages#Status" >> $@@
d557 1
a557 1
	    pages="(unknown)"; \
d559 1
d568 1
a568 1
	  echo $$RCSID#$$pages#$$status >> $@@; \
d580 3
a582 1
# XXX Get preface in here too
d628 1
a628 1
	 ${PIC} | ${TBL})) | \
d1062 1
a1062 1
	      ls -l $$i $$ddest; \
d1068 5
@


2.36
log
@Don't copy review stuff to ftp spool.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.35 2002/11/04 07:00:34 grog Exp grog $
d93 1
a93 1
	problems.mm extras.mm xtheory.mm unixref.mm starting.mm configfiles.mm \
d95 1
a95 1
	building.mm current.mm emulate.mm netintro.mm netsetup.mm \
d1047 15
@


2.35
log
@Checkpoint 11 November.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.34 2002/10/29 07:29:13 grog Exp grog $
d453 1
a453 1
	make quickreview 
d459 2
a460 1
quickreview: dear-reviewer STATUS ${FTP}/ps ${FTP}/txt
d511 1
a511 1
STATUS:	preface.mm ${CHAPTERS} ${APPENDICES} # ${FTP}
a570 1
	cp -p Chapter/${SIZE}/STATUS.txt Chapter/${SIZE}/STATUS.ps ${FTP}
d572 1
a572 1
URLS:	preface.mm ${CHAPTERS} ${APPENDICES} # ${FTP}
d686 1
a686 3
	echo chapter $$chapter, prefix $$prefix, filename $$filename; \
	cp Chapter/${SIZE}/pdf/${@@:.rv=.pdf} ${FTP}/CFBSD-$$filename.pdf; \
	cp Chapter/${SIZE}/txt/${@@:.rv=.txt} ${FTP}/CFBSD-$$filename.txt
@


2.34
log
@Remove MPIC, its use-by has expired.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.31 2002/10/29 06:08:56 grog Exp grog $
d95 1
a95 1
	building.mm current.mm upgrade.mm emulate.mm netintro.mm netsetup.mm \
d485 1
a485 1
fullreview: ${POSTSCRIPT} ${TEXTDOCS} texts.ascii dear-reviewer STATUS ${WWW} ps2pdf
d647 5
a651 3
	fi; \
	TZ=Etc/GMT touch -t $$timestamp Chapter/${SIZE}/ps/`basename $@@`

@


2.33
log
@*sigh* Make sure we don't break the co target.
@
text
@d617 1
a617 1
	   (${SOELIM} ids.mm ${MPIC} ${MACROFILE} ; echo ".ds RCS-ID $$RCSID"; \
@


2.32
log
@Really get it right.
@
text
@d847 1
a847 1
	co -l -M Makefile paths.make
@


2.31
log
@Make sure we get round to checking out again.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.30 2002/10/29 06:08:23 grog Exp grog $
d847 1
a847 1
	co -lM Makefile paths.make
@


2.30
log
@Check ourselves and paths.make out again.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.29 2002/10/27 00:44:23 grog Exp grog $
d846 1
a846 1
	ci -d  ${RCS-FILES} totidy
@


2.29
log
@Checkpoint 27 October 2002
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.28 2002/10/13 07:16:47 grog Exp grog $
d847 1
@


2.28
log
@Split mail chapter.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.27 2002/06/16 03:11:27 grog Exp grog $
d90 9
a98 9
CHAPTERS.complete = introduction.mm concepts.mm evolution.mm quickinstall.mm \
		    shareinstall.mm install.mm postinstall.mm desktop.mm ports.mm problems.mm \
		    extras.mm \
		    xtheory.mm unixref.mm starting.mm configfiles.mm \
		    filesys.mm disks.mm vinum.mm burncd.mm tapes.mm printers.mm \
		    building.mm current.mm upgrade.mm emulate.mm netintro.mm netsetup.mm isp.mm \
		    modems.mm ppp.mm dns.mm \
		    firewall.mm netdebug.mm nfs.mm netbasics.mm mua.mm mta.mm \
		    www.mm micronet.mm
d267 1
a267 1
	grep %%Pages: Chapter/${SIZE}/chapters.ps | head -1 | awk '{print $$2}' > lastpage
d287 2
a288 2
# XXX	grep %%Pages: Chapter/${SIZE}/chapters.txt | head -1 | awk '{print $$2}' > lastpage
	grep '^><Last Page' ${SIZE}/Toc/book | tail -1 | awk '{print $$3}' > lastpage
d422 1
a422 1
	rm -f book.longmakefile paths.make filelist lastpage
d1043 3
@


2.27
log
@Add new review targers.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.25 2002/05/05 02:36:40 grog Exp grog $
d95 1
a95 1
		    building.mm current.mm emulate.mm netintro.mm netsetup.mm isp.mm \
d97 1
a97 1
		    firewall.mm netdebug.mm nfs.mm netbasics.mm email.mm \
d293 1
a293 1
Chapter/${SIZE}/appendix.ps appendix: ${APPENDICES} ${AUXFILES} ${SIZE}/Xref
d332 1
a332 1
Chapter/${SIZE}/appendix.txt: ${APPENDICES} ${AUXFILES} ${SIZE}/Xref
d1038 5
@


2.26
log
@Checkpoint 12 June 2002
@
text
@d478 1
d484 5
a488 1
fullreview: newdir ${POSTSCRIPT} ${TEXTDOCS} texts.ascii wwwreview
d493 1
a493 1
wwwreview: dear-reviewer STATUS ${WWW} ps2pdf
@


2.25
log
@Checkpoint 5 May.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.23 2001/12/22 02:22:48 grog Exp grog $
d116 1
a116 1
	      Chapter/${SIZE}/nps Chapter/${SIZE}/roff
d121 1
a121 1
TXTDOCS = Chapter/${SIZE}/chapters.txt Chapter/${SIZE}/appendix.txt Chapter/${SIZE}/ps/toc.txt
d157 1
d201 1
d227 1
a227 1
	cat Chapter/${SIZE}/ps/toc.txt Chapter/${SIZE}/chapters.txt \
d350 1
a350 1
Chapter/${SIZE}/ps/toc.txt: textintro.mm errata.mm title.${SIZE} wizard.ps ${AUXFILES} ${SIZE}/Xref
d361 1
a361 1
	  > Chapter/${SIZE}/ps/toc.txt 2>${SIZE}/Toc/toc
d432 1
a432 1
all-chapters: ${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps}
d463 1
a463 1
	sed 's:.::g' < ../toc.txt > 00-toc.txt; \
d483 5
d490 1
d492 1
a492 1
	sed 's:.::g' < ../toc.txt > 00-toc.txt; \
a503 1
	cp $@@.html ${WWW}/cfbsd.html
d540 1
a540 1
	ch=65; \
d586 1
a586 1
preface.ps ${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps}:  ${SIZE}/Toc/book Chapter/${SIZE}/ps \
d588 1
a588 1
	@@-base=${@@:.ps=}; \
d683 1
a683 1
txt:	${CHAPTERS:.mm=.txt}
d685 1
a685 2
preface.txt ${CHAPTERS:.mm=.txt} ${APPENDICES:.mm=.txt}:	${SIZE}/Toc/book Chapter/${SIZE}/txt \
			${SIZE}/chapternumbers  ${SIZE}/Xref ids.mm
d687 1
a687 1
	@@base=${@@:.txt=}; \
@


2.24
log
@Checkpoint 14 April.
@
text
@d93 1
a93 1
		    xtheory.mm unixref.mm starting.mm \
d473 19
d509 1
a509 1
	echo "Chapter#Source file#Version#Modified (UTC)#Pages#Status" >> $@@
d638 4
a641 1
# Remake individual chapters in PDF
d648 1
a672 1
	cp Chapter/${SIZE}/nps/$$filename.ps ${FTP}/CFBSD-$$filename.ps; \
d675 2
@


2.23
log
@Checkpoint 22 December 2001
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.21 2000/10/07 23:25:25 grog Exp grog $
d13 2
a14 1
EDITION = third_edition
d40 1
a40 1
WIDTH.complete = 5.8i
d51 2
a52 12
TEXTSIZE = 10
LINESPACING = 12
# Dimensions for man pages
MANHEIGHT = 9i
MANHEIGHT.complete = 9i
MANHEIGHT.kernel = 11i
MANWIDTH = 4.675i
# XXX Why doesn't the title move when I change this?  It's correct at 6.5" only
MANWIDTH.complete = 5.8i
MANWIDTH.kernel = 6.27i
# MANWIDTH.complete = 6.4i
MANWIDTH.test = 5.9i
d94 1
a94 1
		    filesys.mm disks.mm burncd.mm tapes.mm printers.mm \
d96 1
a96 1
		    modems.mm ppp.mm slip.mm dns.mm \
d98 2
a99 1
		    www.mm fax.mm micronet.mm mobile.mm
a114 6
# Man page sections
MANSUFFIX.short = X
MANSUFFIX.long = long	# history
MANSUFFIX.network = network
MANSUFFIX.bisdn = bisdn

d116 1
a116 1
	      Chapter/${SIZE}/nps Chapter/${SIZE}/roff Chapter/${SIZE}/man
d119 1
a119 1
PSDOCS = Chapter/${SIZE}/chapters.ps Manpages Chapter/${SIZE}/appendix.ps Chapter/${SIZE}/ps/toc.ps
d121 1
a121 1
TXTDOCS = Chapter/${SIZE}/chapters.txt Manpages Chapter/${SIZE}/appendix.txt Chapter/${SIZE}/ps/toc.txt
d135 1
a135 1
TOCFILES = ${SIZE}/Toc/toc ${SIZE}/Toc/book ${SIZE}/Toc/toc.man ${SIZE}/Toc/appendix
d144 1
a144 1
RCS-FILES = ${PREFACE} ${SOURCES} Makefile makebookmakefile paths.make tidy.el grog.mm part2.mm \
d205 1
a205 2
	emacs -batch Chapter/${SIZE}/manpages -l $F/massageps.el -f renumber -f exit
	cat Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/chapters.ps Chapter/${SIZE}/manpages \
d209 1
a209 1
#	rm -f Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/chapters.ps Manpages Chapter/${SIZE}/appendix.ps
d233 1
a233 1
	cat Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/chapters.ps Chapter/${SIZE}/manpages \
a236 11
# Build the book proper, including TOC and index.  The dependency texts makes the
# individual documents.
Chapter/${SIZE}/book-without-manpages.ps: title.${SIZE} ${ALL-SOURCES} texts
	@@echo +++ $@@
	cat Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/chapters.ps \
	  Chapter/${SIZE}/appendix.ps >Chapter/${SIZE}/book-without-manpages.ps
	emacs -batch Chapter/${SIZE}/book-without-manpages.ps -l $F/massageps.el -f massageps -f exit
	rm -f Chapter/${SIZE}/*~
# Touch the file so that it's newer than the log files
	touch $@@

d250 1
a250 1
Chapter/${SIZE}/chapters.ps chapters: ${CHAPTERS} part2.mm ids.mm ${SIZE}/Xref 
d252 1
a252 1
	  ls -tl ${CHAPTERS} part2.mm ids.mm ${SIZE}/Xref $@@; \
d257 1
a257 1
          for i in ${CHAPTERS}; do ${SOELIM} $$i reset.mm; done; ${SOELIM} part2.mm) | \
a363 25
# Rely on having the command file in order to do anything at all
Manpages: Chapter/${SIZE}/man ${SIZE}/Toc merge makesect .FORCE
	@@if [ -f manpagestart.${SIZE} ] && cmp manpagestart.${SIZE} lastpage > /dev/null; then \
	  echo "+++ man pages have not moved--skipping"; \
	else \
	  if [ -f manpagestart.${SIZE} ]; then \
	    echo man page start moved from `cat manpagestart.${SIZE}` to `cat lastpage`; \
	  fi; \
	  echo Making $@@; \
	  MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT.${SIZE}} WIDTH=${MANWIDTH.${SIZE}} makesect ${SIZE}; \
	  cp -p lastpage manpagestart.${SIZE}; \
	fi

# Rely on having the command file in order to do anything at all
manpages.pp: Chapter/${SIZE} ${SIZE}/Toc merge makesect .FORCE
	echo Making $@@
	MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT} WIDTH=${MANWIDTH.${SIZE}} makesect2 ${SIZE}

Manpages-force:
	rm -f manpagestart.${SIZE}
	make SIZE=${SIZE} Manpages

Manmerge:	Manpages-force massage
	emacs -batch Chapter/${SIZE}/manpages -l $F/massageps.el  -f renumber -f exit

d365 1
a365 1
	getchapternumbers ${SIZE} ${SOURCES} > $@@.temp
d407 1
a407 1
		${SIZE}/Toc/8 ${SIZE}/Toc/appendix ${SIZE}/Toc/X ${SIZE}/Toc/toc.man:  ${SIZE}/Toc
d420 1
a420 1
	rm -f book.longmakefile paths.make filelist lastpage manpagestart*
d441 3
a443 1
review:	tools
a458 3
	if [ -f Chapter/${SIZE}/book-without-manpages.ps ]; then \
	  gzip < Chapter/${SIZE}/book-without-manpages.ps > ${FTP}/book-without-manpages.ps.gz; \
	fi
d473 5
a477 2
dear-reviewer:  dear-reviewer-1 dear-reviewer-2 strip2nl STATUS README ${FTP}
	cat dear-reviewer-1 ${FTP}/STATUS.ps dear-reviewer-2 README | sed -f strip2nl > ${FTP}/README
d479 1
a479 1
STATUS:	preface.mm ${CHAPTERS} ${APPENDICES} ${FTP}
d536 1
a536 1
	echo "Note: a \\f(CW*\\fP symbol after the version number indicates that the source file hs been modified since the last checkin.  In this case, the column \`\`Modified'' shows the date of the last modification.  The version information of any such file may be inaccurate." >> $@@
d541 18
d940 1
a940 1
	mkids ${IDSRC}
d991 1
a991 1
	ci -d  -m"Third edition nits" ${PREFACE} ${SOURCES} grog.mm part2.mm title.${SIZE} \
d995 1
a995 1
	co -M -f ${PREFACE} ${SOURCES} grog.mm part2.mm title.${SIZE} \
@


2.22
log
@Checkpoint 20 December 2001
@
text
@d100 1
a100 1
		    shareinstall.mm install.mm xsetup.mm postinstall.mm ports.mm  problems.mm \
d103 1
a103 1
		    filesys.mm disks.mm tapes.mm printers.mm \
d473 1
a473 1
	rm -f index.mm STATUS packages_body_sorted.mm
d511 1
a511 1
	rm -f ${FTP}/ps/*  ${FTP}/txt/* STATUS
d526 1
a526 1
	cat dear-reviewer-1 ${FTP}/STATUS dear-reviewer-2 README | sed -f strip2nl > ${FTP}/README
d530 1
a530 1
	echo ".ll 7.9i" >> $@@
d541 1
a541 1
	ch=0; \
a549 1
	  mod=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$9}'`; \
d551 2
a552 1
	  if [ X$$mod = Xgrog ]; then \
d572 3
a574 3
	  mod=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$9}'`; \
	  RCSID="`${XCHAR} $$ch`#`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 }'`"; \
	  if [ X$$mod = Xgrog ]; then \
d585 2
a586 2
	echo "Note: a \\f(CW*\\fP symbol after the version number indicates that the source file is locked, and thus may have been  modified since the last checkin.  In this case, the column \`\`Modified'' shows the date of the last modification.  The version information of any such file may be inaccurate." >> $@@
	${TBL} STATUS | groff ${ROFFDEBUG} -U >Chapter/${SIZE}/STATUS
d588 1
a588 1
	cp -p Chapter/${SIZE}/STATUS.txt ${FTP}/STATUS
d597 3
a599 3
	mod=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$9}'`; \
	if [ X$$mod = Xgrog ]; then \
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -l $$base.mm | awk '{print $$7 \" \" $$6 \", \" $$8}'` UTC)"; \
a600 1
	echo "    $$base.mm, RCS ID: $$RCSID"; \
d693 1
a693 1
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -l $$base.mm | awk '{print $$7 \" \" $$6 \", \" $$8}'` UTC)"; \
d740 1
a740 1
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -l $$base.mm | awk '{print $$7 \" \" $$6 \", \" $$8}'` UTC)"; \
d796 1
a796 1
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -l $$base.mm | awk '{print $$7 \" \" $$6 \", \" $$8}'` UTC)"; \
@


2.21
log
@Multiple mods over the last year.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.20 1999/07/05 23:04:26 grog Exp grog $
d7 4
d25 1
d37 1
a37 1
WIDTH.ii = 5.8i
d48 1
a48 1
FTP	=	/var/spool/ftp/pub/.../.CFBSD
d66 1
a66 1
SIZES = short long network bisdn complete kernel
d68 3
a70 2
SIZE=complete
TAGS=complete long
d75 1
a75 1
.SUFFIXES: .mm .ps .psl .PS .txt .roff .html
d90 1
a90 1
CHAPTERS.network = netintro.mm phones.mm isp.mm netsetup.mm modems.mm ppp.mm slip.mm \
d94 1
a94 1
CHAPTERS.long = introduction.mm concepts.mm quickinstall.mm install.mm \
d100 2
a101 1
		    shareinstall.mm install.mm xsetup.mm  ports.mm  problems.mm \
d103 1
a103 1
		    filesys.mm disks.mm tapes.mm printers.mm desktop.mm \
d109 2
d117 1
a117 1
APPENDICES.complete =  terminology.mm  commands.mm biblio.mm licenses.mm
d130 1
a130 1
	      Chapter/${SIZE}/nps Chapter/${SIZE}/roff Chapter/${SIZE}/man ${FTP} ${FTP}/ps ${FTP}/txt
d168 1
a168 1
# PostScript for the chapters
d170 1
d217 1
a217 1
Chapter/${SIZE}/book.ps: title.${SIZE} ${ALL-SOURCES} texts 
d229 8
d284 1
a284 1
	  ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d304 1
a304 1
	  ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d326 1
a326 1
	  ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d344 1
a344 1
	  ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d365 1
a365 1
	  ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d382 1
a382 1
	  ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d593 1
a593 1
	-base=${@@:.ps=}; \
d618 3
a620 3
	   (${SOELIM} global.mm ${MPIC} ${MACROFILE} ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   ${SOELIM} ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm | \
	${TOOLS}/stripcond ${TAGS} | \
d651 35
a685 1
# Remake individual chapters in ASCII for review
d711 1
a711 1
	${TOOLS}/stripcond ${TAGS} | \
d729 2
a730 3
	fi
# Touch the file so that it's newer than the log files
	@@touch Chapter/${SIZE}/txt/`basename $@@`
d758 1
a758 1
	${TOOLS}/stripcond ${TAGS} | \
d784 1
a784 1
# 	${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} >$@@
d786 1
a786 1
	touch $@@
d818 1
a818 1
	${TOOLS}/stripcond ${TAGS} | \
a903 1
	
d927 1
a927 1
${DIRECTORIES} fmt/exlist fmt/figlist fmt/index fmt/tablist fmt/toc:
d935 1
a935 1
	${SOELIM} $< | ${TOOLS}/stripcond ${TAGS} | \
d944 1
a944 1
	${SOELIM} $< | ${TOOLS}/stripcond ${TAGS} | \
d954 1
a954 1
	   (${SOELIM} $< | ${TOOLS}/setfont)) | ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d959 1
a959 1
	(${SOELIM} $< | ${TOOLS}/setfont -t) | ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d987 1
d1004 1
a1004 1
	  ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d1015 1
a1015 1
	make TAGS="${TAGS} sorted" packages.ps packages.txt
d1029 6
@


2.20
log
@Update errata targest for third edition.
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.19 1999/05/16 08:40:05 grog Exp grog $
d93 2
a94 2
CHAPTERS.complete = introduction.mm concepts.mm version3.mm quickinstall.mm \
		    install.mm shareinstall.mm problems.mm ports.mm xsetup.mm \
d100 1
a100 1
		    www.mm fax.mm micronet.mm
d265 1
a265 1
          for i in ${CHAPTERS}; do soelim $$i reset.mm; done; soelim part2.mm) | \
d267 1
a267 1
	  groff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} \
d285 1
a285 1
          for i in ${CHAPTERS}; do soelim $$i reset.mm; done) | \
d294 1
d307 1
a307 1
	 for i in ${APPENDICES} ${SIZE}/index.mm; do soelim $$i reset.mm; done; soelim grog.mm) | \
d309 1
a309 1
	  groff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d324 1
a324 1
	soelim ${SIZE}/Xref title.${SIZE} reset.mm global.mm ${SIZE}/chapternumbers ${SIZE}/toc.mm reset.mm ${SIZE}/tables.mm \
d327 1
a327 1
	  groff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d346 1
a346 1
	 for i in ${APPENDICES} ${SIZE}/index.mm; do soelim $$i reset.mm; done; soelim grog.mm) | \
d362 1
a362 1
	soelim ${SIZE}/Xref textintro.mm title.${SIZE} reset.mm global.mm ${SIZE}/chapternumbers \
d399 1
a399 1
	@@cmp $@@ $@@.temp 2>/dev/null; \
d568 1
a568 1
	${TBL} STATUS | groff ${ROFFDEBUG} >Chapter/${SIZE}/STATUS
d575 1
a575 1
	-@@base=${@@:.ps=}; \
d597 1
d600 2
a601 2
	   soelim global.mm ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   soelim ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d603 3
a605 3
	 ${PIC} | ${TBL} | \
	 groff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} \
	    -rPS=${TEXTSIZE} -rLS=${LINESPACING} -mpic ${MACROFILE} - \
d657 2
a658 2
	   soelim global.mm ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   soelim ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d705 2
a706 2
	   soelim global.mm ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   soelim ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d729 10
d741 28
a768 3
	page=`egrep "^Chapter/*\<$$base\>" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	(echo ".pn $$page"; soelim ${MACROFILE} global.mm ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
	${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} >$@@
d821 1
a821 1
install-cd:  book.txt package-doc
d881 2
d885 1
a885 1
	soelim $< | ${TOOLS}/stripcond ${TAGS} | \
d887 1
a887 1
	   groff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d894 1
a894 1
	soelim $< | ${TOOLS}/stripcond ${TAGS} | \
d904 1
a904 1
	   (soelim $< | ${TOOLS}/setfont)) | ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d909 2
a910 2
	(soelim $< | ${TOOLS}/setfont -t) | ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
	   groff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} \
d952 1
a952 1
	(echo ".pn $$page"; cat reset.mm global.mm; soelim ${SIZE}/index.mm) | \
d954 1
a954 1
	  groff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
@


2.19
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.18 1999/05/14 07:54:17 grog Exp grog $
d776 6
a781 6
	-cp -p Chapter/${SIZE}/errata.ps /var/spool/ftp/pub/cfbsd/errata-2.ps
	-cp -p Chapter/${SIZE}/errata.txt /var/spool/ftp/pub/cfbsd/errata-2.txt
	-sed < Chapter/${SIZE}/errata.txt 's:.::g' > /var/spool/ftp/pub/cfbsd/errata-2.ascii
	rm -f /var/spool/ftp/pub/cfbsd/errata-2
	-ln /var/spool/ftp/pub/cfbsd/errata-2.ascii /var/spool/ftp/pub/cfbsd/errata-2
	-cp -p errata.html /usr/local/www/data/errata-2.html
@


2.18
log
@Base third edition
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.17 1999/05/12 01:09:45 grog Exp grog $
d464 1
a464 2
# packages.mm::	packages_body.mm packages_body_sorted.mm
packages.mm:	packages_body.mm
d783 2
a784 1
install-cd:  book.txt package-doc xsetup.ps xsetup.txt
a785 1
	mv Chapter/${SIZE}/ps/xsetup.ps Chapter/${SIZE}/txt/xsetup.txt book/docs
d788 1
d924 1
a924 1
	mv Chapter/${SIZE}/ps/packages.ps  Chapter/${SIZE}/txt/packages.txt book/docs
d926 2
a927 2
	mv Chapter/${SIZE}/ps/packages.ps book/docs/packages-by-category.ps
	mv Chapter/${SIZE}/txt/packages.txt book/docs/packages-by-category.txt
d933 1
a933 1
	ci -d  -r3.1 -m"Base third edition" ${PREFACE} ${SOURCES} grog.mm part2.mm title.${SIZE} \
@


2.17
log
@Checkin 12 May 1999
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.15 1999/02/15 02:47:35 grog Exp grog $
d12 1
a12 1
ROFFDEBUG = -b
d569 2
a570 1
	${TBL} STATUS | nroff > ${FTP}/STATUS
d929 10
@


2.16
log
@Checkin 9 May
@
text
@d93 1
a93 1
CHAPTERS.complete = introduction.mm concepts.mm quickinstall.mm \
d108 1
a108 1
APPENDICES.complete = configfiles.mm version3.mm terminology.mm  commands.mm biblio.mm licenses.mm
@


2.15
log
@Resync after recovering changes since November 1998
@
text
@d4 1
a4 41
# $Id: Makefile,v 2.14 1998/07/20 23:26:10 grog Exp grog $
#
# $Log: Makefile,v $
# Revision 2.14  1998/07/20 23:26:10  grog
# Final version for 2.2.7
#
# Revision 2.12  1998/07/20 08:58:51  grog
# Checkin for 2.2.7
#
# Revision 2.11  1998/03/25 22:39:20  grog
# Checkin before 2.2.6 text version
#
# Revision 2.10  1998/02/03 02:40:40  grog
# Minor mods
#
# Revision 2.9  1998/02/03 00:04:58  grog
# Minor mods
#
# Revision 2.8  1997/12/19 02:28:06  grog
# More restructuring
#
# Revision 2.7  1997/12/16 07:42:11  grog
# More mods
#
# Revision 2.6  1997/12/16 05:53:20  grog
# More thumbnails
#
# Revision 2.5  1997/12/16 04:58:55  grog
# More mods of the build process for thumbnails
#
# Revision 2.4  1997/12/16 01:13:16  grog
# More mods to build structure
#
# Revision 2.3  1997/12/15 23:49:58  grog
# Rearrange build
#
# Revision 2.2  1997/12/15 07:26:49  grog
# More nitpicking
#
# Revision 2.1  1997/12/07 08:34:53  grog
# Base second edition
d9 1
a9 1
EDITION = second_edition
d12 1
a12 1
# ROFFDEBUG = -b
d66 1
a66 1
SHELL = /bin/bash
d95 2
a96 1
		    xtheory.mm unixref.mm filesys.mm disks.mm tapes.mm printers.mm desktop.mm \
d108 1
a108 1
APPENDICES.complete = terminology.mm configfiles.mm commands.mm packages.mm biblio.mm licenses.mm
d265 1
a265 1
          for i in ${CHAPTERS}; do gsoelim $$i reset.mm; done; gsoelim part2.mm) | \
d272 1
a272 1
	-egrep -v ^'File|><' ${SIZE}/Toc/book
d285 1
a285 1
          for i in ${CHAPTERS}; do gsoelim $$i reset.mm; done) | \
d292 1
a292 1
	-egrep -v ^'File|><' ${SIZE}/Toc/book
d306 1
a306 1
	 for i in ${APPENDICES} ${SIZE}/index.mm; do gsoelim $$i reset.mm; done; gsoelim grog.mm) | \
d312 1
a312 1
	-egrep -v ^'File|><' ${SIZE}/Toc/appendix
d323 1
a323 1
	gsoelim ${SIZE}/Xref title.${SIZE} reset.mm global.mm ${SIZE}/chapternumbers ${SIZE}/toc.mm reset.mm ${SIZE}/tables.mm \
d330 1
a330 1
	-egrep -v ^'File|><' ${SIZE}/Toc/toc
d345 1
a345 1
	 for i in ${APPENDICES} ${SIZE}/index.mm; do gsoelim $$i reset.mm; done; gsoelim grog.mm) | \
d350 1
a350 1
	-egrep -v ^'File|><' ${SIZE}/Toc/appendix
d361 1
a361 1
	gsoelim ${SIZE}/Xref textintro.mm title.${SIZE} reset.mm global.mm ${SIZE}/chapternumbers \
d367 1
a367 1
	-egrep -v ^'File|><' ${SIZE}/Toc/toc
d373 3
a375 1
	@@if [ ! -f manpagestart.${SIZE} ]  || ! cmp manpagestart.${SIZE} lastpage > /dev/null; then \
a381 2
	else \
	  echo "+++ man pages have not moved--skipping"; \
d494 1
a494 1
	cd ../txt; \
d496 1
d498 6
a506 11
#	-cd Chapter/${SIZE}/nps; \
#	tar cvzf ${FTP}/ps.tar.gz [0-9]*.ps [A-Z]*.ps; \
#	for i in [0-9]*.ps [A-Z]*.ps; do \
#	  echo $$i; \
#	  gzip -c $$i > ${FTP}/ps/$$i.gz; \
#        done; \
#	for i in [0-9]*.txt [A-Z]*.txt; do \
#	  echo $$i; \
#	  gzip -c $$i > ${FTP}/txt/$$i.gz; \
#        done;

d574 1
a574 1
	@@base=${@@:.ps=}; \
d583 1
d598 2
a599 2
	   gsoelim global.mm ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   gsoelim ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d623 1
a623 1
	egrep -v ^'Chapter|File|><' ${SIZE}/Toc/$$base; \
d655 2
a656 2
	   gsoelim global.mm ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   gsoelim ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d703 2
a704 2
	   gsoelim global.mm ids.mm; echo ".ds RCS-ID $$RCSID"; \
	   gsoelim ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d730 1
a730 1
	(echo ".pn $$page"; gsoelim ${MACROFILE} global.mm ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d845 1
a845 1
	gsoelim $< | ${TOOLS}/stripcond ${TAGS} | \
d850 1
a850 1
	-egrep -v ^'File|><' ${SIZE}/Toc/$@@
d854 1
a854 1
	gsoelim $< | ${TOOLS}/stripcond ${TAGS} | \
d859 1
a859 1
	-egrep -v ^'File|><' ${SIZE}/Toc/$@@
d864 1
a864 1
	   (gsoelim $< | ${TOOLS}/setfont)) | ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d869 1
a869 1
	(gsoelim $< | ${TOOLS}/setfont -t) | ${TOOLS}/stripcond ${TAGS} | ${PIC} | ${TBL} | \
d874 1
a874 1
	-egrep -v ^'File|><' ${SIZE}/Toc/$@@
d912 1
a912 1
	(echo ".pn $$page"; cat reset.mm global.mm; gsoelim ${SIZE}/index.mm) | \
d918 1
a918 1
	-egrep -v ^'File|><' ${SIZE}/Toc/appendix
@


2.14
log
@Final version for 2.2.7
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.12 1998/07/20 08:58:51 grog Exp grog $
d7 3
d208 1
a208 1
TOOLS=/T/Book/tools
@


2.13
log
@Minor mods
@
text
@d823 2
a824 2
	mv book.txt book
	mv Chapter/${SIZE}/xsetup.ps Chapter/${SIZE}/xsetup.txt book/doc
d826 1
a826 1
	tar cf cdbook.tar.gz book
@


2.12
log
@Checkin for 2.2.7
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.11 1998/03/25 22:39:20 grog Exp grog $
d7 3
d823 4
a826 1
	mv book.txt Chapter/${SIZE}/xsetup.ps Chapter/${SIZE}/xsetup.txt book
@


2.11
log
@Checkin before 2.2.6 text version
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.10 1998/02/03 02:40:40 grog Exp grog $
d7 3
d202 1
a202 1
TOOLS=/home/Book/tools
d498 1
a498 1
packages.mm::	packages_body.mm
d819 3
d954 7
@


2.10
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.9 1998/02/03 00:04:58 grog Exp grog $
d7 3
d43 1
a43 1
ROFFDEBUG =
d74 2
d80 1
d100 1
a100 1
.SUFFIXES: .mm .ps .psl .PS .txt .roff
d151 1
a151 1
	      Chapter/${SIZE}/nps Chapter/${SIZE}/roff Chapter/${SIZE}/man
d156 2
d172 3
d184 1
a184 1
	errata.mm errata.html
d239 1
d249 9
a263 1

d281 6
d307 20
d329 2
a330 2
	@@if [ -f $@@ ]; then \
	  ls -tl $@@ ${APPENDICES} ${AUXFILES} ${SIZE}/Xref; \
d332 1
a332 1
	  echo +++ $@@ " doesn't exist, rebuilding"; \
d344 1
a344 1
	touch $@@
d348 2
a349 2
	@@if [ -f $@@ ]; then \
	  ls -tl $@@ title.${SIZE} wizard.ps ${AUXFILES} ${SIZE}/Xref; \
d351 1
a351 1
	  echo +++ $@@ " doesn't exist, rebuilding"; \
d364 35
d444 4
d515 2
a516 4
	gzip < Chapter/${SIZE}/book.ps >~ftp/pub/.FINAL/book.ps.gz
	mkthumbnail < Chapter/${SIZE}/book.ps 1 2000 | gzip  >~ftp/pub/.FINAL/thumbnail.ps.gz

FTP	=	~ftp/pub/.CFBSD
d518 1
a518 1
quickreview: dear-reviewer STATUS
d520 4
a523 7
	gzip < Chapter/${SIZE}/book-without-manpages.ps > ${FTP}/book-without-manpages.ps.gz
	rm -f ${FTP}/ps/*  ${FTP}/txt/*STATUS
	-cd Chapter/${SIZE}/nps; \
	for i in [0-9]*.ps [A-Z]*.ps; do \
	  echo $$i; \
	  gzip -c $$i > ${FTP}/ps/$$i.gz; \
        done; \
d526 14
a539 5
	for i in [0-9]*.txt [A-Z]*.txt; do \
	  echo $$i; \
	  gzip -c $$i > ${FTP}/txt/$$i.gz; \
        done;
	chmod 644 ${FTP}/txt/* ${FTP}/ps/*
d541 1
a541 1
dear-reviewer:  dear-reviewer-1 dear-reviewer-2 strip2nl STATUS README
d544 1
a544 1
STATUS:	preface.mm ${CHAPTERS} ${APPENDICES}
d809 5
a813 4
	-cp -p Chapter/${SIZE}/errata.ps ~ftp/pub/cfbsd/errata-2.ps
	-cp -p Chapter/${SIZE}/errata.txt ~ftp/pub/cfbsd/errata-2.txt
	-cp -p Chapter/${SIZE}/errata.ascii ~ftp/pub/cfbsd/errata-2.ascii
	-ln ~ftp/pub/cfbsd/errata-2.ascii ~ftp/pub/cfbsd/errata-2
d883 1
a883 1
	   nroff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW8i -rPS=${TEXTSIZE} \
d888 18
d913 5
a917 1
	@@echo SIZE: ${SIZE}
d921 1
a921 1
	@@echo APPENDICES: ${APPENDICES}
d923 1
d925 3
a927 1
	@@echo AUXFILES: ${AUXFILES}
a928 1
	@@echo ALL-SOURCES: ${ALL-SOURCES}
d930 2
a931 6
	@@echo REVIEW-SOURCES: ${REVIEW-SOURCES}
	@@echo RCS-FILES: ${RCS-FILES}
	@@echo POSTSCRIPT: ${POSTSCRIPT}
	@@echo BASENAMES : ${BASENAMES }
	@@echo ALLBASES: ${ALLBASES}
	@@echo Tool directory: ${TOOLS}
a947 1

@


2.9
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.8 1997/12/19 02:28:06 grog Exp grog $
d7 3
d172 2
a173 1
	mkids global.mm reset.mm dear-reviewer-1 dear-reviewer-2 strip2nl howto.image README
d710 15
a724 2
errata:
	rcsdiff -wu -r${EDITION} ${SOURCES} 2>$@@ >$@@
@


2.8
log
@More restructuring
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.7 1997/12/16 07:42:11 grog Exp grog $
d7 3
d32 4
d47 1
d60 1
d72 1
d76 1
d83 1
a83 1
SIZES = short long network bisdn complete
d142 1
a142 1
	      Chapter/${SIZE}/nps Chapter/${SIZE}/roff
d317 4
a320 4
Manpages: Chapter/${SIZE} ${SIZE}/Toc merge makesect .FORCE
	@@if [ ! -f manpagestart ]  || ! cmp manpagestart lastpage > /dev/null; then \
	  if [ -f manpagestart ]; then \
	    echo man page start moved from `cat manpagestart` to `cat lastpage`; \
d323 2
a324 2
	  MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT} WIDTH=${MANWIDTH.${SIZE}} makesect ${SIZE}; \
	  cp -p lastpage manpagestart; \
d334 6
a339 2
Manmerge:	Manpages massage
	emacs -batch Chapter/${SIZE}/manpages -l $F/massageps.el  -f massageps -f exit
d393 1
a393 1
	rm -f book.longmakefile paths.make filelist lastpage manpagestart
d706 3
d805 17
@


2.7
log
@More mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.6 1997/12/16 05:53:20 grog Exp grog $
d7 3
d80 1
a80 1
.SUFFIXES: .mm .ps .psl .PS .txt
d130 2
a131 1
DIRECTORIES = ${SIZE} Chapter/${SIZE} ${SIZE}/Toc Chapter/${SIZE}/txt Chapter/${SIZE}/ps Chapter/${SIZE}/nps
d157 1
a157 1
	mkpackages mkpackages-sorted todo backcover mkthumbnails \
d211 1
a211 1
Chapter/${SIZE}/book.ps: title.${SIZE} ${ALL-SOURCES} texts
a214 1
	cp Chapter/${SIZE}/book.ps Chapter/${SIZE}/thumbnail.ps
a215 1
	emacs -batch Chapter/${SIZE}/thumbnail.ps -l $F/massageps.el -f thumbnail -f exit
d222 7
d393 1
a393 1
packages_body.mm:  mkpackages
d410 1
a410 1
release: 
d603 48
@


2.6
log
@More thumbnails
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.5 1997/12/16 04:58:55 grog Exp grog $
d7 3
d59 1
a59 1
MANHEIGHT = 8.8i
a203 1
	grep "%%Pages" Chapter/${SIZE}/book.ps | head -n 1
@


2.5
log
@More mods of the build process for thumbnails
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.4 1997/12/16 01:13:16 grog Exp grog $
d7 3
d379 2
a380 2
packages.mm::	packages_body.mm packages_body_sorted.mm
# packages.mm::	packages_body.mm
@


2.4
log
@More mods to build structure
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.3 1997/12/15 23:49:58 grog Exp grog $
d7 3
d206 1
d208 1
a208 1
	mkthumbnail < Chapter/${SIZE}/book.ps 1 2000 > Chapter/${SIZE}/thumbnail.ps
d379 1
a379 1
packages_body.mm:  mkpackages INDEX
d382 2
a383 1
packages_body_sorted.mm:  mkpackages-sorted INDEX
@


2.3
log
@Rearrange build
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.2 1997/12/15 07:26:49 grog Exp grog $
d7 3
d204 1
a229 1
	ls -tl ${CHAPTERS} part2.mm ids.mm ${SIZE}/Xref $@@
d231 1
a231 1
	  echo +++ $@@: Rebuilding because of $<; \
a249 1
	ls -tl $@@ ${APPENDICES} ${AUXFILES} ${SIZE}/Xref
d251 1
a251 1
	  echo +++ $@@: Rebuilding because of $<; \
a268 1
	ls -tl $@@ title.${SIZE} wizard.ps ${AUXFILES} ${SIZE}/Xref
d270 1
a270 1
	  echo +++ $@@: Rebuilding because of $<; \
d393 1
a393 1
	mkthumbnail < Chapter/${SIZE}/book.ps | gzip  >~ftp/pub/.FINAL/thumbnail.ps.gz
@


2.2
log
@More nitpicking
@
text
@d4 1
a4 1
# $Id: Makefile,v 2.1 1997/12/07 08:34:53 grog Exp grog $
d7 3
d141 1
a141 1
	mkpackages mkpackages-sorted todo backcover \
d194 4
a197 11
# Build the book proper, including TOC and index.  The dependencies here
# should only be things which change between interations, such as the auxiliary
# files (Xref, TOC, index).  The ${PSDOCS} dependency really builds the individual
# chapters.
Chapter/${SIZE}/book.ps: title.${SIZE} ${ALL-SOURCES} ${AUXFILES} ${PSDOCS}
	@@if [ -f $@@ ]; then \
	  echo +++ $@@: Rebuilding because of $<; \
	else \
	  echo +++ $@@ " doesn't exist, rebuilding"; \
	fi
	make texts SIZE=${SIZE}
d201 10
a213 2
# If we remove these files, we'll have to rebuild every time.
#	rm -f Chapter/${SIZE}/ps/toc.ps Chapter/${SIZE}/chapters.ps Manpages Chapter/${SIZE}/appendix.ps
d216 1
a216 1
	touch ${AUXFILES} $@@
d219 3
a221 7
	@@echo +++ $@@: Rebuilding because of $<
	@@if [ -f $@@ ]; then \
	  echo +++ $@@: Rebuilding because of $<; \
	else \
	  echo +++ $@@ " doesn't exist, rebuilding"; \
	fi
#	make ${PSDOCS} ${AUXFILES} Chapter/${SIZE}/book.ps
d225 2
a226 1
Chapter/${SIZE}/chapters.ps chapters: ${CHAPTERS} ${AUXFILES} part2.mm ids.mm 
d246 2
a247 1
Chapter/${SIZE}/appendix.ps appendix: ${APPENDICES} ${AUXFILES}
d266 2
a267 1
Chapter/${SIZE}/ps/toc.ps toc toc.ps: title.${SIZE} wizard.ps ${AUXFILES}
a323 1
	touch $@@
a333 1
	touch $@@
a337 1
	touch $@@
a341 1
	touch $@@
d392 1
@


2.1
log
@Base second edition
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.116 1997/12/02 09:10:10 grog Exp grog $
d7 2
a8 77
# Revision 1.116  1997/12/02 09:10:10  grog
# Minor nitpicking
#
# Revision 1.115  1997/11/29 06:46:39  grog
# Cosmetic mods
#
# Revision 1.114  1997/11/29 03:31:00  grog
# First complete release version of second edition
#
# Revision 1.113  1997/11/28 01:15:45  grog
# Finished all chapters for 2nd edition
#
# Revision 1.112  1997/11/27 01:35:59  grog
# Checkin 27 November 1997
#
# Revision 1.111  1997/11/25 07:59:57  grog
# Checkin 25 November: release quality up to current.mm
#
# Revision 1.110  1997/11/23 22:26:22  grog
# Checkin 24 November, first stab at release version
#
# Revision 1.109  1997/11/07 04:48:16  grog
# Checkin 7 November
#
# Revision 1.108  1997/11/04 08:07:39  grog
# Checkin 5 November
#
# Revision 1.107  1997/11/04 06:14:49  grog
# Checkin 4 November 1997
#
# Revision 1.106  1997/11/03 05:19:13  grog
# Minor mods
#
# Revision 1.105  1997/11/03 02:38:11  grog
# Checkin 3 November 1997
#
# Revision 1.104  1997/11/01 08:22:01  grog
# Minor mods
#
# Revision 1.103  1997/11/01 07:33:32  grog
# Checkin 1 November
#
# Revision 1.102  1997/10/31 06:37:39  grog
# Checkin 31 October
#
# Revision 1.101  1997/10/28 04:32:18  grog
# Checkin 28 October
#
# Revision 1.100  1997/10/26 04:58:28  grog
# Checkin 26 October
#
# Revision 1.99  1997/10/25 08:27:42  grog
# Checkin 25 October
#
# Revision 1.98  1997/10/16 04:58:20  grog
# Checkin 16 October
#
# Revision 1.97  1997/10/13 02:37:20  grog
# Checkin 13 October
#
# Revision 1.96  1997/10/10 07:48:04  grog
# Checkin 11 October
#
# Revision 1.95  1997/10/10 04:34:05  grog
# Checkpoint 10 October
#
# Revision 1.94  1997/10/09 08:49:24  grog
# Checkin 9 October
#
# Revision 1.93  1997/10/08 10:06:38  grog
# Minor mods
#
# Revision 1.92  1997/10/08 09:10:39  grog
# Checkpoint 8 October
#
# Revision 1.91  1997/10/07 05:44:21  grog
# Checkpoint 7 October 1997
d390 3
@


1.116
log
@Minor nitpicking
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.115 1997/11/29 06:46:39 grog Exp grog $
d7 3
@


1.115
log
@Cosmetic mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.114 1997/11/29 03:31:00 grog Exp grog $
d7 3
d463 1
a463 1
FTP	=	~ftp/pub/.cfbsd
d466 2
@


1.114
log
@First complete release version of second edition
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.113 1997/11/28 01:15:45 grog Exp grog $
d7 3
d81 1
a81 1
ROFFDEBUG = -b
@


1.113
log
@Finished all chapters for 2nd edition
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.112 1997/11/27 01:35:59 grog Exp grog $
d7 3
d441 1
a441 1
packages_body.mm:  mkpackages
d444 1
a444 1
packages_body_sorted.mm:  mkpackages-sorted
@


1.112
log
@Checkin 27 November 1997
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.111 1997/11/25 07:59:57 grog Exp grog $
d7 3
d560 3
a562 2
	(echo ".pn $$page"; echo ".ds RCS-ID $$RCSID"; \
	   gsoelim global.mm ids.mm ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d617 3
a619 2
	(echo ".pn $$page"; echo ".ds RCS-ID $$RCSID"; \
	   gsoelim global.mm ids.mm ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
@


1.111
log
@Checkin 25 November: release quality up to current.mm
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.110 1997/11/23 22:26:22 grog Exp grog $
d7 3
d291 1
a291 1
	(cat global.mm ids.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
d294 2
a295 1
	  groff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
@


1.110
log
@Checkin 24 November, first stab at release version
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.109 1997/11/07 04:48:16 grog Exp grog $
d7 3
d282 1
a282 1
Chapter/${SIZE}/chapters.ps chapters: ${CHAPTERS} ${AUXFILES} part2.mm
d288 1
a288 1
	(cat global.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
d530 1
a530 1
	   Chapter/${SIZE}/nps ${SIZE}/chapternumbers
d554 1
a554 1
	   gsoelim global.mm ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d588 1
a588 1
			${SIZE}/chapternumbers  ${SIZE}/Xref
d610 1
a610 1
	   gsoelim global.mm ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
@


1.109
log
@Checkin 7 November
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.108 1997/11/04 08:07:39 grog Exp grog $
d7 3
d154 1
a154 1
APPENDICES.complete = terminology.mm configfiles.mm commands.mm packages.mm biblio.mm getting.mm licenses.mm
@


1.108
log
@Checkin 5 November
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.107 1997/11/04 06:14:49 grog Exp grog $
d7 3
d256 3
d336 3
@


1.107
log
@Checkin 4 November 1997
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.106 1997/11/03 05:19:13 grog Exp grog $
d7 3
a329 1
	  cp -p lastpage manpagestart; \
d332 1
d334 1
a334 1
	  echo "+++ man pages have not moved--skipping; \
@


1.106
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.105 1997/11/03 02:38:11 grog Exp grog $
d7 3
d137 1
a137 1
		    www.mm fax.mm dickless.mm micronet.mm
d183 1
a183 1
	mkpackages mkpackages-sorted todo \
d326 1
a326 1
	if [ ! -f manpagestart ]  || ! cmp manpagestart lastpage > /dev/null; then \
d330 2
@


1.105
log
@Checkin 3 November 1997
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.104 1997/11/01 08:22:01 grog Exp grog $
d7 3
d393 1
a393 1
	rm -f book.longmakefile paths.make filelist lastpage
@


1.104
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.103 1997/11/01 07:33:32 grog Exp grog $
d7 3
d127 1
a127 1
		    xtheory.mm unixref.mm filesys.mm disks.mm tapes.mm desktop.mm \
d131 1
a131 1
		    news.mm www.mm fax.mm dickless.mm micronet.mm
d227 1
a227 1
all book.${SIZE}:	tools ${DIRECTORIES} massage Chapter/${SIZE}/book.ps STATUS
d320 5
a324 2
	echo Making $@@
	MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT} WIDTH=${MANWIDTH.${SIZE}} makesect ${SIZE}
a417 2
	@@echo +++++ Making STATUS
	make STATUS
d513 1
a513 1
	echo .... $$base.mm, RCS ID: $$RCSID; \
@


1.103
log
@Checkin 1 November
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.102 1997/10/31 06:37:39 grog Exp grog $
d7 3
d174 1
a174 1
	mkpackages mkpackages-sorted \
d386 1
a386 1
	rm -f index.mm STATUS packages-sorted.mm
@


1.102
log
@Checkin 31 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.101 1997/10/28 04:32:18 grog Exp grog $
d7 3
d269 1
a269 2
	page=`awk < Chapter/${SIZE}/chapters.ps '/%%Pages:/ {if  ($$2 > page) page=$$2 }; END {print page}'`; \
	echo >lastpage $$page
d383 1
a383 1
	rm -f index.mm STATUS
d402 1
a402 1
review:	tools STATUS
d416 1
a416 1
quickreview: dear-reviewer
@


1.101
log
@Checkin 28 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.100 1997/10/26 04:58:28 grog Exp grog $
d7 3
d115 1
d118 1
a118 1
		    xtheory.mm unixref.mm filesys.mm disks.mm tapes.mm desktop.mm international.mm \
d504 1
a504 1
	echo +++ $$base.mm, RCS ID: $$RCSID; \
@


1.100
log
@Checkin 26 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.99 1997/10/25 08:27:42 grog Exp grog $
d7 3
a62 1

d74 1
a74 1
MANWIDTH.complete = 6.5i
d114 1
a114 1
		    xtheory.mm unixref.mm filesys.mm disks.mm desktop.mm international.mm \
d310 5
@


1.99
log
@Checkin 25 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.98 1997/10/16 04:58:20 grog Exp grog $
d7 3
d112 1
a112 1
		    xtheory.mm unixref.mm desktop.mm sysadm.mm disks.mm international.mm \
d124 1
a124 1
APPENDICES.complete = terminology.mm configfiles.mm packages.mm biblio.mm getting.mm licenses.mm
d139 1
a139 1
PSDOCS = Chapter/${SIZE}/chapters.ps Manpages Chapter/${SIZE}/appendix.ps Chapter/${SIZE}/toc.ps
d156 1
a156 1
REVIEW-SOURCES =  Chapter/${SIZE}/chapters.ps Chapter/${SIZE}/toc.ps ${SOURCES}
d189 1
a189 1
# 	make toc.ps index.ps
d226 1
a226 1
	cat Chapter/${SIZE}/toc.ps Chapter/${SIZE}/chapters.ps Chapter/${SIZE}/manpages \
d230 1
a230 1
#	rm -f Chapter/${SIZE}/toc.ps Chapter/${SIZE}/chapters.ps Manpages Chapter/${SIZE}/appendix.ps
d380 2
a381 2
# packages.mm::	packages_body.mm packages_body_sorted.mm
packages.mm::	packages_body.mm
d627 1
a627 1
	tar cf - ${RCS-FILES} Chapter/${SIZE}/book.ps Chapter/${SIZE}/toc.ps | gzip >book.tar.gz
d630 1
a630 1
	tar cf - Chapter/${SIZE}/book.ps Chapter/${SIZE}/toc.ps | gzip >ps.tar.gz
@


1.98
log
@Checkin 16 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.97 1997/10/13 02:37:20 grog Exp grog $
d7 3
d35 1
a35 1
# This book is printed in the format 9.2" high by 7.22" wide
d42 1
a42 1
HEIGHT.complete = 9.4i
d54 1
a54 1
WIDTH.complete = 6i
d109 1
a109 1
		    xtheory.mm unixref.mm desktop.mm config.mm disks.mm international.mm \
d282 1
a282 1
Chapter/${SIZE}/toc.ps toc toc.ps: title.${SIZE} wizard.ps ${AUXFILES}
d293 2
a294 2
	  > Chapter/${SIZE}/toc.ps.tmp 2>${SIZE}/Toc/toc
	mv Chapter/${SIZE}/toc.ps.tmp Chapter/${SIZE}/toc.ps
d296 2
d377 2
a378 1
packages.mm::	packages_body.mm packages_body_sorted.mm
d389 1
a389 1
	make all-chapters preface.ps toc.ps 
d391 2
a392 2
	@@echo make  ${CHAPTERS:.mm=.txt} ${APPENDICES:.mm=.txt} preface.txt toc.txt
	make  ${CHAPTERS:.mm=.txt} ${APPENDICES:.mm=.txt} preface.ps preface.txt toc.ps toc.txt
d398 1
a398 1
FTP	=	~ftp/pub/cfbsd
d401 1
a401 1
	rm -f ${FTP}/ps/*  ${FTP}/txt/* ${FTP}/STATUS
d408 1
d412 2
a413 1
        done
d421 4
a424 1
	echo ".TB \"Chapter status `date`\"" >> $@@
@


1.97
log
@Checkin 13 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.96 1997/10/10 07:48:04 grog Exp grog $
d7 3
d110 1
a110 1
		    news.mm www.mm fax.mm dickless.mm mobile.mm micronet.mm
d155 2
a156 1
	makeshortsect makebisdnsect makenetworksect makelongsect makesect errata mkpackages \
d372 1
a372 1
packages.mm::	packages_body.mm
d377 4
a380 1
review:	tools
d397 1
a397 1
	for i in [0-9]*.ps [A-Z]*.ps preface.ps; do \
d402 1
a402 1
	for i in [0-9]*.txt [A-Z]*.txt preface.txt; do \
d410 1
a410 1
STATUS:	.FORCE
@


1.96
log
@Checkin 11 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.95 1997/10/10 04:34:05 grog Exp grog $
d7 3
d202 1
a202 1
all book.${SIZE}:	tools ${DIRECTORIES} massage Chapter/${SIZE}/book.ps
d209 1
a209 1
Chapter/${SIZE}/book.ps: title.${SIZE} ${ALL-SOURCES} ${AUXFILES} ${PSDOCS} STATUS
@


1.95
log
@Checkpoint 10 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.94 1997/10/09 08:49:24 grog Exp grog $
d7 3
a215 1
	${TBL} STATUS | groff ${ROFFDEBUG} >Chapter/${SIZE}/STATUS
d455 1
@


1.94
log
@Checkin 9 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.93 1997/10/08 10:06:38 grog Exp grog $
d7 3
a18 56
# Revision 1.90  1997/10/06 07:23:19  grog
# Minor nods
#
# Revision 1.89  1997/10/06 06:49:51  grog
# Checkopint 6 October
#
# Revision 1.87  1997/10/02 02:11:05  grog
# Checkin 3 October
#
# Revision 1.86  1997/10/01 03:51:17  grog
# Checkin 1 October
#
# Revision 1.84  1997/09/25 02:11:08  grog
# Checkpoint 25 September 1997
#
# Revision 1.83  1997/09/22 03:54:31  grog
# Checkpoint 22 September
#
# Revision 1.81  1997/09/19 09:31:16  grog
# Minor mods
#
# Revision 1.80  1997/09/19 09:29:48  grog
# Add save target
#
# Revision 1.79  1997/09/19 08:15:09  grog
# Checkin 19 September 1997
#
# Revision 1.77  1997/09/17 06:43:15  grog
# Checkin 17 September
#
# Revision 1.76  1997/09/16 03:23:08  grog
# Minor mods
#
# Revision 1.75  1997/09/16 02:40:31  grog
# Checkpoint 16 September
#
# Revision 1.73  1997/09/09 01:33:23  grog
# Minor mods
#
# Revision 1.72  1997/09/09 01:28:27  grog
# Checkin 9 September
#
# Revision 1.71  1997/09/03 00:54:44  grog
# Checkpoint 3 September (after first input from -questions)
#
# Revision 1.70  1997/08/30 07:58:26  grog
# Minor mods
#
# Revision 1.69  1997/08/30 07:44:21  grog
# Checkpoint 30 August 1997
#
# Revision 1.68  1997/07/06  09:24:51  grog
# Checkpoint 15 July 1997
#
# Revision 1.67  1997/06/21  11:33:08  grog
# Still more rcs target stuff
d70 1
a310 1
#	@@newer=`find ${SIZE}/Toc -type f -newer ${SIZE}/Toc/book`; 
d314 5
a318 3
Forcexref: .FORCE
	rm ${SIZE}/Xref
	make ${SIZE}/Xref
d404 1
a404 1
	echo "| r | l | l | l | l | ." >> $@@
d406 1
a406 1
	echo "Chapter#Source file#Version#Modified#Status" >> $@@
d410 6
d418 1
d420 1
a420 2
	    RCSID="$$ch#`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 "*" }'`"; \
	    RCSID="$$RCSID#`TZ=Etc/UTC ls -l $$i | awk '{print $$7 \" \" $$6 \", \" $$8}'`"; \
d422 1
a422 1
	    RCSID="$$ch#`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 "#"  }'`"; \
d424 1
a424 1
	  echo $$RCSID#$$status >> $@@; \
d428 1
a428 1
	echo "Appendix#Source file#Version#Modified#Status" >> $@@
d432 6
d440 1
d442 1
a442 2
	    RCSID="$$ch#`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 "*" }'`"; \
	    RCSID="$$RCSID#`TZ=Etc/UTC ls -l $$i | awk '{print $$7 \" \" $$6 \", \" $$8}'`"; \
d444 1
a444 1
	    RCSID="$$ch#`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 "#"  }'`"; \
d446 1
a446 1
	  echo $$RCSID#$$status >> $@@; \
d452 1
a452 1
	echo "Note: a \\f(CW*\\fP symbol after the version number indicates that the source file is locked, and thus may have been  modified since the last checkin.  As a result, the version information may be inaccurate." >> $@@
d457 1
a457 1
	   Chapter/${SIZE}/nps ${SIZE}/chapternumbers  Forcexref
d464 1
a464 1
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -l $$base.mm | awk '{print $$7 \" \" $$6 \", \" $$8}'`)"; \
d472 1
a472 1
	    prefix=`${TOOLS}/xchar $$2`; \
d522 1
a522 1
	  RCSID="$$RCSID (modified `TZ=Etc/UTC ls -l $$base.mm | awk '{print $$7 \" \" $$6 \", \" $$8}'`)"; \
d529 1
a529 1
	    prefix=`${TOOLS}/xchar $$2`; \
@


1.93
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.92 1997/10/08 09:10:39 grog Exp grog $
d7 3
d74 1
a74 1
# ROFFDEBUG = -b
d150 3
a152 3
		    building.mm current.mm emulate.mm netintro.mm isp.mm \
		    modems.mm ppp.mm slip.mm routing.mm dns.mm \
		    firewall.mm netsetup.mm netdebug.mm nfs.mm netbasics.mm email.mm \
d199 1
a199 1
	mkids global.mm reset.mm dear-reviewer-1 dear-reviewer-2 strip2nl howto.image
d359 1
a359 1
# changed; otherwise we'll repeat the targer the next time, although
d363 2
a364 1
	-${TOOLS}/make-xref $@@ ${TOCFILES}
d367 4
a444 1
	${TBL} STATUS | nroff ${ROFFDEBUG} > ${FTP}/STATUS
d446 2
a447 2
dear-reviewer:  dear-reviewer-1 dear-reviewer-2 strip2nl
	cat dear-reviewer-1 ${FTP}/STATUS dear-reviewer-2 ${FTP}/README | sed -f strip2nl > ${FTP}/dear-reviewer
d451 1
d455 1
a455 1
	echo "| r | l | l | l | l | l | ." >> $@@
d457 1
a457 1
	echo "Chapter#Source file#Version#Date#Time#Status" >> $@@
d464 2
a465 1
	    RCSID=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "~(modified)~#" $$4 "#" $$5 "#" $$6  }'`; \
d467 1
a467 1
	    RCSID=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 "#" $$5 "#" $$6  }'`; \
d469 1
a469 1
	  echo $$ch $$RCSID $$status | sed 's: :#:; s: :#:; s:~: :g' >> $@@; \
d473 1
a473 1
	echo "Appendix#Source file#Version#Date#Time#Status" >> $@@
d480 2
a481 1
	    RCSID=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "~(modified)~#" $$4 "#" $$5 "#" $$6  }'`; \
d483 1
a483 1
	    RCSID=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 "#" $$5 "#" $$6  }'`; \
d485 1
a485 1
	  echo $$ch $$RCSID $$status | sed 's: :#:; s: :#:; s:~: :g' >> $@@; \
d490 4
a493 1
	
d495 2
a496 2
preface.ps ${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps}:	${SIZE}/Toc/book Chapter/${SIZE}/ps Chapter/${SIZE}/nps \
			 ${SIZE}/chapternumbers  ${SIZE}/Xref
d503 1
a503 1
	  RCSID="$$RCSID (modified)"; \
d561 1
a561 1
	  RCSID="$$RCSID (modified)"; \
d579 1
a579 1
	 nroff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT.${SIZE}} -rW7.9i \
d705 1
a705 1
	   nroff ${ROFFDEBUG} -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW8i -rPS=${TEXTSIZE} \
@


1.92
log
@Checkpoint 8 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.91 1997/10/07 05:44:21 grog Exp grog $
d7 3
d196 1
a196 1
	mkids global.mm reset.mm dear-reviewer-1 dear-reviewer-2 strip2nl
@


1.91
log
@Checkpoint 7 October 1997
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.90 1997/10/06 07:23:19 grog Exp grog $
d7 3
d146 2
a147 2
		    firewall.mm netsetup.mm netdebug.mm nfs.mmemail.mm \
		    news.mm www.mm fax.mm  dickless.mm mobile.mm micronet.mm
d436 1
a436 1
dear-reviewer:  dear-reviewer-1 dear-reviewer-2
d451 5
a455 4
	  RCSID=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 "#" $$5 "#" $$6  }'`; \
	  mod=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$7}'`; \
	  if [ X$$mod != X ]; then \
	    RCSID="$$RCSID (modified)"; \
d457 1
a457 1
	  echo $$ch $$RCSID $$status | sed 's: :#:; s: :#:' >> $@@; \
d466 5
a470 4
	  RCSID=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$3 "#" $$4 "#" $$5 "#" $$6  }'`; \
	  mod=`grep \\$$${RCSIDSTRING}: $$i | awk '{print  $$7}'`; \
	  if [ X$$mod != X ]; then \
	    RCSID="$$RCSID (modified)"; \
d472 1
a472 1
	  echo `${TOOLS}/xchar $$ch` $$RCSID $$status | sed 's: :#:; s: :#:' >> $@@; \
d485 2
a486 2
	mod=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$7}'`; \
	if [ X$$mod != X ]; then \
d543 2
a544 2
	mod=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$7}'`; \
	if [ X$$mod != X ]; then \
@


1.90
log
@Minor nods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.89 1997/10/06 06:49:51 grog Exp grog $
d7 3
d65 1
a65 1
ROFFDEBUG= -b
d143 2
a144 2
		    firewall.mm netsetup.mm netdebug.mm nfs.mm dickless.mm email.mm \
		    news.mm www.mm fax.mm mobile.mm micronet.mm
d421 1
a421 1
	-cd Chapter/${SIZE}/ps; \
@


1.89
log
@Checkopint 6 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.87 1997/10/02 02:11:05 grog Exp grog $
d7 3
d187 2
a188 1
	mkids global.mm reset.mm dear-reviewer-1 dear-reviewer-2
@


1.88
log
@Checkin 4 October
@
text
@d58 3
d62 1
a62 1
# HEIGHT is the real height of the paper + .2"
d69 1
d81 2
a82 1
# XXX WIDTH.complete = 6.3i
d87 1
a87 1
Y_ORIGIN	=	100
d135 1
a135 1
		    building.mm current.mm emulate.mm netintro.mm isp.mm netsetup.mm \
d137 1
a137 1
		    firewall.mm netdebug.mm nfs.mm dickless.mm email.mm \
d158 1
a158 1
DIRECTORIES = ${SIZE} Chapter/${SIZE} ${SIZE}/Toc Chapter/${SIZE}/txt Chapter/${SIZE}/ps
d182 1
a182 2
	merge getch filter getchapternumbers wizard.ps freebie.sty \
	title.short title.long title.bisdn title.network title.complete \
a199 2
REALHOST = allegro.lemis.de

d249 1
a249 1
	${TBL} STATUS | groff >Chapter/${SIZE}/STATUS
d276 1
a276 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d297 1
a297 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d315 1
a315 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d424 1
a424 1
	${TBL} STATUS | nroff > ${FTP}/STATUS
d442 4
d456 4
d467 1
a467 1
preface.ps ${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps}:	${SIZE}/Toc/book Chapter/${SIZE}/ps \
d471 1
a471 1
	RCSID=`grep \\$$${RCSIDSTRING}: $$base.mm | awk '{print  $$3 " v" $$4 " (" $$5 " " $$6 ")" }'`; \
d473 4
d495 1
a495 1
	 groff -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} \
d503 1
a503 1
	  filename=Chapter/${SIZE}/ps/$$prefix-$@@; \
d505 1
a505 1
	  filename=Chapter/${SIZE}/ps/0$$chapter-$@@; \
d507 1
a507 1
	  filename=Chapter/${SIZE}/ps/$$chapter-$@@; \
d531 4
d551 1
a551 1
	 nroff -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT.${SIZE}} -rW7.9i \
d595 1
a595 1
	sed < ${TOOLS}/massagetex.el > massagetex.el "s:@@XORIG@@:${X_ORIGIN}:; s:@@YORIG@@:${Y_ORIGIN}:; s:@@HEIGHT@@:$$H:g; s:@@WIDTH@@:$$W:"
d668 1
a668 1
	   groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d677 1
a677 1
	   nroff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW8i -rPS=${TEXTSIZE} \
@


1.87
log
@Checkin 3 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.86 1997/10/01 03:51:17 grog Exp grog $
d7 3
d58 2
a59 2
# This book is printed in the format 9" high by 6" wide
# HEIGHT is the real height of the paper
d65 1
a65 2
HEIGHT.complete = 9i
# XXX HEIGHT.complete = 9.25i
d68 1
a68 1
MARGINS = 1.4
d76 1
a76 1
WIDTH.complete = 5.8i
@


1.86
log
@Checkin 1 October
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.84 1997/09/25 02:11:08 grog Exp grog $
d7 3
d178 1
a178 1
	mkids global.mm reset.mm
d408 1
a408 1
quickreview:
d421 3
@


1.85
log
@Checkpoint 30 September 1997
@
text
@d84 2
a85 2
# XXX
MANWIDTH.complete = 5.9i
@


1.84
log
@Checkpoint 25 September 1997
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.83 1997/09/22 03:54:31 grog Exp grog $
d7 3
d84 3
a86 2
# XXXMANWIDTH.complete = 5.9i
MANWIDTH.complete = 6.4i
d322 1
a322 1
	emacs -batch Manpages -l $F/massageps.el  -f massageps -f exit
@


1.83
log
@Checkpoint 22 September
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.81 1997/09/19 09:31:16 grog Exp grog $
d7 3
d112 1
a112 1
		   routing.mm uucp.mm email.mm news.mm www.mm
d123 1
a123 1
		    firewall.mm netdebug.mm nfs.mm dickless.mm uucp.mm email.mm \
@


1.82
log
@Checkin 20 September
@
text
@d219 1
a219 1
	grep "%%Pages" Chapter/${SIZE}/book.ps
@


1.81
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.80 1997/09/19 09:29:48 grog Exp grog $
d7 3
d119 1
a119 1
		    modems.mm ppp.mm routing.mm dns.mm \
d389 1
a389 1
	make preface.txt toc.txt STATUS quickreview 
d507 5
a512 2
	  prefix=`${TOOLS}/xchar $$2`; \
	  page=`echo $$4 | sed 's:,::'`; chapter=$$6; \
d518 1
a518 1
	 nroff -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT.${SIZE}} -rW8i \
@


1.80
log
@Add save target
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.79 1997/09/19 08:15:09 grog Exp grog $
d7 3
d114 1
a114 1
		    xtheory.mm unixref.mm desktop.mm config.mm disks.mm internat.mm \
@


1.79
log
@Checkin 19 September 1997
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.77 1997/09/17 06:43:15 grog Exp grog $
d7 3
d563 4
@


1.78
log
@Checkpoint 18 September
@
text
@d108 1
a108 1
		    xtheory.mm unixref.mm desktop.mm config.mm disks.mm \
d438 1
d442 9
a450 3
	  set `egrep "^Appendix.*\\<$$base.mm" ${SIZE}/Toc/appendix`; \
	  prefix=`${TOOLS}/xchar $$2`; \
	  page=`echo $$4 | sed 's:,::'`; chapter=$$6; \
d483 2
a484 3
	fi
# Touch the file so that it's newer than the log files
	@@touch Chapter/${SIZE}/ps/`basename $@@`
@


1.77
log
@Checkin 17 September
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.76 1997/09/16 03:23:08 grog Exp grog $
d7 3
d132 1
a132 1
DIRECTORIES = ${SIZE} Chapter/${SIZE} ${SIZE}/Toc
d360 1
a360 1
	rm -f index.mm
d368 1
a368 1
all-chapters: ${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps} ${CHAPTERS:.mm=.txt} ${APPENDICES:.mm=.txt}
d377 9
a385 1
	make all-chapters toc.ps toc.txt quickreview 
d389 11
a399 6
quickreview:	STATUS
	rm -f ${FTP}/[0-9]*ps.gz ${FTP}/[A-Z]*ps.gz ${FTP}/preface.ps.gz ${FTP}/toc.ps.gz ${FTP}/book.ps.gz
	rm -f ${FTP}/STATUS
	-cd Chapter/${SIZE}; \
	for i in [0-9]*.ps [A-Z]*.ps book.ps toc.ps preface.ps; do \
	  gzip -c $$i > ${FTP}/$$i.gz; \
a401 2
	chmod 444 ${FTP}/*
	chmod 775 ${FTP}
d433 2
a434 4
preface.ps ${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps}:	${SIZE}/Toc/book Chapter/${SIZE} ${SIZE}/chapternumbers  ${SIZE}/Xref
	@@if [ ! -f $@@ ]; then \
	  echo +++ $@@ " doesn't exist, rebuilding"; \
	fi
d438 1
a438 1
	echo $$base.mm RCS ID: $$RCSID; \
d452 1
a452 1
	 >Chapter/${SIZE}/$@@.tmp 2>${SIZE}/Toc/$$base; \
d454 1
a454 1
	mv Chapter/${SIZE}/$@@.tmp Chapter/${SIZE}/$@@; \
d456 1
a456 1
	page=`awk < Chapter/${SIZE}/$@@ '/%%Page:/ {page=$$2 }; END {print page}'`; \
d458 1
a458 1
	  filename=Chapter/${SIZE}/$$prefix-$@@; \
d460 1
a460 1
	  filename=Chapter/${SIZE}/0$$chapter-$@@; \
d462 1
a462 1
	  filename=Chapter/${SIZE}/$$chapter-$@@; \
d473 1
a473 1
	ln Chapter/${SIZE}/$@@ $$filename; \
d478 1
a478 1
	@@touch Chapter/${SIZE}/`basename $@@`
d481 3
a483 4
preface.txt ${CHAPTERS:.mm=.txt} ${APPENDICES:.mm=.txt}:	${SIZE}/Toc/book Chapter/${SIZE} ${SIZE}/chapternumbers  ${SIZE}/Xref
	@@if [ ! -f $@@ ]; then \
	  echo +++ $@@ " doesn't exist, rebuilding"; \
	fi
d502 1
a502 1
	    | sed 's:.::g' >Chapter/${SIZE}/$@@.tmp; \
d504 1
a504 1
	mv Chapter/${SIZE}/$@@.tmp Chapter/${SIZE}/$@@; \
d506 1
a506 1
	  filename=Chapter/${SIZE}/$$prefix-$@@; \
d508 1
a508 1
	  filename=Chapter/${SIZE}/0$$chapter-$@@; \
d510 1
a510 1
	  filename=Chapter/${SIZE}/$$chapter-$@@; \
a511 1
	egrep -v ^'Chapter|File|><' ${SIZE}/Toc/$$base; \
d513 1
a513 1
	ln Chapter/${SIZE}/$@@ $$filename; \
d518 1
a518 1
	@@touch Chapter/${SIZE}/`basename $@@`
@


1.76
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.75 1997/09/16 02:40:31 grog Exp grog $
d7 3
d157 2
d213 1
a213 1
Chapter/${SIZE}/book.ps: title.${SIZE} ${ALL-SOURCES} ${AUXFILES} ${PSDOCS}
d223 1
d365 1
a365 1
all-chapters: ${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps}
d372 3
a374 1
review:	all-chapters toc.ps toc.txt quickreview 
d378 1
a378 1
quickreview:
d380 1
d385 1
a385 1
	grep '\\" STATUS' ${CHAPTERS} | sed 's/:.*://'| awk '{ch++; print "Chapter " ch " (" $$1 "):\t\t" $$2 }' > ${FTP}/STATUS
d389 29
d425 1
a425 1
	RCSID=`grep \\$$Id: Makefile,v 1.75 1997/09/16 02:40:31 grog Exp grog $$base.mm | awk '{print  $$3 " v" $$4 " (" $$5 " " $$6 ")" }'`; \
d468 42
d613 2
a614 2
	    -rLS=${LINESPACING} -mpic ${MACROFILE} - \
	   >Chapter/${SIZE}/$@@ 2>${SIZE}/Toc/$@@;
@


1.75
log
@Checkpoint 16 September
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.73 1997/09/09 01:33:23 grog Exp grog $
d7 3
d153 1
a153 1
	mkids global.mm
d387 1
a387 1
	RCSID=`grep \\$$Id: $$base.mm | awk '{print  $$3 " v" $$4 " (" $$5 " " $$6 ")" }'`; \
@


1.74
log
@Minor mods
@
text
@d36 1
d48 1
d60 2
a61 1
MANWIDTH.complete = 5.9i
d88 1
d100 2
a101 2
		    building.mm emulate.mm netintro.mm netsetup.mm modems.mm \
		    ppp.mm routing.mm dns.mm \
d131 2
d216 1
a216 1
#	rm -f Chapter/${SIZE}/toc.ps Chapter/${SIZE}/chapters.ps Manpages Chapter/${SIZE}/appendix.ps \
d363 1
a363 1
review:	all-chapters toc.ps quickreview
d368 2
a369 2
	cd Chapter/${SIZE}; \
	rm -f ${FTP}/[0-9]*ps.gz ${FTP}/[A-Z]*ps.gz ${FTP}/preface.ps.gz ${FTP}/toc.ps.gz ${FTP}/book.ps.gz; \
d373 3
d384 2
d393 2
a394 1
	(echo ".pn $$page"; gsoelim global.mm ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d447 1
a447 1
	H=`echo ${HEIGHT.${SIZE}} | awk '{print $$1 * 72}'`; \
@


1.73
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.72 1997/09/09 01:28:27 grog Exp grog $
d7 3
d240 1
a240 1
	page=`awk < Chapter/${SIZE}/chapters.ps '/%%Pages:/ {page=$$2 }; END {print page}'`; \
d265 1
a265 1
Chapter/${SIZE}/toc.ps toc: title.${SIZE} wizard.ps ${AUXFILES}
d357 3
a359 1
review:	all-chapters quickreview
d362 4
a365 3
	rm -f ~ftp/pub/cfbsd/[0-9]*ps.gz  ~ftp/pub/cfbsd/[A-Z]*ps.gz 
	cd Chapter/${SIZE}; for i in [0-9]*.ps [A-Z]*.ps book.ps; do \
	  gzip -c $$i > ~ftp/pub/cfbsd/$$i.gz; \
d529 3
@


1.72
log
@Checkin 9 September
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.71 1997/09/03 00:54:44 grog Exp grog $
d7 3
a136 6
# XXX This version includes files which currently don't get used.
# RCS-FILES = ${SOURCES} global.mm totidy Makefile \
#	tidycontents.el tidyindex.el chapters.mm makebookmakefile fxref
# RCS-FILES = ${PREFACE} ${CHAPTERS.short} ${CHAPTERS.long} ${CHAPTERS.bisdn} ${CHAPTERS.ii} \
#	${CHAPTERS.network} ${CHAPTERS.complete} \
#	${APPENDICES.short} ${APPENDICES.network} ${APPENDICES.bisdn} ${APPENDICES.long} ${APPENDICES.complete} 
d141 1
a141 1
	mkids
@


1.71
log
@Checkpoint 3 September (after first input from -questions)
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.70 1997/08/30 07:58:26 grog Exp grog $
d7 3
d53 1
d89 3
a91 3
		    xtheory.mm unixref.mm sysadmin.mm config.mm disks.mm \
		    building.mm netintro.mm netcitizen.mm netsetup.mm phones.mm \
		    isp.mm ppp.mm slip.mm dialing.mm routing.mm dns.mm \
d93 1
a93 1
		    news.mm www.mm fax.mm micronet.mm
d283 1
a283 1
Manpages: Chapter/${SIZE} merge makesect .FORCE
d357 9
d367 1
a367 3
	@@if [ -f $@@ ]; then \
	  echo +++ $@@: Rebuilding because of $<; \
	else \
d371 7
a377 2
	page=`egrep "^Chapter.*$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	chapter=`egrep "^Chapter.*$$base.mm" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$2}'`; \
d389 3
a391 1
	if [ $$chapter -lt 10 ]; then \
d410 1
a410 1
	touch $@@
@


1.70
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.69 1997/08/30 07:44:21 grog Exp grog $
d7 3
a17 51
#
# Revision 1.66  1997/06/21  11:29:55  grog
# More rcs checkin mods
#
# Revision 1.65  1997/06/21  11:25:35  grog
# Modify checkin files
#
# Revision 1.64  1997/06/21  11:22:45  grog
# Modify chapters for complete book
#
# Revision 1.63  1997/06/08  06:40:42  grog
# Accept multiple tags for stripcond
#
# Revision 1.62  1997/06/08 06:24:27  grog
# Mods for "complete" version
#
# Revision 1.61  1997/04/22 15:24:37  grog
# Mods for OSJ article
#
# Revision 1.60  1996/12/06 16:45:22  grog
# More files to check in
#
# Revision 1.59  1996/11/28  11:21:43  grog
# Minor mods
#
# Revision 1.58  1996/11/04  13:12:19  grog
# Checkpoint 12 November
#
# Revision 1.57  1996/07/17  08:03:44  grog
# Minor mods--maybe this time it will get printed
#
# Revision 1.56  1996/07/03  10:47:39  grog
# Minor mods
#
# Revision 1.55  1996/07/01  12:33:00  grog
# Fix dependencies
#
# Revision 1.54  1996/06/30  15:47:39  grog
# Minor mods
#
# Revision 1.53  1996/06/30  14:09:02  grog
# Minor mods
#
# Revision 1.52  1996/06/30  12:14:18  grog
# Minor mods
#
# Revision 1.51  1996/06/30  12:10:03  grog
# Minor mods
#
# Revision 1.50  1996/06/30  11:10:19  grog
# Checkpoint 30 June, maybe final version of long book for 2.1.5?
d41 2
a42 2
XORIGIN	=	50
YORIGIN	=	100
d52 1
a52 1
EXAMPLE-SIZE = 7
d83 7
a89 6
CHAPTERS.complete =  introduction.mm concepts.mm quickinstall.mm install.mm \
		shareinstall.mm problems.mm xsetup.mm xtheory.mm unixref.mm \
		config.mm disks.mm building.mm \
		netintro.mm phones.mm isp.mm netsetup.mm modems.mm ppp.mm slip.mm \
		ii.mm isdn.mm netdebug.mm nfs.mm dickless.mm dns.mm \
		routing.mm uucp.mm email.mm news.mm www.mm fax.mm
d97 1
a97 1
APPENDICES.complete = terminology.mm packages.mm biblio.mm getting.mm licenses.mm
d139 2
a140 1
	makeshortsect makebisdnsect makenetworksect makelongsect makesect errata mkpackages
d350 1
a350 1
packages_body.mm:
d395 1
a395 1
	@@base=${@@:.pp=}; \
d397 1
a397 1
	(echo ".pn $$page"; gsoelim global.mm ${SIZE}/Xref ${SIZE}/chapternumbers $$base.mm) | \
d417 2
a418 2
	sed < ${TOOLS}/massageps.el > massageps.el "s:@@XORIG@@:$XORIGIN:; s:@@YORIG@@:$YORIGIN:; s:@@HEIGHT@@:$$H:g; s:@@WIDTH@@:$$W:"; \
	sed < ${TOOLS}/massagetex.el > massagetex.el "s:@@XORIG@@:$XORIGIN:; s:@@YORIG@@:$YORIGIN:; s:@@HEIGHT@@:$$H:g; s:@@WIDTH@@:$$W:"
d484 7
a490 7
# 	@@echo +++ $@@
# 	gsoelim $< | ${TOOLS}/stripcond ${TAGS} | \
# 	   ${PIC} | ${TBL} | \
# 	   groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT.${SIZE}} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
# 	    -rLS=${LINESPACING} -mpic ${MACROFILE} - \
# 	   >Chapter/${SIZE}/$@@ 2>${SIZE}/Toc/$@@;
# 	-egrep -v ^'File|><' ${SIZE}/Toc/$@@
d503 1
a503 1
ids.mm:	${IDSRC}
@


1.69
log
@Checkpoint 30 August 1997
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.68 1997/07/06 09:24:51 grog Exp grog $
d7 3
d162 1
a162 1
AUXFILES = ${SIZE}/toc.mm ${SIZE}/tables.mm ${SIZE}/index.mm ids.mm ${SIZE}/Xref ${SIZE}/chapternumbers mkpackages
d186 1
a186 1
	makeshortsect makebisdnsect makenetworksect makelongsect makesect errata
@


1.68
log
@Checkpoint 15 July 1997
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.67 1997/06/21 11:33:08 grog Exp grog $
d7 3
d84 5
d94 1
d141 1
a141 1
APPENDICES.complete = packages.mm biblio.mm getting.mm licenses.mm
d159 1
a159 1
AUXFILES = ${SIZE}/toc.mm ${SIZE}/tables.mm ${SIZE}/index.mm ids.mm ${SIZE}/Xref ${SIZE}/chapternumbers 
d180 1
a180 1
RCS-FILES = *.mm Makefile makebookmakefile paths.make tidy.el grog.mm part2.mm \
d239 5
a243 1
	@@echo +++ $@@: Rebuilding because of $<
d247 6
a252 3
	emacs -batch Chapter/${SIZE}/book.ps -l $F/massageps.el  -f massageps -f exit
	rm -f Chapter/${SIZE}/toc.ps Chapter/${SIZE}/chapters.ps Manpages Chapter/${SIZE}/appendix.ps \
		Chapter/${SIZE}/*~
d255 6
a260 1
	@@echo +++ $@@: $*
d266 5
a270 1
	@@echo +++ $@@
d281 2
d286 5
a290 1
	@@echo +++ $@@
d300 2
d305 5
a309 1
	@@echo +++ $@@
d318 2
d337 1
d340 4
a343 2
# Create the auxiliary files
${SIZE}/Xref:	${TOCFILES} getchapternumbers ${SIZE} 
d346 1
d348 1
a348 1
${SIZE}/index.mm:	${TOCFILES} ${SIZE} 
d351 1
d353 1
a353 1
${SIZE}/toc.mm:	${TOCFILES} ${SIZE}
d356 1
d358 1
a358 1
${SIZE}/tables.mm:	${TOCFILES} ${SIZE} 
d361 1
d391 11
a401 1
${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps}:	${SIZE}/Toc/book Chapter/${SIZE} ${SIZE}/chapternumbers  ${SIZE}/Xref
d434 2
d442 2
d459 3
a461 2
	sed < ${TOOLS}/massageps.el > massageps.el "s:@@HEIGHT@@:$$H:g; s:@@WIDTH@@:$$W:"; \
	sed < ${TOOLS}/massagetex.el > massagetex.el "s:@@HEIGHT@@:$$H:g; s:@@WIDTH@@:$$W:"
d544 4
a547 7
ids.mm:	${SIZE} .FORCE
	@@echo +++ $@@
	grep \$$\Id title.${SIZE} preface.mm ${SOURCES} ${MACROFILE} | sed 's:^.*\$$I:\$$I:' >ids.mm.new
	echo .ds os `uname -s` >>ids.mm.new
	echo .ds osver `uname -r` >>ids.mm.new
	echo .ds formatdate `date +'%d %B 19%y'` >>ids.mm.new
	if [ ! -f ids.mm -o "`cmp ids.mm ids.mm.new`" ]; then mv ids.mm.new ids.mm; else rm ids.mm.new; fi
d553 1
@


1.67
log
@Still more rcs target stuff
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.66 1997/06/21 11:29:55 grog Exp grog $
d7 3
d290 1
a290 1
${SIZE}/chapternumbers: ${SOURCES}
d347 3
a349 3
	page=`egrep "^Chapter/*\<$$base\>" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	chapter=`egrep "^Chapter/*\<$$base\>" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$2}'`; \
	echo -n "+++ Chapter $@@ starts on page $$page "; \
@


1.66
log
@More rcs checkin mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.65 1997/06/21 11:25:35 grog Exp grog $
d7 3
d170 1
a170 1
	title.short title.long title.bisdn title.network \
@


1.65
log
@Modify checkin files
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.64 1997/06/21 11:22:45 grog Exp grog $
d7 3
d162 4
a165 4
RCS-FILES = ${PREFACE} ${CHAPTERS.short} ${CHAPTERS.long} ${CHAPTERS.bisdn} ${CHAPTERS.ii} \
	${CHAPTERS.network} ${CHAPTERS.complete} \
	${APPENDICES.short} ${APPENDICES.network} ${APPENDICES.bisdn} ${APPENDICES.long} ${APPENDICES.complete} \
	global.mm reset.mm Makefile makebookmakefile paths.make tidy.el grog.mm part2.mm \
d499 1
a499 1
	@@echo Tool directory: ${TOOLS}@


1.64
log
@Modify chapters for complete book
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.63 1997/06/08 06:40:42 grog Exp grog $
d7 3
d159 3
a161 2
RCS-FILES = ${PREFACE} ${CHAPTERS.short} ${CHAPTERS.long} ${CHAPTERS.bisdn} ${CHAPTERS.ii} ${CHAPTERS.network} \
	${APPENDICES.short} ${APPENDICES.network} ${APPENDICES.bisdn} ${APPENDICES.long} \
@


1.63
log
@Accept multiple tags for stripcond
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.62 1997/06/08 06:24:27 grog Exp grog $
d7 3
d99 2
a100 2
CHAPTERS.network = netintro.mm isp.mm netsetup.mm modems.mm ppp.mm slip.mm ii.mm isdn.mm netdebug.mm \
		   nfs.mm dickless.mm dns.mm \
d109 3
a111 3
		disks.mm building.mm \
		netintro.mm phones.mm isp.mm netsetup.mm modems.mm ppp.mm slip.mm ii.mm isdn.mm netdebug.mm \
		nfs.mm dickless.mm dns.mm \
@


1.62
log
@Mods for "complete" version
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.61 1997/04/22 15:24:37 grog Exp grog $
d7 3
d77 2
a78 1
SIZE=complete long
d232 1
a232 1
	  ${TOOLS}/stripcond ${SIZE} | ${PIC} | ${TBL} | \
d247 1
a247 1
	  ${TOOLS}/stripcond ${SIZE} | ${PIC} | ${TBL} | \
d259 1
a259 1
	  ${TOOLS}/stripcond ${SIZE} | ${PIC} | ${TBL} | \
d335 1
a335 1
	${TOOLS}/stripcond long | \
d367 1
a367 1
	${TOOLS}/stripcond long | ${PIC} | ${TBL} >$@@
d451 1
a451 1
# 	gsoelim $< | ${TOOLS}/stripcond ${SIZE} | \
d460 1
a460 1
	gsoelim $< | ${TOOLS}/stripcond ${SIZE} | \
@


1.61
log
@Mods for OSJ article
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.60 1996/12/06 16:45:22 grog Exp grog $
d7 3
d50 1
d60 2
d72 1
a72 1
SIZES = short long network bisdn
d74 1
a74 1
SIZE=long
d100 7
d113 1
@


1.60
log
@More files to check in
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.59 1996/11/28 11:21:43 grog Exp grog $
d7 3
d249 1
a249 1
Manpages: Chapter/${SIZE} merge make${SIZE}sect .FORCE
@


1.59
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.58 1996/11/04 13:12:19 grog Exp grog $
d7 3
d137 1
a137 1
	makeshortsect makebisdnsect makenetworksect makelongsect
d299 1
a299 1
	rm -f appendix-start ktrace.out *.pp
@


1.58
log
@Checkpoint 12 November
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.57 1996/07/17 08:03:44 grog Exp grog $
d7 3
a99 2
# MANSECTIONS = Chapter/${SIZE}/Section.1 Chapter/${SIZE}/Section.1X Chapter/${SIZE}/Section.2 \
#	Chapter/${SIZE}/Section.4 Chapter/${SIZE}/Section.8
a104 2
MANSECTIONS = Chapter/${SIZE}/Section.${MANSUFFIX.${SIZE}}

d108 1
a108 1
PSDOCS = Chapter/${SIZE}/chapters.ps ${MANSECTIONS} Chapter/${SIZE}/appendix.ps Chapter/${SIZE}/toc.ps
d192 1
a192 1
	cat Chapter/${SIZE}/toc.ps Chapter/${SIZE}/chapters.ps ${MANSECTIONS} \
d195 1
a195 1
	rm -f Chapter/${SIZE}/toc.ps Chapter/${SIZE}/chapters.ps ${MANSECTIONS} Chapter/${SIZE}/appendix.ps \
d243 3
a245 6
Chapter/${SIZE}/Section.${SIZE} Manpages: Chapter/${SIZE} merge make${SIZE}sect .FORCE
	@@if [ -s make${SIZE}sect ]; then \
	  echo Making $@@; \
	  echo MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT} WIDTH=${MANWIDTH.${SIZE}} make${SIZE}sect $@@; \
	  MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT} WIDTH=${MANWIDTH.${SIZE}} make${SIZE}sect $@@; \
	fi
d247 2
a248 2
Manmerge:	${MANSECTIONS} massage
	emacs -batch ${MANSECTIONS} -l $F/massageps.el  -f massageps -f exit
a454 1
	@@echo MANSECTIONS: ${MANSECTIONS}
@


1.57
log
@Minor mods--maybe this time it will get printed
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.56 1996/07/03 10:47:39 grog Exp grog $
d7 3
d147 1
a147 1
TOOLS=/home/book/FreeBSD/tools
@


1.56
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.55 1996/07/01 12:33:00 grog Exp grog $
d7 3
a26 42
#
# Revision 1.49  1996/06/26  10:50:40  grog
# Still more mods
#
# Revision 1.48  1996/06/26  10:45:40  grog
# Checkpoint 26 June
#
# Revision 1.47  1996/06/26  08:58:13  grog
# Checkpoint 26 June
#
# Revision 1.46  1996/05/12  14:27:26  grog
# Last minute mods
#
# Revision 1.45  1996/05/11  17:10:58  grog
# Second final draft of CD-ROM box
#
# Revision 1.44  1996/05/11  12:46:13  grog
# Almost final draft for CD-ROM box
#
# Revision 1.43  1996/05/09  10:20:32  grog
# Minor mods
#
# Revision 1.42  1996/05/05  11:32:59  grog
# Modify individual chapter build, remove makebookmakefile
#
# Revision 1.41  1996/05/02  13:00:23  grog
# Minor mods, add disks.mm
#
# Revision 1.40  1996/05/01  12:11:24  grog
# Minor mods
#
# Revision 1.39  1996/05/01  11:55:56  grog
# Checkin 1 May
#
# Revision 1.38  1996/04/30  11:10:59  grog
# Minor mods, checkin for complete "CD Box"
#
# Revision 1.36  1996/04/11  11:37:23  grog
# Checkpoint 11 April
#
# Revision 1.35  1996/04/08  12:00:03  grog
# Minor mods, more orthogonality for long and short versions
a77 5
# CHAPTERS.long = introduction.mm concepts.mm quickinstall.mm install.mm \
#	shareinstall.mm problems.mm xsetup.mm xtheory.mm unixref.mm config.mm ${NETWORK_CHAPTERS} \
#	building.mm ports.mm cvs.mm upgrade.mm debug.mm epilogue.mm

# Jack doesn't want the network in here
a102 3
HANDBOOK.long = Chapter/${SIZE}/handbook.ps
HANDBOOK.short =

d130 1
a130 1
	merge getch filter getchapternumbers handbook.tex wizard.ps freebie.sty \
d177 1
a177 1
# Main entry.  Build the main book and the handbook, if applicable.
d180 2
a181 2
all book.${SIZE}:	tools ${DIRECTORIES} massage Chapter/${SIZE}/book.ps ${HANDBOOK.${SIZE}}
	grep "%%Pages" Chapter/${SIZE}/book.ps ${HANDBOOK.${SIZE}}
a250 13
Chapter/long/handbook.ps handbook.ps: Chapter/${SIZE} ${SIZE} handbook.tex freebie.sty massagetex.el
	if [ `uname -n` != ${REALHOST} ]; then \
	  rsh ${REALHOST} "(cd `pwd`; make $@@)"; \
	else \
	  latex handbook >${SIZE}/Toc/handbook.toc; \
	  latex handbook >${SIZE}/Toc/handbook.toc; \
	  latex handbook >${SIZE}/Toc/handbook.toc; \
	fi
	dvips handbook.dvi
	mv handbook.ps Chapter/long
	emacs -batch Chapter/${SIZE}/handbook.ps -l $F/massagetex.el -f massageps -f exit
	rm -f Chapter/${SIZE}/handbook.ps~

d297 1
a297 1
	rm -f handbook.aux handbook.dvi handbook.?? appendix-start ktrace.out *.pp
d350 1
a350 1
	cp -p Chapter/${SIZE}/book.ps Chapter/${SIZE}/handbook.ps Chapter/${SIZE}/prod
d352 1
a352 2
	emacs -batch Chapter/${SIZE}/handbook.ps -l $F/massagetex.el -f makeframe -f exit
	rm -f Chapter/${SIZE}/book.ps~ Chapter/${SIZE}/handbook.ps~
@


1.55
log
@Fix dependencies
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.54 1996/06/30 15:47:39 grog Exp grog $
d7 3
d73 1
d82 1
d108 1
d174 1
a174 1
RCS-FILES = ${PREFACE} ${CHAPTERS.short} ${CHAPTERS.long} ${CHAPTERS.bisdn} ${CHAPTERS.network} \
d289 1
a289 1
	if [ -s make${SIZE}sect ]; then \
d291 1
@


1.54
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.53 1996/06/30 14:09:02 grog Exp grog $
d7 3
d144 2
d221 1
a221 1
all book.${SIZE}:	tools massage  Chapter/${SIZE}/book.ps ${HANDBOOK.${SIZE}}
d228 1
a228 1
Chapter/${SIZE}/book.ps: Chapter/${SIZE} ${SIZE}/Toc title.${SIZE} ${ALL-SOURCES} ${AUXFILES} ${PSDOCS}
d476 2
a477 3
${SIZE} Chapter/${SIZE} ${SIZE}/Toc fmt/exlist fmt/figlist \
	 fmt/index fmt/tablist fmt/toc:
	@@echo +++ $@@
@


1.53
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.52 1996/06/30 12:14:18 grog Exp grog $
d7 3
d255 1
a255 4
	if [ `expr $$page % 2 ` -eq 0 ]; then \
	  page=`expr $$page + 1`; \
	fi; \
	(echo ".pn $$page"; cat global.mm ${SIZE}/Xref ${SIZE}/chapternumbers; \
d395 4
@


1.52
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.51 1996/06/30 12:10:03 grog Exp grog $
d7 3
d213 1
a213 1
book.${SIZE}:	tools massage  Chapter/${SIZE}/book.ps ${HANDBOOK.${SIZE}}
d277 2
a278 2
Chapter/${SIZE}/Section.${SIZE} Manpages: Chapter/${SIZE} merge .FORCE
	if [ -f make${SIZE}sect ]; then \
d286 1
a286 1
Chapter/long/handbook.ps handbook.ps: handbook.tex freebie.sty
d398 2
@


1.51
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.50 1996/06/30 11:10:19 grog Exp grog $
d7 3
d79 2
a80 1
# Which book?   Should be 'short', 'long', or 'network' or override on the invocation line
d338 4
a341 5
	rm -rf *.Toc.short Chapter/short *.log Toc.short book.short.make book.short.tar.gz 
	rm -rf *.Toc.long Chapter/long *.log Toc.long book.long.make book.long.tar.gz 
	rm -f Xref* tmp* book.longmakefile paths.make filelist lastpage
	rm -f ${AUXFILES} ${RCS-FILES} totidy book.long.tar.gz massage*.el
	rm -f Xref* tmp* book.shortmakefile paths.make filelist lastpage index.mm
@


1.50
log
@Checkpoint 30 June, maybe final version of long book for 2.1.5?
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.49 1996/06/26 10:50:40 grog Exp grog $
d7 3
d155 2
a156 2
	global.mm reset.mm Makefile makebookmakefile paths.make tidy.elgrog.mm part2.mm \
	merge getchapternumbers handbook.tex wizard.ps freebie.sty \
d338 2
a339 2
	rm -f Xref* tmp* book.shortmakefile paths.make filelist lastpage
	rm -f handbook.aux handbook.dvi handbook.?? appendix-start
@


1.49
log
@Still more mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.48 1996/06/26 10:45:40 grog Exp grog $
d7 3
d51 11
a61 6
# Due to a race condition in make, we need to define this in makebookmakefile
HEIGHT = 9i
# 1.4" less than real paper width
WIDTH.small = 4.6i
WIDTH.large = 4.6i
WIDTH.network = 4.6i
d63 1
d68 1
a68 1
MANWIDTH = 4.8i
d74 1
a74 1
SIZE=network
d116 2
a117 2
# MANSECTIONS = Chapter.${SIZE}/Section.1 Chapter.${SIZE}/Section.1X Chapter.${SIZE}/Section.2 \
#	Chapter.${SIZE}/Section.4 Chapter.${SIZE}/Section.8
d121 1
d123 1
a123 1
MANSECTIONS = Chapter.${SIZE}/Section.${MANSUFFIX.${SIZE}}
d125 1
a125 1
HANDBOOK.long = Chapter.${SIZE}/handbook.ps
d129 1
a129 1
PSDOCS = Chapter.${SIZE}/chapters.ps ${MANSECTIONS} Chapter.${SIZE}/appendix.ps Chapter.${SIZE}/toc.ps
d132 1
a132 1
AUXFILES = ${SIZE}/toc.mm ${SIZE}/tables.mm ${SIZE}/index.mm ids.mm ${SIZE}/Xref ${SIZE}/chapternumbers
d144 1
a144 1
REVIEW-SOURCES =  Chapter.${SIZE}/chapters.ps Chapter.${SIZE}/toc.ps ${SOURCES}
d165 6
d176 1
a176 1
# default:	${SOURCES}  Chapter.${SIZE} ${SIZE}/Toc
d200 11
a210 4
book.${SIZE}:	tools Chapter.${SIZE}/book.ps ${HANDBOOK.${SIZE}}
	grep "%%Pages" Chapter.${SIZE}/book.ps ${HANDBOOK.${SIZE}}

Chapter.${SIZE}/book.ps: Chapter.${SIZE} ${SIZE}/Toc title.${SIZE} ${ALL-SOURCES} ${AUXFILES} ${PSDOCS}
d213 5
a217 5
	cat Chapter.${SIZE}/toc.ps Chapter.${SIZE}/chapters.ps ${MANSECTIONS} \
	  Chapter.${SIZE}/appendix.ps >Chapter.${SIZE}/book.ps
	emacs -batch Chapter.${SIZE}/book.ps -l ../../tools/massageps.el  -f massageps -f exit
	rm -f Chapter.${SIZE}/toc.ps Chapter.${SIZE}/chapters.ps ${MANSECTIONS} Chapter.${SIZE}/appendix.ps \
		Chapter.${SIZE}/*~
d221 1
a221 1
#	make ${PSDOCS} ${AUXFILES} Chapter.${SIZE}/book.ps
d225 1
a225 1
Chapter.${SIZE}/chapters.ps chapters: ${CHAPTERS} ${AUXFILES} part2.mm
d229 2
a230 2
	  ../tools/stripcond ${SIZE} | ${PIC} | ${TBL} | \
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d232 2
a233 2
	  >Chapter.${SIZE}/chapters.ps.tmp 2>${SIZE}/Toc/book
	mv Chapter.${SIZE}/chapters.ps.tmp Chapter.${SIZE}/chapters.ps
d235 1
a235 1
	page=`awk < Chapter.${SIZE}/chapters.ps '/%%Pages:/ {page=$$2 }; END {print page}'`; \
d239 1
a239 1
Chapter.${SIZE}/appendix.ps appendix: ${APPENDICES} ${AUXFILES}
d247 2
a248 2
	  ../tools/stripcond ${SIZE} | ${PIC} | ${TBL} | \
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d250 2
a251 2
	  >Chapter.${SIZE}/appendix.ps.tmp 2>${SIZE}/Toc/appendix
	mv Chapter.${SIZE}/appendix.ps.tmp Chapter.${SIZE}/appendix.ps
d255 1
a255 1
Chapter.${SIZE}/toc.ps toc: title.${SIZE} wizard.ps ${AUXFILES}
d257 1
a257 1
	gsoelim ${SIZE}/Xref title.${SIZE} reset.mm global.mm ${SIZE}/chapternumbers toc.mm.${SIZE} reset.mm ${SIZE}/tables.mm \
d259 2
a260 2
	  ../tools/stripcond ${SIZE} | ${PIC} | ${TBL} | \
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d262 2
a263 2
	  > Chapter.${SIZE}/toc.ps.tmp 2>${SIZE}/Toc/toc
	mv Chapter.${SIZE}/toc.ps.tmp Chapter.${SIZE}/toc.ps
d266 9
a274 1
Manpages: ${MANSECTIONS}
d276 8
a283 8
${MANSECTIONS}:	../tools/tmac.an ../tools/tmac.doc merge make${SIZE}sect
	@@echo Making $@@
	MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT} WIDTH=${MANWIDTH.${SIZE}} make${SIZE}sect $@@

Chapter.long/handbook.ps handbook.ps: handbook.tex freebie.sty
	latex handbook >${SIZE}/Toc/handbook.toc
	latex handbook >${SIZE}/Toc/handbook.toc
	latex handbook >${SIZE}/Toc/handbook.toc
d285 3
a287 3
	mv handbook.ps Chapter.long
	emacs -batch Chapter.${SIZE}/handbook.ps -l ../../tools/massagetex.el -f massageps -f exit
	rm -f Chapter.${SIZE}/handbook.ps~
d302 1
a302 1
	-../tools/make-xref $@@ ${TOCFILES}
d306 1
a306 1
	../tools/make-index $@@ ${TOCFILES}
d310 1
a310 1
	../tools/make-toc $@@ ${TOCFILES}
d314 1
a314 1
	../tools/make-table $@@ ${TOCFILES}
d326 1
a326 1
	(cd ../tools; make)
d331 2
a332 2
	rm -rf *.Toc.short Chapter.short *.log Toc.short book.short.make book.short.tar.gz 
	rm -rf *.Toc.long Chapter.long *.log Toc.long book.long.make book.long.tar.gz 
d334 1
a334 1
	rm -f ${AUXFILES} ${RCS-FILES} totidy book.long.tar.gz
d345 1
a345 1
${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps}:	${SIZE}/Toc/book Chapter.${SIZE} ${SIZE}/chapternumbers  ${SIZE}/Xref
d347 2
a348 2
	page=`egrep "^Chapter.*\<$$base\>" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	chapter=`egrep "^Chapter.*\<$$base\>" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$2}'`; \
d351 1
a351 1
	../tools/stripcond long | \
d353 1
a353 1
	 groff -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT} -rW${WIDTH.${SIZE}} \
d355 1
a355 1
	 >Chapter.${SIZE}/$@@.tmp 2>${SIZE}/Toc/$$base; \
d357 1
a357 1
	mv Chapter.${SIZE}/$@@.tmp Chapter.${SIZE}/$@@; \
d359 1
a359 1
	page=`awk < Chapter.${SIZE}/$@@ '/%%Page:/ {page=$$2 }; END {print page}'`; \
d361 1
a361 1
	  filename=Chapter.${SIZE}/0$$chapter-$@@; \
d363 1
a363 1
	  filename=Chapter.${SIZE}/$$chapter-$@@; \
d374 1
a374 1
	ln Chapter.${SIZE}/$@@ $$filename; \
d379 1
a379 1
${CHAPTERS:.mm=.pp} ${APPENDICES:.mm=.pp}:
d381 3
a383 8
	page=`egrep "^Chapter.*\<$$base\>" ${SIZE}/Toc/book | sed 's:,::g' | awk '{print $$4}'`; \
	(echo ".pn $$page"; gsoelim global.mm Xref chapternumbers.${SIZE} $$base.mm) | \
	../tools/stripcond long | ${PIC} | ${TBL} >$@@

pageframe:
	emacs -batch Chapter.${SIZE}/book.ps -l ../../tools/massageps.el -f makeframe -f exit
	emacs -batch Chapter.${SIZE}/handbook.ps -l ../../tools/massagetex.el -f makeframe -f exit
	rm -f Chapter.${SIZE}/book.ps~ Chapter.${SIZE}/handbook.ps~
d385 12
d407 1
a407 1
	tar cf - ${RCS-FILES} Chapter.${SIZE}/book.ps Chapter.${SIZE}/toc.ps | gzip >book.tar.gz
d410 1
a410 1
	tar cf - Chapter.${SIZE}/book.ps Chapter.${SIZE}/toc.ps | gzip >ps.tar.gz
d456 2
a457 1
${SIZE} Chapter.${SIZE} ${SIZE}/Toc fmt/exlist fmt/figlist fmt/index fmt/tablist fmt/toc:
a461 14
	@@echo This cave under construction 
	@@echo CHAPTERS: ${CHAPTERS}
	@@echo APPENDICES: ${APPENDICES}
	@@echo MANSECTIONS: ${MANSECTIONS}
	@@echo PSDOCS: ${PSDOCS}
	@@echo AUXFILES: ${AUXFILES}
	@@echo SOURCES: ${SOURCES}
	@@echo ALL-SOURCES: ${ALL-SOURCES}
	@@echo TOCFILES: ${TOCFILES}
	@@echo REVIEW-SOURCES: ${REVIEW-SOURCES}
	@@echo RCS-FILES: ${RCS-FILES}
	@@echo POSTSCRIPT: ${POSTSCRIPT}
	@@echo BASENAMES : ${BASENAMES }
	@@echo ALLBASES: ${ALLBASES}
d463 1
a463 1
# 	gsoelim $< | ../tools/stripcond ${SIZE} | \
d465 1
a465 1
# 	   groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH.${SIZE}} -rPS=${TEXTSIZE} \
d467 1
a467 1
# 	   >Chapter.${SIZE}/$@@ 2>${SIZE}/Toc/$@@;
d472 1
a472 1
	gsoelim $< | ../tools/stripcond ${SIZE} | \
d474 1
a474 1
	   nroff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW8i -rPS=${TEXTSIZE} \
d476 1
a476 1
	   >Chapter.${SIZE}/$@@ 2>${SIZE}/Toc/$@@;
d479 1
a479 1
ids.mm:	.FORCE
d481 1
a481 1
	grep \$$\Id ${SIZE}/title preface.mm ${SOURCES} ${MACROFILE} | sed 's:^.*\$$I:\$$I:' >ids.mm.new
d486 17
@


1.48
log
@Checkpoint 26 June
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.47 1996/06/26 08:58:13 grog Exp grog $
d7 3
d142 4
a145 2
	global.mm reset.mm Makefile makebookmakefile paths.make tidy.el title.${SIZE} grog.mm part2.mm \
	make${SIZE}sect merge getchapternumbers handbook.tex wizard.ps freebie.sty
@


1.47
log
@Checkpoint 26 June
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.46 1996/05/12 14:27:26 grog Exp grog $
d7 3
d137 2
a138 1
RCS-FILES = ${PREFACE} ${CHAPTERS.short} ${CHAPTERS.long} ${APPENDICES.short} ${APPENDICES.long} \
d272 1
a272 1
${SIZE}/toc.mm:	${TOCFILES} ${SIZE} 
@


1.46
log
@Last minute mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.45 1996/05/11 17:10:58 grog Exp grog $
d7 3
d45 4
a48 1
WIDTH = 4.6i
d58 2
a59 2
# Which book?   Should be 'short' or 'long', or override on the invocation line
SIZE=long
d63 1
a63 1
.SUFFIXES: .mm .ps .psl .PS
d71 2
d76 2
a77 1
NETWORK_CHAPTERS = netintro.mm isp.mm netsetup.mm isdn.mm netdebug.mm nfs.mm dickless.mm dns.mm \
d94 1
d105 1
d116 1
a116 1
AUXFILES = toc.mm tables.mm index.mm ids.mm Xref chapternumbers.${SIZE}
d125 1
a125 1
TOCFILES = Toc.${SIZE}/toc Toc.${SIZE}/book Toc.${SIZE}/toc.man Toc.${SIZE}/appendix
d135 1
a135 1
	global.mm reset.mm Makefile makebookmakefile paths.make tidy.el title.mm grog.mm part2.mm \
d151 1
a151 1
# default:	${SOURCES}  Chapter.${SIZE} Toc.${SIZE}
d178 1
a178 1
Chapter.${SIZE}/book.ps: Chapter.${SIZE} Toc.${SIZE} title.mm ${ALL-SOURCES} ${AUXFILES} ${PSDOCS}
d180 1
a180 1
	make texts
d190 1
a190 1
	make ${PSDOCS} ${AUXFILES}
d195 1
a195 1
	(cat global.mm Xref chapternumbers.${SIZE}; \
d198 1
a198 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rPS=${TEXTSIZE} \
d200 1
a200 1
	  >Chapter.${SIZE}/chapters.ps.tmp 2>Toc.${SIZE}/book
d202 1
a202 1
	-egrep -v ^'File|><' Toc.${SIZE}/book
d213 2
a214 2
	(echo ".pn $$page"; cat global.mm Xref chapternumbers.${SIZE}; \
	 for i in ${APPENDICES} index.mm; do gsoelim $$i reset.mm; done; gsoelim grog.mm) | \
d216 1
a216 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rPS=${TEXTSIZE} \
d218 1
a218 1
	  >Chapter.${SIZE}/appendix.ps.tmp 2>Toc.${SIZE}/appendix
d220 1
a220 1
	-egrep -v ^'File|><' Toc.${SIZE}/appendix
d223 1
a223 1
Chapter.${SIZE}/toc.ps toc: title.mm wizard.ps ${AUXFILES}
d225 1
a225 1
	gsoelim Xref title.mm reset.mm global.mm chapternumbers.${SIZE} toc.mm reset.mm tables.mm \
d228 1
a228 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rPS=${TEXTSIZE} \
d230 1
a230 1
	  > Chapter.${SIZE}/toc.ps.tmp 2>Toc.${SIZE}/toc
d232 1
a232 1
	-egrep -v ^'File|><' Toc.${SIZE}/toc
d238 1
a238 1
	MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT} WIDTH=${MANWIDTH} make${SIZE}sect $@@
d241 3
a243 3
	latex handbook >Toc.${SIZE}/handbook.toc
	latex handbook >Toc.${SIZE}/handbook.toc
	latex handbook >Toc.${SIZE}/handbook.toc
d249 1
a249 1
chapternumbers.${SIZE}: ${SOURCES}
d260 1
a260 1
Xref:	${TOCFILES} getchapternumbers
d262 1
a262 1
	-../tools/make-xref ${TOCFILES}
d264 1
a264 1
index.mm:	${TOCFILES}
d268 1
a268 1
toc.mm:	${TOCFILES}
d272 1
a272 1
tables.mm:	${TOCFILES}
d278 2
a279 2
Toc.${SIZE}/toc Toc.${SIZE}/book Toc.${SIZE}/1 Toc.${SIZE}/1X Toc.${SIZE}/2 Toc.${SIZE}/4 \
		Toc.${SIZE}/8 Toc.${SIZE}/appendix Toc.${SIZE}/X Toc.${SIZE}/toc.man:
d305 1
a305 1
${CHAPTERS:.mm=.ps} ${APPENDICES:.mm=.ps}:	Toc.${SIZE}/book
d307 2
a308 2
	page=`egrep "^Chapter.*\<$$base\>" Toc.long/book | sed 's:,::g' | awk '{print $$4}'`; \
	chapter=`egrep "^Chapter.*\<$$base\>" Toc.long/book | sed 's:,::g' | awk '{print $$2}'`; \
d310 1
a310 1
	(echo ".pn $$page"; gsoelim global.mm Xref chapternumbers.long $$base.mm) | \
d313 1
a313 1
	 groff -rex=${EXAMPLE-SIZE} -rfirstpage=1 -r$$$$ -rL${HEIGHT} -rW${WIDTH} \
d315 1
a315 1
	 >Chapter.long/$@@.tmp 2>Toc.long/$$base; \
d317 1
a317 1
	mv Chapter.long/$@@.tmp Chapter.long/$@@; \
d319 1
a319 1
	page=`awk < Chapter.long/$@@ '/%%Page:/ {page=$$2 }; END {print page}'`; \
d321 1
a321 1
	  filename=Chapter.long/0$$chapter-$@@; \
d323 1
a323 1
	  filename=Chapter.long/$$chapter-$@@; \
d332 1
a332 1
	egrep -v ^'Chapter|File|><' Toc.long/$$base; \
d334 1
a334 1
	ln Chapter.long/$@@ $$filename; \
d339 6
d390 1
a390 1
${SOURCES}:	global.mm # chapternumbers.${SIZE}
d409 1
a409 1
Chapter.${SIZE} Toc.${SIZE} fmt/exlist fmt/figlist fmt/index fmt/tablist fmt/toc:
d414 23
d440 1
a440 1
	   groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rPS=${TEXTSIZE} \
d442 2
a443 2
	   >Chapter.${SIZE}/$@@ 2>Toc.${SIZE}/$@@;
	-egrep -v ^'File|><' Toc.${SIZE}/$@@
d447 1
a447 1
	grep \$$\Id title.mm preface.mm ${SOURCES} ${MACROFILE} | sed 's:^.*\$$I:\$$I:' >ids.mm.new
@


1.45
log
@Second final draft of CD-ROM box
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.44 1996/05/11 12:46:13 grog Exp grog $
d7 3
d214 1
a214 1
	gsoelim title.mm reset.mm global.mm Xref chapternumbers.${SIZE} toc.mm reset.mm tables.mm \
@


1.44
log
@Almost final draft for CD-ROM box
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.43 1996/05/09 10:20:32 grog Exp grog $
d7 3
d328 1
@


1.43
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.42 1996/05/05 11:32:59 grog Exp grog $
d7 3
d31 1
a31 1
# This book is printed in the format 8.5" high by 6" wide
d34 2
a35 1
HEIGHT = 8.5i
d39 3
a42 5
# XXX
# HEIGHT = 8.5i
# WIDTH should be 1.4" less than the real width of the paper
# WIDTH  = 4.6i

d166 1
a166 1
	emacs -batch Chapter.${SIZE}/book.ps -l ../../tools/massageps.el
d224 3
a226 3
	latex handbook
	latex handbook
	latex handbook
d229 1
a229 1
	emacs -batch Chapter.${SIZE}/handbook.ps -l ../../tools/massagetex.el
d286 1
a286 1
all-chapters: ${CHAPTERS:.mm=.ps}
d288 1
a288 1
${CHAPTERS:.mm=.ps}:	Toc.${SIZE}/book
d290 2
a291 2
	page=`egrep "^Chapter.*$$base" Toc.long/book | sed 's:,::g' | awk '{print $$4}'`; \
	chapter=`egrep "^Chapter.*$$base" Toc.long/book | sed 's:,::g' | awk '{print $$2}'`; \
d321 4
@


1.42
log
@Modify individual chapter build, remove makebookmakefile
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.41 1996/05/02 13:00:23 grog Exp grog $
d7 3
d179 1
a179 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -rPS=${TEXTSIZE} \
d197 1
a197 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -rPS=${TEXTSIZE} \
d209 1
a209 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -rPS=${TEXTSIZE} \
d231 1
a231 1
	getchapternumbers ${SOURCES} > $@@.temp
d295 1
a295 1
	    -rPS=${TEXTSIZE} -rLS=${LINESPACING} -rN2 -mpic ${MACROFILE} - \
d387 1
a387 1
	   groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -rPS=${TEXTSIZE} \
@


1.41
log
@Minor mods, add disks.mm
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.40 1996/05/01 12:11:24 grog Exp grog $
d7 3
d28 6
d136 1
a136 1
include book.${SIZE}.make
d187 1
a187 1
	read < lastpage page; \
d229 1
a229 1
	cmp $@@ $@@.temp 2>/dev/null; \
d233 2
d274 1
a274 1
	rm -f handbook.aux handbook.dvi handbook.??
d279 37
@


1.40
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.39 1996/05/01 11:55:56 grog Exp grog $
d7 3
a20 49
#
# Revision 1.33  1996/02/24  16:23:33  grog
# More mods
#
# Revision 1.32  1996/02/24  15:23:30  grog
# more minor nits
#
# Revision 1.31  1996/02/24  13:44:54  grog
# Minor cosmetics
#
# Revision 1.30  1996/02/24  13:33:51  grog
# minor mods
#
# Revision 1.29  1996/02/24  11:46:36  grog
# minor mods
#
# Revision 1.28  1996/02/19  12:07:11  grog
# More mods
#
# Revision 1.27  1996/02/17  15:25:11  grog
# Minor mods
#
# Revision 1.26  1996/02/17  13:10:38  grog
# Checkin after expanding book
#
# Revision 1.25  1996/02/17  07:32:38  grog
# Minor mods
#
# Revision 1.24  1996/02/04  17:45:06  grog
# Final pre-printing version?
#
# Revision 1.23  1996/01/28  13:44:14  grog
# Checkpoint 28 January
#
# Revision 1.22  1996/01/21  16:51:23  grog
# Major mods to remove short version of book and
# use tools in ../tools
#
# Revision 1.21  1996/01/06  16:44:20  grog
# Second checkpoint 6 January
#
# Revision 1.20  1996/01/06  12:08:48  grog
# Checkpoint 6 January
#
# Revision 1.19  1996/01/04  14:55:43  grog
# Minor mods
#
# Revision 1.18  1996/01/04  11:55:25  grog
# Checkpoint 4 January 1996
d46 1
a46 1
	   shareinstall.mm problems.mm xsetup.mm xtheory.mm unixref.mm building.mm
d58 1
a58 1
	building.mm
@


1.39
log
@Checkin 1 May
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.38 1996/04/30 11:10:59 grog Exp grog $
d7 3
d151 1
a151 1
	make${SIZE}sect merge getchapternumbers handbook.tex wizard.ps
d309 1
a309 1
	rm -f ${AUXFILES} ${RCS-FILES} totidy book.short.tar.gz
@


1.38
log
@Minor mods, checkin for complete "CD Box"
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.36 1996/04/11 11:37:23 grog Exp grog $
d7 3
d101 1
a101 1
	building.mm epilogue.mm
d148 1
a148 1
	make${SIZE}sect merge getchapternumbers
d204 1
d218 1
d234 2
a235 1
Chapter.${SIZE}/toc.ps toc: title.mm ${AUXFILES}
d259 1
a259 4

foo:
	@@echo Making $@@
	MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT} WIDTH=${MANWIDTH} make${SIZE}sect Chapter.long/Section.long
d270 1
a270 1
Xref:	${TOCFILES}
d389 1
a389 1
	echo .ds formatdate `date '+%d %B 19%y'` >>ids.mm.new
@


1.37
log
@Checkin before path changes
@
text
@d97 2
a98 2
	shareinstall.mm problems.mm xsetup.mm xtheory.mm unixref.mm config.mm \
	building.mm ports.mm cvs.mm upgrade.mm debug.mm epilogue.mm
d104 3
a106 2
APPENDICES.long =  packages.mm biblio.mm hardware.mm getting.mm hwconfig.mm \
	difference.mm licenses.mm
d118 3
d184 2
a185 2
book.${SIZE}:	Chapter.${SIZE}/book.ps tools
	grep "%%Pages" Chapter.${SIZE}/book.ps
d190 2
a191 2
	cat Chapter.${SIZE}/toc.ps Chapter.${SIZE}/chapters.ps ${MANSECTIONS} Chapter.${SIZE}/appendix.ps  \
		>Chapter.${SIZE}/book.ps
d245 12
@


1.36
log
@Checkpoint 11 April
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.35 1996/04/08 12:00:03 grog Exp grog $
d7 3
d62 1
a62 1
# This book is printed in the format 8.5" high by 6.75" wide
d66 2
a67 2
# WIDTH should be 1.7" less than the real width of the paper
# WIDTH  = 5.05i
d70 1
a70 1
EXAMPLE-SIZE = 7.5
d88 1
a88 1
NETWORK_CHAPTERS = netintro.mm isp.mm netsetup.mm netdebug.mm nfs.mm dickless.mm dns.mm \
d91 5
d97 1
a97 1
	shareinstall.mm problems.mm xsetup.mm xtheory.mm unixref.mm config.mm ${NETWORK_CHAPTERS} \
d136 1
a136 1
# This version includes files which currently don't get used.
d199 1
a199 1
	(cat global.mm chapternumbers.${SIZE}; \
d216 1
a216 1
	(echo ".pn $$page"; cat global.mm chapternumbers.${SIZE}; \
d227 1
a227 1
	gsoelim title.mm reset.mm global.mm chapternumbers.${SIZE} toc.mm reset.mm tables.mm \
d257 1
a257 1
	../tools/make-index ${TOCFILES}
d270 1
a270 1
		Toc.${SIZE}/8 Toc.${SIZE}/appendix Toc.${SIZE}/X:
@


1.35
log
@Minor mods, more orthogonality for long and short versions
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.33 1996/02/24 16:23:33 grog Exp grog $
d7 3
d104 4
a107 3
MANSECTIONS.short = Chapter.${SIZE}/Section.X
# XXX until things are more stable MANSECTIONS.long = Chapter.${SIZE}/Section.X
MANSECTIONS = ${MANSECTIONS.${SIZE}}
d121 3
d133 1
a133 1
	make${SIZE}sect  merge
d235 6
a240 1
	getchapternumbers ${SOURCES} > $@@
d242 2
a243 1
Xref:	Toc.${SIZE}/toc Toc.${SIZE}/book Toc.${SIZE}/appendix
d245 1
a245 1
	-cd Toc.${SIZE}; ../../tools/make-xref toc book appendix
d247 1
a247 1
index.mm:  Toc.${SIZE}/toc Toc.${SIZE}/book Toc.${SIZE}/X Toc.${SIZE}/appendix
d249 1
a249 1
	cd Toc.${SIZE}; ../../tools/make-index $@@ toc book X appendix
d251 1
a251 1
toc.mm:  Toc.${SIZE}/toc Toc.${SIZE}/book Toc.${SIZE}/X Toc.${SIZE}/appendix
d253 1
a253 1
	cd Toc.${SIZE}; ../../tools/make-toc $@@ toc book X appendix
d255 1
a255 1
tables.mm: Toc.${SIZE}/toc Toc.${SIZE}/book Toc.${SIZE}/appendix
d257 1
a257 1
	cd Toc.${SIZE}; ../../tools/make-table $@@ toc book appendix
@


1.34
log
@First cut at generating both long and short versions of book again.
@
text
@d82 3
d86 4
a89 2
	shareinstall.mm problems.mm xsetup.mm xtheory.mm unixref.mm config.mm network.mm building.mm \
	ports.mm cvs.mm upgrade.mm debug.mm epilogue.mm
d91 3
a93 1
APPENDICES =  checklist.mm biblio.mm releasenotes.mm hardware.mm getting.mm packages.mm hwconfig.mm \
d96 1
a96 4

# Appendices
APPENDICES.short =  packages.mm biblio.mm getting.mm licenses.mm
APPENDICES.long =  packages.mm biblio.mm getting.mm licenses.mm
d102 2
a103 1
MANSECTIONS.long = Chapter.${SIZE}/Section.X
d109 1
a109 1
AUXFILES = toc.mm tables.mm index.mm ids.mm Xref
d112 1
a112 1
SOURCES = ${CHAPTERS.${SIZE}} ${APPENDICES.${SIZE}} 
d115 1
a115 1
ALL-SOURCES = ${PREFACE} ${CHAPTERS.${SIZE}} ${APPENDICES.${SIZE}} ${AUXFILES} global.mm reset.mm grog.mm
d124 3
a126 3
RCS-FILES = ${PREFACE} ${CHAPTERS.short} ${CHAPTERS.long} ${APPENDICES} global.mm reset.mm  \
	 Makefile makebookmakefile paths.make tidy.el title.mm grog.mm part2.mm \
	makeshortsect merge
d165 2
a166 1
book.${SIZE}:	Chapter.${SIZE}/book.${SIZE}.ps tools
d168 1
a168 1
Chapter.${SIZE}/book.${SIZE}.ps: Chapter.${SIZE} Toc.${SIZE} title.mm ${ALL-SOURCES} ${AUXFILES} ${PSDOCS}
d172 2
a173 2
		>Chapter.${SIZE}/book.${SIZE}.ps
	emacs -batch Chapter.${SIZE}/book.${SIZE}.ps -l ../../tools/massageps.el
d179 1
a179 1
#	make ${PSDOCS} ${AUXFILES} Chapter.${SIZE}/book.${SIZE}.ps
d182 1
a182 1
Chapter.${SIZE}/chapters.ps chapters: ${CHAPTERS.${SIZE}} ${AUXFILES} part2.mm
d184 2
a185 1
	(cat global.mm; for i in ${CHAPTERS.${SIZE}}; do gsoelim $$i reset.mm; done; gsoelim part2.mm) | \
d189 1
a189 1
	  >Chapter.${SIZE}/chapters.ps.tmp 2>Toc.${SIZE}/book.${SIZE}
d191 1
a191 1
	-egrep -v ^'File|><' Toc.${SIZE}/book.${SIZE}
d201 1
a201 1
	(echo ".pn $$page"; cat global.mm; \
d212 2
a213 1
	gsoelim title.mm reset.mm global.mm toc.mm reset.mm tables.mm reset.mm ${PREFACE} | \
d227 1
a227 1
chapternumbers: ${SOURCES}
d230 1
a230 1
Xref:	Toc.${SIZE}/toc Toc.${SIZE}/book.${SIZE} Toc.${SIZE}/appendix
d232 1
a232 1
	-cd Toc.${SIZE}; ../../tools/make-xref toc book.${SIZE} appendix
d234 1
a234 1
index.mm:  Toc.${SIZE}/toc Toc.${SIZE}/book.${SIZE} Toc.${SIZE}/X Toc.${SIZE}/appendix
d236 1
a236 1
	cd Toc.${SIZE}; ../../tools/make-index $@@ toc book.${SIZE} X appendix
d238 1
a238 1
toc.mm:  Toc.${SIZE}/toc Toc.${SIZE}/book.${SIZE} Toc.${SIZE}/X Toc.${SIZE}/appendix
d240 1
a240 1
	cd Toc.${SIZE}; ../../tools/make-toc $@@ toc book.${SIZE} X appendix
d242 1
a242 1
tables.mm: Toc.${SIZE}/toc Toc.${SIZE}/book.${SIZE} Toc.${SIZE}/appendix
d244 1
a244 1
	cd Toc.${SIZE}; ../../tools/make-table $@@ toc book.${SIZE} appendix
d248 1
a248 1
Toc.${SIZE}/toc Toc.${SIZE}/book.${SIZE} Toc.${SIZE}/1 Toc.${SIZE}/1X Toc.${SIZE}/2 Toc.${SIZE}/4 \
d261 6
a266 3
	rm -rf *.Toc.${SIZE} Chapter.${SIZE} *.log Toc.${SIZE} book.${SIZE}.make book.${SIZE}.tar.gz 
	rm -f Xref* tmp* book.${SIZE}makefile paths.make filelist lastpage
	rm -f ${AUXFILES} ${RCS-FILES} totidy book.${SIZE}.tar.gz
d282 1
a282 1
	tar cf - ${RCS-FILES} Chapter.${SIZE}/book.${SIZE}.ps Chapter.${SIZE}/toc.ps | gzip >book.${SIZE}.tar.gz
d285 1
a285 1
	tar cf - Chapter.${SIZE}/book.${SIZE}.ps Chapter.${SIZE}/toc.ps | gzip >ps.tar.gz
d312 1
a312 1
${SOURCES}:	global.mm
@


1.33
log
@More mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.32 1996/02/24 15:23:30 grog Exp grog $
d7 3
d66 3
d79 1
a79 1
CHAPTERS = introduction.mm concepts.mm quickinstall.mm install.mm \
d82 8
d91 2
a92 1
APPENDICES =  packages.mm biblio.mm getting.mm licenses.mm
d95 4
a98 2
# MANSECTIONS = Chapter/Section.1 Chapter/Section.1X Chapter/Section.2 Chapter/Section.4 Chapter/Section.8
MANSECTIONS = Chapter/Section.X
d101 1
a101 1
PSDOCS = Chapter/chapters.ps ${MANSECTIONS} Chapter/appendix.ps Chapter/toc.ps
d107 1
a107 1
SOURCES = ${CHAPTERS} ${APPENDICES} 
d110 1
a110 1
ALL-SOURCES = ${PREFACE} ${CHAPTERS} ${APPENDICES} ${AUXFILES} global.mm reset.mm grog.mm
d113 1
a113 1
REVIEW-SOURCES =  Chapter/chapters.ps Chapter/toc.ps ${SOURCES}
d119 1
a119 1
RCS-FILES = ${PREFACE} ${CHAPTERS} ${APPENDICES} global.mm reset.mm  \
d134 1
a134 1
# The default target, all, is in book.make. The ${SOURCES} is to ensure that the
d136 1
a136 1
# default:	${SOURCES}  Chapter Toc
d141 1
a141 1
default:	book
d143 1
a143 1
include book.make
d146 1
a146 1
# book.make:  Makefile makebookmakefile
d149 2
a150 2
book.make:  Makefile makebookmakefile
	./makebookmakefile "${SOURCES:.mm=.ps}" "${PSDOCS}"
d160 1
a160 1
book:	Chapter/book.ps tools
d162 1
a162 1
Chapter/book.ps: Chapter Toc title.mm ${ALL-SOURCES} ${AUXFILES} ${PSDOCS}
d165 5
a169 3
	cat Chapter/toc.ps Chapter/chapters.ps ${MANSECTIONS} Chapter/appendix.ps  >Chapter/book.ps
	emacs -batch Chapter/book.ps -l ../../tools/massageps.el
	rm -f Chapter/toc.ps Chapter/chapters.ps ${MANSECTIONS} Chapter/appendix.ps Chapter/*~
d173 1
a173 1
#	make ${PSDOCS} ${AUXFILES} Chapter/book.ps
d176 1
a176 1
Chapter/chapters.ps chapters: ${CHAPTERS} ${AUXFILES} part2.mm
d178 2
a179 2
	(cat global.mm; for i in ${CHAPTERS}; do gsoelim $$i reset.mm; done; gsoelim part2.mm) | \
	  ../tools/stripcond short | ${PIC} | ${TBL} | \
d182 4
a185 4
	  >Chapter/chapters.ps.tmp 2>Toc/book
	mv Chapter/chapters.ps.tmp Chapter/chapters.ps
	-egrep -v ^'File|><' Toc/book
	page=`awk < Chapter/chapters.ps '/%%Pages:/ {page=$$2 }; END {print page}'`; \
d188 1
a188 1
Chapter/appendix.ps appendix: ${APPENDICES} ${AUXFILES}
d196 1
a196 1
	  ../tools/stripcond short | ${PIC} | ${TBL} | \
d199 3
a201 3
	  >Chapter/appendix.ps.tmp 2>Toc/appendix
	mv Chapter/appendix.ps.tmp Chapter/appendix.ps
	-egrep -v ^'File|><' Toc/appendix
d203 1
a203 1
Chapter/toc.ps toc: title.mm ${AUXFILES}
d206 1
a206 1
	  ../tools/stripcond short | ${PIC} | ${TBL} | \
d209 3
a211 3
	  > Chapter/toc.ps.tmp 2>Toc/toc
	mv Chapter/toc.ps.tmp Chapter/toc.ps
	-egrep -v ^'File|><' Toc/toc
d215 1
a215 1
${MANSECTIONS}:	../tools/tmac.an ../tools/tmac.doc merge makeshortsect
d217 4
a220 1
	MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${MANHEIGHT} WIDTH=${MANWIDTH} makeshortsect $@@
d222 1
a222 1
Xref:	Toc/toc Toc/book Toc/appendix
d224 1
a224 1
	../tools/make-xref toc book appendix
d226 1
a226 1
index.mm:  Toc/toc Toc/book Toc/X Toc/appendix
d228 1
a228 1
	../tools/make-index $@@ toc book X appendix
d230 1
a230 1
toc.mm:  Toc/toc Toc/book Toc/X Toc/appendix
d232 1
a232 1
	../tools/make-toc $@@ toc book X appendix
d234 1
a234 1
tables.mm: Toc/toc Toc/book Toc/appendix
d236 1
a236 1
	../tools/make-table $@@ toc book appendix
d240 2
a241 1
Toc/toc Toc/book Toc/1 Toc/1X Toc/2 Toc/4 Toc/8 Toc/appendix Toc/X:
d253 3
a255 3
	rm -rf *.Toc Chapter *.log Toc book.make book.tar.gz 
	rm -f Xref* tmp* bookmakefile paths.make filelist lastpage
	rm -f ${AUXFILES} ${RCS-FILES} totidy book.tar.gz
d271 1
a271 1
	tar cf - ${RCS-FILES} Chapter/book.ps Chapter/toc.ps | gzip >book.tar.gz
d274 1
a274 1
	tar cf - Chapter/book.ps Chapter/toc.ps | gzip >ps.tar.gz
d276 1
a276 1
srcarchive booksrc.tar.gz:
d278 1
a278 1
	tar cfh - ${dist} | gzip >book.tar.gz
d280 1
a280 1
book.tar.gz: book
d298 2
a299 2
${RCS-FILES}:
	-co -M -q $@@
d320 1
a320 1
Chapter Toc fmt/exlist fmt/figlist fmt/index fmt/tablist fmt/toc:
d326 1
a326 1
	gsoelim $< | ../tools/stripcond short | \
d330 2
a331 2
	   >Chapter/$@@ 2>Toc/$@@;
	-egrep -v ^'File|><' Toc/$@@
@


1.32
log
@more minor nits
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.31 1996/02/24 13:44:54 grog Exp grog $
d7 3
d315 1
a315 1
	echo .ds formatdate `date` >>ids.mm.new
@


1.31
log
@Minor cosmetics
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.30 1996/02/24 13:33:51 grog Exp grog $
d7 3
d147 1
a147 1
	rm -f Chapter/toc.ps Chapter/chapters.ps ${MANSECTIONS} Chapter/appendix.ps $$i~
d193 1
a193 1
${MANSECTIONS}:	../tools/tmac.an ../tools/tmac.doc merge
@


1.30
log
@minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.29 1996/02/24 11:46:36 grog Exp grog $
d7 3
d143 2
a144 4
	for i in  Chapter/toc.ps Chapter/chapters.ps ${MANSECTIONS} Chapter/appendix.ps Chapter/book.ps; do \
	  emacs -batch $$i -l ../../tools/massageps.el; \
	  rm -f $$i~; \
	done
d190 1
a190 1
${MANSECTIONS}:	../tools/tmac.an ../tools/tmac.doc
d212 1
a212 1
Toc/toc Toc/book Toc/1 Toc/1X Toc/2 Toc/4 Toc/8 Toc/appendix:
@


1.29
log
@minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.28 1996/02/19 12:07:11 grog Exp grog $
d7 3
d224 1
a224 1
	rm -f Xref* tmp* bookmakefile paths.make
@


1.28
log
@More mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.27 1996/02/17 15:25:11 grog Exp grog $
d7 3
d137 4
a140 2
	emacs -batch Chapter/book.ps -l ../../tools/massageps.el
	rm -f Chapter/book.ps~
d194 1
a194 1
index.mm:  Toc/toc Toc/book Toc/1 Toc/1X Toc/2 Toc/4 Toc/8 Toc/appendix
d196 1
a196 1
	../tools/make-index $@@ toc book 1 1X 2 4 8 appendix
d198 1
a198 1
toc.mm:  Toc/toc Toc/book Toc/1 Toc/1X Toc/2 Toc/4 Toc/8 Toc/appendix
d200 1
a200 1
	../tools/make-toc $@@ toc book 1 1X 2 4 8 appendix
@


1.27
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.26 1996/02/17 13:10:38 grog Exp grog $
d7 3
d65 2
a66 1
MANSECTIONS = Chapter/Section.1 Chapter/Section.1X Chapter/Section.2 Chapter/Section.4 Chapter/Section.8
d88 2
a89 1
	 Makefile makebookmakefile paths.make tidy.el title.mm grog.mm part2.mm
d128 1
a128 1
book:	Chapter/book.ps
d130 2
a131 2
Chapter/book.ps: tools Chapter Toc title.mm ${ALL-SOURCES} ${AUXFILES} ${PSDOCS}
	@@echo +++ $@@
d135 1
d139 2
a140 1
	make ${PSDOCS} ${AUXFILES} Chapter/book.ps
d147 1
a147 1
	    -rLS=${LINESPACING} -mpic ${MACROFILE} - \
d164 1
a164 1
	    -rLS=${LINESPACING} -mpic ${MACROFILE} - \
d171 1
a171 1
	gsoelim title.mm reset.mm global.mm toc.mm tables.mm reset.mm ${PREFACE} | \
d260 2
a261 2
# ${RCS-FILES}:
#	-co -M -q $@@
d265 16
a280 16
paths.make:
	@@echo +++ $@@
	@@if [ -f paths.make.orig ]; then \
	  echo ; \
	  @@echo ++++++ This source tree doesn\'t contain a paths.make.; \
	  @@echo ++++++ This probably means that you have forgotten to; \
	  @@echo ++++++ configure it.  I am creating one from the file; \
	  @@echo ++++++ paths.make.orig, but you will probably not be; \
	  @@echo ++++++ happy unless you edit it.  See the file INSTALL; \
	  @@echo ++++++ for further confusing information.; \
	  echo ; \
	  cp paths.make.orig paths.make; \
	else \
	  @@echo +++ Checking out paths.make; \
	  co -M -q paths.make; \
	fi
d300 1
@


1.26
log
@Checkin after expanding book
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.25 1996/02/17 07:32:38 grog Exp grog $
d7 3
d113 1
a113 1
	./makebookmakefile ${SOURCES:.mm=.ps}
d125 1
a125 1
Chapter/book.ps: tools Chapter Toc title.mm ${ALL-SOURCES}Y ${AUXFILES} ${PSDOCS}
d133 1
a133 1
	make ${PSDOCS} Chapter/book.ps
a135 2
# First the contents and preface with roman page numbers
# Then the rest with "Arabic" page numbers
a147 2
# First the contents and preface with roman page numbers
# Then the rest with "Arabic" page numbers
d174 1
a174 1
${MANSECTIONS}:
@


1.25
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.24 1996/02/04 17:45:06 grog Exp grog $
d7 3
a30 1
#
d32 1
d38 1
d61 3
d81 1
a81 1
	 Makefile makebookmakefile paths.make tidy.el title.mm grog.mm
d120 3
a122 1
book:	tools Chapter Toc title.mm ${ALL-SOURCES} ${AUXFILES} chapters ${MANSECTIONS} appendix toc
d126 1
a126 1
	emacs -batch Chapter/book.ps -l ../../tools/mergeps.el
d128 1
a128 1
texts:  tools Chapter Toc title.mm ${ALL-SOURCES} ${AUXFILES}
d130 1
a130 2
	rm -f Chapter/toc.ps Chapter/chapters.ps ${MANSECTIONS} Chapter/appendix.ps
	make chapters ${MANSECTIONS} appendix toc texts
d132 1
a132 1
chapters: ${CHAPTERS} ${AUXFILES}
d136 1
a136 1
	(cat global.mm; for i in ${CHAPTERS}; do gsoelim $$i reset.mm; done) | \
d146 1
a146 1
appendix: ${APPENDICES} ${AUXFILES}
d159 1
a159 1
	  >Chapter/appendix.ps.tmp 2>Toc/book
d161 1
a161 1
	-egrep -v ^'File|><' Toc/book
d163 1
a163 1
toc:	title.mm ${AUXFILES}
d177 1
a177 1
	MACROFILE=${MANMACROS} TBL=${TBL} HEIGHT=${HEIGHT} WIDTH=${WIDTH} ../tools/makeshortsect $@@
d179 1
a179 1
Xref:	Toc/toc Toc/book
d181 1
a181 1
	../tools/make-xref toc book
d183 1
a183 1
index.mm:  Toc/toc Toc/book Toc/1 Toc/1X Toc/2 Toc/4 Toc/8
d185 1
a185 1
	../tools/make-index $@@ toc book
d187 1
a187 1
toc.mm:  Toc/toc Toc/book Toc/1 Toc/1X Toc/2 Toc/4 Toc/8
d189 1
a189 1
	../tools/make-toc $@@ toc book
d191 1
a191 1
tables.mm: Toc/toc Toc/book
d193 1
a193 1
	../tools/make-table $@@ toc book
d197 1
a197 1
Toc/toc Toc/book:
d199 1
a199 1
	echo Creating dummy $@@
@


1.24
log
@Final pre-printing version?
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.23 1996/01/28 13:44:14 grog Exp grog $
d7 3
d54 3
d67 1
a67 1
REVIEW-SOURCES =  Chapter/book.ps Chapter/toc.ps ${SOURCES}
d111 12
a122 1
# These targets build the short version of the book
d124 13
a136 3
book:	tools Chapter Toc Chapter/book.ps
# run a total of three times through, including the dependency above
	make Chapter/book.ps Chapter/book.ps
d138 1
a138 1
Chapter/book.ps:   ${ALL-SOURCES}  ${AUXFILES} ../tools/tmac.M Chapter/toc.ps 
d141 7
a147 1
	(cat global.mm; for i in ${SOURCES} index.mm; do gsoelim $$i reset.mm; done; gsoelim grog.mm) | \
d149 4
a152 3
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
	  >Chapter/book.ps.tmp 2>Toc/book
	mv Chapter/book.ps.tmp Chapter/book.ps
d155 2
a156 1
Chapter/toc.ps toc.ps: title.mm ${AUXFILES}
d159 2
a160 1
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rD1 -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
d165 6
d172 1
d175 2
a176 1
index.mm:  Toc/toc Toc/book
d179 2
a180 1
toc.mm:  Toc/toc Toc/book
d184 1
a186 21
book.ascii:	Chapter Toc Chapter/book.ascii ${AUXFILES}
	make Chapter/book.ascii ${AUXFILES} Chapter/toc.ascii

Chapter/book.ascii:   ${ALL-SOURCES} Chapter/toc.ascii
# First the contents and preface with roman page numbers
# Then the rest with "Arabic" page numbers
	(cat global.mm; for i in ${SOURCES} index.mm; do gsoelim $$i reset.mm; done; ) | \
	  ../tools/stripcond short | ${PIC} | ${TBL} | \
	  nroff -r$$$$ -rL10i -rW8i -rN2 -mpic ${MACROFILE} - \
	  >Chapter/book.ascii.tmp 2>Toc/book
	mv Chapter/book.ascii.tmp Chapter/book.ascii
	-egrep -v ^'File|><' Toc/book

Chapter/toc.ascii toc.ascii: title.mm ${AUXFILES}
	gsoelim title.mm reset.mm global.mm toc.mm tables.mm reset.mm ${PREFACE} | \
	  ../tools/stripcond short | ${PIC} | ${TBL} | \
	  nroff -r$$$$ -rL10i -rD1 -rW8i -rN2 -mpic ${MACROFILE} - \
	  > Chapter/toc.ascii.tmp 2>Toc/toc
	mv Chapter/toc.ascii.tmp Chapter/toc.ascii
	-egrep -v ^'File|><' Toc/toc

d190 1
d195 1
d199 1
d206 1
d252 1
d255 6
a260 6
	  echo ++++++ This source tree doesn\'t contain a paths.make.; \
	  echo ++++++ This probably means that you have forgotten to; \
	  echo ++++++ configure it.  I am creating one from the file; \
	  echo ++++++ paths.make.orig, but you will probably not be; \
	  echo ++++++ happy unless you edit it.  See the file INSTALL; \
	  echo ++++++ for further confusing information.; \
d264 1
a264 1
	  echo +++ Checking out paths.make; \
d269 1
d273 1
d276 2
a277 1
	   groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
d282 1
@


1.23
log
@Checkpoint 28 January
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.22 1996/01/21 16:51:23 grog Exp grog $
d7 3
d58 1
a58 1
ALL-SOURCES = ${PREFACE} ${CHAPTERS} ${APPENDICES} ${AUXFILES} global.mm reset.mm
d68 1
a68 1
	 Makefile makebookmakefile paths.make tidy.el title.mm
d114 1
a114 1
	(cat global.mm; for i in ${SOURCES}; do gsoelim $$i reset.mm; done; gsoelim index.mm) | \
d190 4
a193 1
	tar cf - ${RCS-FILES} ${POSTSCRIPT} | gzip >book.tar.gz
@


1.22
log
@Major mods to remove short version of book and
use tools in ../tools
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.21 1996/01/06 16:44:20 grog Exp grog $
d7 4
d42 7
a48 2
CHAPTERS = introduction.mm prepare.mm install.mm shareinstall.mm problems.mm unixref.mm xsetup.mm xtheory.mm building.mm
APPENDICES =  checklist.mm packages.mm biblio.mm getting.mm licenses.mm
a50 6
# CHAPTERS = introduction.mm prepare.mm install.mm problems.mm unixref.mm config.mm network.mm \
# 	    xsetup.mm xtheory.mm building.mm ports.mm upgrade.mm problems.mm debug.mm epilogue.mm
# 
# APPENDICES =  checklist.mm biblio.mm releasenotes.mm hardware.mm getting.mm packages.mm hwconfig.mm \
# 	     difference.mm licenses.mm
# 
d57 3
d194 1
a194 1
	tar cvzf $@@ Chapter/book.ps Chapter/toc.ps ${MOST-SOURCES}	
@


1.21
log
@Second checkpoint 6 January
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.20 1996/01/06 12:08:48 grog Exp grog $
d7 3
d38 10
a47 7

CHAPTERS = introduction.mm prepare.mm install.mm problems.mm unixref.mm config.mm network.mm \
	    xsetup.mm xtheory.mm building.mm ports.mm upgrade.mm problems.mm debug.mm epilogue.mm

APPENDICES =  checklist.mm biblio.mm releasenotes.mm hardware.mm getting.mm packages.mm hwconfig.mm \
	     difference.mm licenses.mm

d52 1
a52 13
ALL-SOURCES = ${PREFACE} ${CHAPTERS} ${APPENDICES} global.mm index.mm toc.mm tables.mm reset.mm tmac.M

# The chapter source files for the short version of the book
SCHAPTERS = introduction.mm prepare.mm install.mm problems.mm unixref.mm xsetup.mm xtheory.mm building.mm

SAPPENDICES =  checklist.mm packages.mm biblio.mm getting.mm licenses.mm

# The sources for all chapters
SHORTSOURCES = ${SCHAPTERS} ${SAPPENDICES} 

# The sources for chapters, index and TOC
MOST-SHORTSOURCES = ${PREFACE} ${SHORTSOURCES} global.mm shortindex.mm shorttoc.mm \
		shorttables.mm reset.mm
a53 2
ALL-SHORTSOURCES = ${MOST-SHORTSOURCES} tmac.M

d56 1
a56 1
# RCS-FILES = ${SOURCES} global.mm totidy mkindex Makefile \
d58 2
a59 3
RCS-FILES = ${ALL-SOURCES} global.mm Makefile makebookmakefile makeshortbookmakefile \
	make-xref make-toc make-index make-table mkindex.c mkindex.h paths.make tmac.M tidy.el \
	roman.c stitle.mm title.mm printers.mm security.mm stripcond.c
d79 1
a79 1
default:	shortbook
d87 2
a88 2
book.make:  Makefile makeshortbookmakefile
	./makeshortbookmakefile ${SHORTSOURCES:.mm=.ps}
a91 3
Xref:
	if [ ! -f $@@ ]; then touch $@@; fi

d96 1
a96 29
Book.Toc:
	rm -f Toc/book
	-for i in ${SOURCES:.mm=}; do grep PAGENO Toc/$$i >> Toc/book; done

Xref.new: Toc/book 
	# Now rebuild the Xrefs
	@@echo >Xref.new "\.\\\" Cross-references generated by $$0 `date`"
	@@cat Book.Toc|sed 's/><PAGENO://; s/ *$$//'| sort -f +1 >>Xref.new
	@@cat Book.Toc|sed 's/><PAGENO://; s/ *$$//'| awk '{print $$2}' | sort | uniq -d >/tmp/double-defines
	@@if [ -s /tmp/double-defines ]; then \
	  echo "*** Doubly defined references:"; \
	  ref=`xargs </tmp/double-defines`; \
	  for i in $$ref; do \
	    grep "ds $$i" Book.Toc | sed 's*><PAGENO:.ds**'; \
	  done; \
	  exit 1; \
	fi
	@@tail +2 Xref.new >tmp-Xref.new
	@@tail +2 Xref >tmp-Xref.old
	@@cmp tmp-Xref.old tmp-Xref.new; \
	if [ $$? -ne 0 ]; then \
	  echo "++++ Xrefs have changed - need to repeat format"; \
	  mv Xref.new Xref; \
	else \
	  echo +++ Xref files unchanged; \
	fi
	rm tmp-Xref*

# These targets build the long version of the book
d98 3
a100 2
book:	Chapter Toc Chapter/book.ps xref toc.mm tables.mm index.mm stripcond
	make xref toc.mm tables.mm index.mm Chapter/book.ps
d102 1
a102 1
Chapter/book.ps:   ${ALL-SOURCES} Chapter/tocp.ps stripcond
d105 2
a106 2
	(cat global.mm; for i in ${SOURCES} index.mm; do gsoelim $$i reset.mm; done; ) | \
	  stripcond long | ${PIC} | ${TBL} | \
d108 3
a110 2
	  >Chapter/book.ps 2>Toc/book
	 egrep -v ^'File|><' Toc/book
d112 1
a112 1
Chapter/tocp.ps toc: title.mm toc.mm tables.mm preface.mm tmac.M
d114 1
a114 41
	  stripcond long | ${PIC} | ${TBL} | \
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rD1 -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
	  > Chapter/tocp.ps 2>Toc/tocp
	 egrep -v ^'File|><' Toc/tocp

xref:	make-xref Toc/tocp Toc/book
	make-xref tocp book

index.mm:  make-index mkindex Toc/tocp Toc/book
	make-index $@@ tocp book

mkindex:	mkindex.c roman.c
	gcc -o mkindex -g mkindex.c roman.c -Wall

stripcond:	stripcond.c
	gcc -o stripcond -g stripcond.c -Wall

toc.mm: make-toc Toc/tocp Toc/book
	make-toc $@@ tocp book

tables.mm: make-table Toc/tocp Toc/book
	make-table $@@ tocp book

# These targets build the short version of the book

shortbook:	Chapter Toc stripcond Chapter/shortbook.ps shortxref shorttoc.mm shorttables.mm shortindex.mm
	make Chapter/shortbook.ps shortxref shorttoc.mm shorttables.mm shortindex.mm Chapter/shorttoc.ps

Chapter/shortbook.ps:   ${ALL-SHORTSOURCES} Chapter/shorttoc.ps stripcond
# First the contents and preface with roman page numbers
# Then the rest with "Arabic" page numbers
	(cat global.mm; for i in ${SHORTSOURCES}; do gsoelim $$i reset.mm; done; gsoelim shortindex.mm) | \
	  stripcond short | ${PIC} | ${TBL} | \
	  groff -rex=${EXAMPLE-SIZE} -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
	  >Chapter/shortbook.ps.tmp 2>Toc/shortbook
	mv Chapter/shortbook.ps.tmp Chapter/shortbook.ps
	egrep -v ^'File|><' Toc/shortbook

Chapter/shorttoc.ps shorttoc.ps: title.mm shorttoc.mm shorttables.mm preface.mm tmac.M ids.mm
	gsoelim title.mm reset.mm global.mm shorttoc.mm shorttables.mm reset.mm ${PREFACE} | \
	  stripcond short | ${PIC} | ${TBL} | \
d116 3
a118 3
	  > Chapter/shorttoc.ps.tmp 2>Toc/shorttoc
	mv Chapter/shorttoc.ps.tmp Chapter/shorttoc.ps
	egrep -v ^'File|><' Toc/shorttoc
d120 2
a121 2
shortxref:	make-xref Toc/shorttoc Toc/shortbook
	make-xref shorttoc shortbook
d123 2
a124 2
shortindex.mm:  make-index mkindex Toc/shorttoc Toc/shortbook
	make-index $@@ shorttoc shortbook
d126 2
a127 2
shorttoc.mm: make-toc Toc/shorttoc Toc/shortbook
	make-toc $@@ shorttoc shortbook
d129 2
a130 2
shorttables.mm: make-table Toc/shorttoc Toc/shortbook
	make-table $@@ shorttoc shortbook
d132 2
a133 4
shortbook.ascii:	Chapter Toc stripcond Chapter/shortbook.ascii shortxref \
			shorttoc.mm shorttables.mm shortindex.mm
	make Chapter/shortbook.ascii shortxref shorttoc.mm shorttables.mm shortindex.mm \
	   Chapter/shorttoc.ascii
d135 1
a135 1
Chapter/shortbook.ascii:   ${ALL-SHORTSOURCES} Chapter/shorttoc.ascii stripcond
d138 2
a139 2
	(cat global.mm; for i in ${SHORTSOURCES} shortindex.mm; do gsoelim $$i reset.mm; done; ) | \
	  stripcond short | ${PIC} | ${TBL} | \
d141 7
a147 7
	  >Chapter/shortbook.ascii.tmp 2>Toc/shortbook
	mv Chapter/shortbook.ascii.tmp Chapter/shortbook.ascii
	egrep -v ^'File|><' Toc/shortbook

Chapter/shorttoc.ascii shorttoc.ascii: title.mm shorttoc.mm shorttables.mm preface.mm tmac.M
	gsoelim title.mm reset.mm global.mm shorttoc.mm shorttables.mm reset.mm ${PREFACE} | \
	  stripcond short | ${PIC} | ${TBL} | \
d149 3
a151 3
	  > Chapter/shorttoc.ascii.tmp 2>Toc/shorttoc
	mv Chapter/shorttoc.ascii.tmp Chapter/shorttoc.ascii
	egrep -v ^'File|><' Toc/shorttoc
d155 2
a156 1
Toc/tocp Toc/book Toc/shorttoc Toc/shortbook:
d159 3
d163 1
a163 1
	rm -f *.toc *.ps *.ascii *~ core core.* *.even *.odd Contents Index Xref make.log *.PS 
d165 2
a166 4
	rm -f Xref* tmp* bookmakefile paths.make mkindex
	rm -f index.mm shortindex.mm toc.mm shorttoc.mm shorttables.mm ids.mm 
	rm -f make-index make-table make-toc make-xref
	rm -f ${RCS-FILES} totidy shortbook.tar.gz stripcond
a174 3
ci2:
	ci -d -k2.0  ${RCS-FILES} totidy

d180 1
a180 1
archive book.tar.gz:
d187 2
a188 2
shortbook.tar.gz: shortbook
	tar cvzf $@@ Chapter/shortbook.ps Chapter/shorttoc.ps ${MOST-SHORTSOURCES}	
d230 1
a230 1
	gsoelim $< | stripcond short | \
d234 1
a234 1
	egrep -v ^'File|><' Toc/$@@
d237 1
a237 1
	grep \$$\Id title.mm preface.mm ${SHORTSOURCES} tmac.M | sed 's:^.*\$$I:\$$I:' >ids.mm.new
@


1.20
log
@Checkpoint 6 January
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.19 1996/01/04 14:55:43 grog Exp grog $
d7 3
d39 1
a39 1
APPENDICES =  biblio.mm releasenotes.mm hardware.mm getting.mm packages.mm hwconfig.mm \
d51 1
a51 1
SAPPENDICES =  packages.mm biblio.mm getting.mm licenses.mm
@


1.19
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.18 1996/01/04 11:55:25 grog Exp grog $
d7 3
d314 5
a318 4
ids.mm:	title.mm preface.mm ${SHORTSOURCES} .FORCE
	grep \$$\Id title.mm preface.mm ${SHORTSOURCES} | sed 's:^.*\$$I:\$$I:' >ids.mm
	echo .ds os `uname -s` >>ids.mm
	echo .ds osver `uname -r` >>ids.mm
@


1.18
log
@Checkpoint 4 January 1996
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.17 1995/12/30 11:25:32 grog Exp grog $
d7 2
a8 2
# Revision 1.17  1995/12/30  11:25:32  grog
# Minor mods
a9 42
# Revision 1.16  1995/12/30  11:21:43  grog
# Fix make clean
#
# Revision 1.15  1995/12/30  10:57:10  grog
# Checkpoint 30 December
#
# Revision 1.14  1995/12/22  10:51:46  grog
# Third final draft
#
# Revision 1.13  1995/12/16  16:31:20  grog
# Checkpoint 16 December
#
# Revision 1.12  1995/12/15  06:51:19  grog
# Minor mods
#
# Revision 1.11  1995/12/13  10:58:48  grog
# Second final draft, 13 December
#
# Revision 1.10  1995/12/12  11:37:07  grog
# Checkpoint 12 December
#
# Revision 1.9  1995/12/05  18:09:19  grog
# First final draft
#
# Revision 1.8  1995/11/18  14:18:45  grog
# Minor mods
#
# Revision 1.7  1995/11/18  14:16:29  grog
# Minor mods
#
# Revision 1.4  1995/11/14  14:49:01  grog
# Minor mods
#
# Revision 1.3  1995/11/11  13:31:30  grog
# Minor corrections
#
# Revision 1.2  1995/11/11  13:20:37  grog
# Minor mods
#
# Revision 1.1  1995/11/11  13:15:34  grog
# Initial revision
#
d30 2
a31 2
CHAPTERS = introduction.mm prepare.mm install.mm unixref.mm config.mm network.mm \
	    xsetup.mm building.mm ports.mm upgrade.mm problems.mm debug.mm epilogue.mm
d43 1
a43 1
SCHAPTERS = introduction.mm prepare.mm install.mm problems.mm unixref.mm xsetup.mm building.mm
@


1.17
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.16 1995/12/30 11:21:43 grog Exp grog $
d7 3
d54 2
a55 1
HEIGHT = 8.5i
d57 1
a57 1
WIDTH  = 5.05i
d85 1
a85 1
SCHAPTERS = introduction.mm prepare.mm install.mm unixref.mm xsetup.mm building.mm
@


1.16
log
@Fix make clean
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.15 1995/12/30 10:57:10 grog Exp grog $
d7 3
d99 1
a99 1
	make-xref make-toc make-index mkindex.c mkindex.h paths.make tmac.M tidy.el \
@


1.15
log
@Checkpoint 30 December
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.14 1995/12/22 10:51:46 grog Exp grog $
d7 3
d272 2
@


1.14
log
@Third final draft
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.13 1995/12/16 16:31:20 grog Exp grog $
d7 3
d83 4
a86 2
ALL-SHORTSOURCES = ${PREFACE} ${SHORTSOURCES} global.mm shortindex.mm shorttoc.mm \
		shorttables.mm reset.mm tmac.M
d216 1
a216 1
Chapter/shorttoc.ps shorttoc.ps: title.mm shorttoc.mm shorttables.mm preface.mm tmac.M
d268 1
a268 1
	rm -f index.mm shortindex.mm toc.mm shorttoc.mm shorttables.mm 
d293 1
a293 1
	tar cvzf $@@ Chapter/shortbook.ps Chapter/shorttoc.ps ${ALL-SHORTSOURCES}	
d341 4
a344 2
ids.mm:	${SOURCES}
	grep \$$Id: Makefile,v 1.13 1995/12/16 16:31:20 grog Exp grog ${SOURCES} | sed 's:^.*\$$I:\$$I:' >ids.mm
@


1.13
log
@Checkpoint 16 December
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.12 1995/12/15 06:51:19 grog Exp grog $
d7 3
d46 1
a46 1
EXAMPLE-SIZE = 8
d59 1
a59 1
CHAPTERS = introduction.mm prepare.mm install.mm config.mm network.mm \
d62 1
a62 1
APPENDICES = quickref.mm biblio.mm releasenotes.mm getting.mm packages.mm hwconfig.mm \
d69 1
a69 1
ALL-SOURCES = ${PREFACE} ${CHAPTERS} ${APPENDICES} global.mm index.mm toc.mm reset.mm tmac.M
d72 1
a72 1
SCHAPTERS = introduction.mm prepare.mm install.mm xsetup.mm building.mm epilogue.mm
d74 1
a74 1
SAPPENDICES =  quickref.mm biblio.mm releasenotes.mm getting.mm packages.mm licenses.mm
d80 2
a81 1
ALL-SHORTSOURCES = ${PREFACE} ${SHORTSOURCES} global.mm shortindex.mm shorttoc.mm reset.mm tmac.M
d104 6
a109 5
default:	${SOURCES}  Chapter Toc
	make all
	make Xref.new
	make all
	make toc.ps index.ps
d159 2
a160 2
book:	Chapter Toc Chapter/book.ps xref toc.mm index.mm stripcond
	make xref toc.mm index.mm Chapter/book.ps
d171 2
a172 2
Chapter/tocp.ps toc: title.mm toc.mm preface.mm tmac.M
	gsoelim title.mm reset.mm global.mm toc.mm reset.mm ${PREFACE} | \
d193 3
d198 2
a199 2
shortbook:	Chapter Toc stripcond Chapter/shortbook.ps shortxref shorttoc.mm shortindex.mm
	make Chapter/shortbook.ps shortxref shorttoc.mm shortindex.mm Chapter/shorttoc.ps
d211 2
a212 2
Chapter/shorttoc.ps shorttoc.ps: title.mm shorttoc.mm preface.mm tmac.M
	gsoelim title.mm reset.mm global.mm shorttoc.mm reset.mm ${PREFACE} | \
d228 2
a229 2
shortbook.ascii:	Chapter Toc stripcond Chapter/shortbook.ascii shortxref shorttoc.mm shortindex.mm
	make Chapter/shortbook.ascii shortxref shorttoc.mm shortindex.mm Chapter/shorttoc.ascii
d231 5
d246 2
a247 2
Chapter/shorttoc.ascii shorttoc.ascii: title.mm shorttoc.mm preface.mm tmac.M
	gsoelim title.mm reset.mm global.mm shorttoc.mm reset.mm ${PREFACE} | \
d263 1
a263 1
	rm -f index.mm shortindex.mm toc.mm shorttoc.mm 
d287 3
d337 1
a337 1
	grep \$$Id: ${SOURCES} | sed 's:^.*\$$I:\$$I:' >ids.mm@


1.12
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.11 1995/12/13 10:58:48 grog Exp grog $
d7 3
d38 6
a43 2
HEIGHT = 9i
WIDTH  = 5.3i
d57 1
a57 1
	   building.mm ports.mm upgrade.mm problems.mm debug.mm epilogue.mm
d59 1
a59 1
APPENDICES = biblio.mm releasenotes.mm packages.mm getting.mm hwconfig.mm \
d69 1
a69 1
SCHAPTERS = introduction.mm prepare.mm install.mm epilogue.mm
d71 1
a71 1
SAPPENDICES =  biblio.mm releasenotes.mm packages.mm getting.mm licenses.mm
d83 1
a83 1
RCS-FILES = ${ALL-SOURCES} global.mm Makefile makebookmakefile \
d108 3
a110 2
book.make:  Makefile makebookmakefile
	./makebookmakefile ${POSTSCRIPT}
d112 3
d162 1
a162 1
	  groff -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
d169 1
a169 1
	  groff -r$$$$ -rL${HEIGHT} -rD1 -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
d198 1
a198 1
	  groff -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
d206 1
a206 1
	  groff -r$$$$ -rL${HEIGHT} -rD1 -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
d316 1
a316 1
	   groff -r$$$$ -rL${HEIGHT} -rW${WIDTH} -rN2 -mpic ${MACROFILE} - \
d318 4
a321 1
	egrep -v ^'File|><' Toc/$@@@


1.11
log
@Second final draft, 13 December
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.10 1995/12/12 11:37:07 grog Exp grog $
d7 3
d35 3
d52 2
a53 1
APPENDICES =  biblio.mm hwconfig.mm licenses.mm difference.mm releasenotes.mm getting.mm
d64 1
a64 1
SAPPENDICES =  biblio.mm releasenotes.mm licenses.mm getting.mm
d151 1
a151 1
	  groff -r$$$$ -rL8.5i -rW4.6i -rN2 -mpic ${MACROFILE} - \
d158 1
a158 1
	  groff -r$$$$ -rL8.5i -rD1 -rW4.6i -rN2 -mpic ${MACROFILE} - \
d187 1
a187 1
	  groff -r$$$$ -rL8.5i -rW4.6i -rN2 -mpic ${MACROFILE} - \
d195 1
a195 1
	  groff -r$$$$ -rL8.5i -rD1 -rW4.6i -rN2 -mpic ${MACROFILE} - \
d305 1
a305 1
	   groff -r$$$$ -rL8.5i -rW4.6i -rN2 -mpic ${MACROFILE} - \
@


1.10
log
@Checkpoint 12 December
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.9 1995/12/05 18:09:19 grog Exp grog $
d7 3
d172 1
a172 1
shortbook:	Chapter Toc Chapter/shortbook.ps shortxref shorttoc.mm shortindex.mm stripcond
d178 1
a178 1
	(cat global.mm; for i in ${SHORTSOURCES} shortindex.mm; do gsoelim $$i reset.mm; done; ) | \
d202 1
a202 1
shortbook:	Chapter Toc Chapter/shortbook.ascii shortxref shorttoc.mm shortindex.mm stripcond
d210 1
a210 1
	  nroff -r$$$$ -rL8.5i -rW4.6i -rN2 -mpic ${MACROFILE} - \
d218 1
a218 1
	  nroff -r$$$$ -rL8.5i -rD1 -rW4.6i -rN2 -mpic ${MACROFILE} - \
a221 9

shortxref:	make-xref Toc/shorttoc Toc/shortbook
	make-xref shorttoc shortbook

shortindex.mm:  make-index mkindex Toc/shorttoc Toc/shortbook
	make-index $@@ shorttoc shortbook

shorttoc.mm: make-toc Toc/shorttoc Toc/shortbook
	make-toc $@@ shorttoc shortbook
@


1.9
log
@First final draft
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.8 1995/11/18 14:18:45 grog Exp grog $
d7 3
d54 1
a54 1
SAPPENDICES =  biblio.mm releasenotes.mm licenses.mm
a130 4
turd:
	(gsoelim toc.mm; \
	 echo ".nr firstpage 1";  echo ".OP"; gsoelim ${PREFACE} ) >turd.mm

d133 1
a133 1
book:	Chapter Toc Chapter/book.ps xref toc.mm index.mm
d136 1
a136 1
Chapter/book.ps:   ${ALL-SOURCES} Chapter/tocp.ps
d139 2
a140 2
	(for i in ${SOURCES} index.mm; do gsoelim $$i reset.mm; done; ) | stripcond long |\
	    ${PIC} | ${TBL} | \
d146 2
a147 1
	gsoelim title.mm reset.mm toc.mm reset.mm ${PREFACE} | stripcond long | ${PIC} | ${TBL} | \
d169 1
a169 1
shortbook:	Chapter Toc Chapter/shortbook.ps shortxref shorttoc.mm shortindex.mm
d172 1
a172 1
Chapter/shortbook.ps:   ${ALL-SHORTSOURCES} Chapter/shorttoc.ps
d175 2
a176 2
	(for i in ${SHORTSOURCES} shortindex.mm; do gsoelim $$i reset.mm; done; ) | stripcond short | \
	    ${PIC} | ${TBL} | \
d183 2
a184 1
	gsoelim title.mm reset.mm shorttoc.mm reset.mm ${PREFACE} | stripcond short | ${PIC} | ${TBL} | \
d199 30
d235 1
a235 1
	rm -f *.toc *.ps *~ core core.* *.even *.odd Contents Index Xref make.log *.PS 
@


1.8
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.7 1995/11/18 14:16:29 grog Exp grog $
d7 3
d28 2
d36 3
a38 2
CHAPTERS = introduction.mm community.mm prepare.mm install.mm ports.mm config.mm \
	   building.mm upgrade.mm network.mm problems.mm debug.mm
d46 1
a46 1
ALL-SOURCES = ${PREFACE} ${CHAPTERS} ${APPENDICES} index.mm toc.mm reset.mm tmac.M
d49 1
a49 2
SCHAPTERS = introduction.mm community.mm prepare.mm install.mm config.mm \
	   building.mm network.mm problems.mm
d51 1
a51 1
SAPPENDICES =  biblio.mm hwconfig.mm licenses.mm releasenotes.mm getting.mm
d57 1
a57 1
ALL-SHORTSOURCES = ${PREFACE} ${SCHAPTERS} shortindex.mm shorttoc.mm reset.mm tmac.M
d65 1
a65 1
	roman.c stitle.mm title.mm printers.mm security.mm
d96 2
d140 1
a140 1
	(for i in ${SOURCES} index.mm; do gsoelim $$i reset.mm; done; ) | \
d144 1
a144 1
	 egrep -v ^'Chapter|File|><' Toc/book
d147 2
a148 2
	gsoelim title.mm reset.mm toc.mm reset.mm ${PREFACE} | ${PIC} | ${TBL} | \
	  groff -r$$$$ -rL8.5i -rD1 -rW4.6i -rN2 -rshort=0 -mpic ${MACROFILE} - \
d150 1
d152 1
a152 1
xref:	make-xref .FORCE
d155 1
a155 1
index.mm:  make-index mkindex .FORCE
d161 4
a164 1
toc.mm: make-toc .FORCE
d170 1
a170 1
	make Chapter/shortbook.ps shortxref shorttoc.mm shortindex.mm
d175 1
a175 1
	(for i in ${SHORTSOURCES} shortindex.mm; do gsoelim $$i reset.mm; done; ) | \
d178 10
a187 7
	  >Chapter/shortbook.ps 2>Toc/shortbook
	 egrep -v ^'Chapter|File|><' Toc/shortbook

Chapter/shorttoc.ps: stitle.mm shorttoc.mm preface.mm tmac.M
	gsoelim stitle.mm reset.mm shorttoc.mm reset.mm ${PREFACE} | ${PIC} | ${TBL} | \
	  groff -r$$$$ -rL8.5i -rD1 -rW4.6i -rN2 -rshort=1 -mpic ${MACROFILE} - \
	  > Chapter/shorttoc.ps 2>Toc/shorttoc
d189 1
a189 1
shortxref:	make-xref .FORCE
d192 1
a192 1
shortindex.mm:  make-index mkindex .FORCE
d195 1
a195 1
shorttoc.mm: make-toc .FORCE
d198 4
a201 1
.SUFFIXES: .mm .ps .psl .PS
d269 7
@


1.7
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.4 1995/11/14 14:49:01 grog Exp grog $
d7 3
d32 1
a32 2
	   building.mm upgrade.mm network.mm problems.mm debug.mm printers.mm \
	   ports.mm security.mm
d60 1
a60 1
	roman.c stitle.mm title.mm
@


1.6
log
@Minor mods
@
text
@d57 1
a57 1
	make-xref make-toc make-index mkindex.c paths.make tmac.M tidy.el \
d188 1
@


1.5
log
@Minor mods
@
text
@d29 2
a30 1
	   building.mm upgrade.mm network.mm problems.mm debug.mm
d57 2
a58 1
	make-xref make-toc make-index mkindex.c paths.make tmac.M tidy.el roman.c
@


1.4
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.3 1995/11/11 13:31:30 grog Exp grog $
d7 3
d29 1
a29 1
	   building.mm upgrade.mm network.mm problems.mm
d31 1
a31 1
APPENDICES =  bibliography.mm hwconfig.mm licenses.mm difference.mm releasenotes.mm 
d39 12
d53 1
a53 1
# RCS-SOURCES = ${SOURCES} global.mm totidy mkindex Makefile \
d55 2
a56 2
RCS-SOURCES = ${ALL-SOURCES} global.mm Makefile makebookmakefile \
	make-xref make-toc make-index mkindex.c paths.make tmac.M
d121 1
d126 1
a126 1
Chapter/book.ps:   ${ALL-SOURCES} Chapter/toc-and-preface.ps
d135 4
a138 4
Chapter/toc-and-preface.ps toc: toc.mm preface.mm
	gsoelim toc.mm reset.mm ${PREFACE} | ${PIC} | ${TBL} | \
	  groff -r$$$$ -rL8.5i -rD1 -rW4.6i -rN2 -mpic ${MACROFILE} - \
	  > Chapter/toc-and-preface.ps 2>Toc/toc-and-preface
d141 1
a141 1
	make-xref toc-and-preface book
d144 1
a144 1
	make-index toc-and-preface book
d146 2
a147 2
mkindex:	mkindex.c
	gcc -o mkindex -g mkindex.c -Wall
d150 29
a178 1
	make-toc toc-and-preface book
d188 1
a188 1
	rm -f ${RCS-SOURCES} makebookmakefile totidy
d192 1
a192 1
	ci -d  ${RCS-SOURCES} totidy
d195 1
a195 1
	ci -d -k2.0  ${RCS-SOURCES} totidy
d200 1
a200 1
	-co -l -M -q ${RCS-SOURCES} totidy
d203 1
a203 1
	tar cf - ${RCS-SOURCES} ${POSTSCRIPT} | gzip >book.tar.gz
d224 1
a224 1
# ${RCS-SOURCES}:
@


1.3
log
@Minor corrections
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.2 1995/11/11 13:20:37 grog Exp grog $
d7 3
d24 3
a26 3
CHAPTERS = introduction.mm prepare.mm install.mm sysadm.mm building.mm  \
		upgrade.mm network.mm problems.mm
APPENDICES = difference.mm
d28 1
d110 1
a110 1
Chapter/book.ps:   ${ALL-SOURCES}
a111 3
	gsoelim toc.mm reset.mm ${PREFACE} | ${PIC} | ${TBL} | \
	  groff -r$$$$ -rL8.5i -rW4.6i -rN2 -mpic ${MACROFILE} - \
	  >Chapter/toc-and-preface.ps 2>Toc/WholeBook
d119 5
d125 1
a125 1
	make-xref
d128 1
a128 1
	make-index book
d134 1
a134 1
	make-toc book
@


1.2
log
@Minor mods
@
text
@d4 1
a4 1
# $Id: Makefile,v 1.1 1995/11/11 13:15:34 grog Exp grog $
d7 3
d30 1
a30 1
ALL-SOURCES = ${PREFACE} ${CHAPTERS} ${APPENDICES} index.mm toc.mm
d37 1
a37 1
	make-xref make-toc make-index mkindex.c paths.make reset.mm tmac.M
d103 2
a104 2
book:	book-pass
	make toc.mm index.mm Xref.new book-pass
d106 1
a106 1
book-pass:	xref toc.mm index.mm
a116 21
	@@echo >Xref.new "\.\\\" Cross-references generated by $$0 `date`"
	@@cat Toc/book|sed 's/><PAGENO://; s/ *$$//'| sort -f +1 >>Xref.new
	@@cat Toc/book|sed 's/><PAGENO://; s/ *$$//'| awk '{print $$2}' | sort | uniq -d >/tmp/double-defines
	@@if [ -s /tmp/double-defines ]; then \
	  echo "*** Doubly defined references:"; \
	  ref=`xargs </tmp/double-defines`; \
	  for i in $$ref; do \
	    grep "ds $$i" Toc/book | sed 's*><PAGENO:.ds**'; \
	  done; \
	  exit 1; \
	fi
	@@tail +2 Xref.new >tmp-Xref.new
	@@tail +2 Xref >tmp-Xref.old
	@@cmp tmp-Xref.old tmp-Xref.new; \
	if [ $$? -ne 0 ]; then \
	  echo "++++ Xrefs have changed - need to repeat format"; \
	  mv Xref.new Xref; \
	else \
	  echo +++ Xref files unchanged; \
	fi
	rm tmp-Xref*
d118 1
a118 1
xref:	.FORCE
d121 1
a121 1
index.mm:  mkindex .FORCE
d127 1
a127 1
toc.mm: .FORCE
@


1.1
log
@Initial revision
@
text
@d4 1
a4 1
# $Id: Makefile,v 3.3 1995/06/27 11:15:56 grog Exp grog $
d7 3
d18 2
a19 1
CHAPTERS = introduction.mm prepare.mm install.mm sysadm.mm building.mm upgrade.mm network.mm
d153 1
a153 1
	rm -f Xref* tmp* bookmakefile paths.make 
@
