new doc makefiles
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 1 Jul 1990 06:04:16 +0000 (22:04 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 1 Jul 1990 06:04:16 +0000 (22:04 -0800)
SCCS-vsn: share/doc/Makefile 5.1
SCCS-vsn: share/doc/papers/beyond4.3/Makefile 5.1
SCCS-vsn: share/doc/papers/diskperf/Makefile 6.2
SCCS-vsn: share/doc/papers/fsinterface/Makefile 5.1
SCCS-vsn: share/doc/papers/future/Makefile 1.2
SCCS-vsn: usr.bin/gprof/PSD.doc/Makefile 5.3
SCCS-vsn: share/doc/papers/kernmalloc/Makefile 1.4
SCCS-vsn: share/doc/papers/kerntune/Makefile 1.3
SCCS-vsn: share/doc/papers/memfs/Makefile 1.5
SCCS-vsn: share/doc/papers/newvm/Makefile 1.3
SCCS-vsn: share/doc/papers/px/Makefile 5.2
SCCS-vsn: share/doc/papers/relengr/Makefile 1.5
SCCS-vsn: share/doc/papers/sysperf/Makefile 1.4
SCCS-vsn: share/doc/psd/06.Clang/Makefile 6.2
SCCS-vsn: usr.bin/f77/PSD.doc/f77/Makefile 5.2
SCCS-vsn: usr.bin/f77/PSD.doc/f77io/Makefile 5.2
SCCS-vsn: usr.bin/pascal/USD.doc/Makefile 6.2
SCCS-vsn: old/as.vax/PSD.doc/Makefile 1.3
SCCS-vsn: share/doc/psd/05.sysman/Makefile 6.2
SCCS-vsn: share/doc/psd/20.ipctut/Makefile 6.4
SCCS-vsn: share/doc/psd/21.ipc/Makefile 1.4
SCCS-vsn: old/pcc/lint/PSD.doc/Makefile 6.2
SCCS-vsn: old/adb/PSD.doc/Makefile 6.2
SCCS-vsn: old/dbx/PSD.doc/Makefile 6.2
SCCS-vsn: old/make/PSD.doc/Makefile 6.2
SCCS-vsn: usr.bin/sccs/PSD.doc/Makefile 6.2
SCCS-vsn: old/yacc/PSD.doc/Makefile 6.2
SCCS-vsn: old/lex/PSD.doc/Makefile 6.2
SCCS-vsn: usr.bin/m4/PSD.doc/Makefile 6.2
SCCS-vsn: lib/libcurses/PSD.doc/Makefile 6.4
SCCS-vsn: share/doc/psd/01.cacm/Makefile 6.3
SCCS-vsn: share/doc/psd/04.uprog/Makefile 6.3
SCCS-vsn: share/doc/psd/02.implement/Makefile 6.3
SCCS-vsn: share/doc/psd/03.iosys/Makefile 5.2
SCCS-vsn: old/lisp/fp/PSD.doc/Makefile 6.2

35 files changed:
usr/src/lib/libcurses/PSD.doc/Makefile
usr/src/old/adb/PSD.doc/Makefile
usr/src/old/as.vax/PSD.doc/Makefile
usr/src/old/dbx/PSD.doc/Makefile
usr/src/old/lex/PSD.doc/Makefile
usr/src/old/lisp/fp/PSD.doc/Makefile
usr/src/old/make/PSD.doc/Makefile
usr/src/old/pcc/lint/PSD.doc/Makefile
usr/src/old/yacc/PSD.doc/Makefile
usr/src/share/doc/Makefile [new file with mode: 0644]
usr/src/share/doc/papers/beyond4.3/Makefile [new file with mode: 0644]
usr/src/share/doc/papers/diskperf/Makefile
usr/src/share/doc/papers/fsinterface/Makefile [new file with mode: 0644]
usr/src/share/doc/papers/future/Makefile
usr/src/share/doc/papers/kernmalloc/Makefile
usr/src/share/doc/papers/kerntune/Makefile
usr/src/share/doc/papers/memfs/Makefile
usr/src/share/doc/papers/newvm/Makefile
usr/src/share/doc/papers/px/Makefile
usr/src/share/doc/papers/relengr/Makefile
usr/src/share/doc/papers/sysperf/Makefile
usr/src/share/doc/psd/01.cacm/Makefile
usr/src/share/doc/psd/02.implement/Makefile
usr/src/share/doc/psd/03.iosys/Makefile
usr/src/share/doc/psd/04.uprog/Makefile
usr/src/share/doc/psd/05.sysman/Makefile
usr/src/share/doc/psd/06.Clang/Makefile
usr/src/share/doc/psd/20.ipctut/Makefile
usr/src/share/doc/psd/21.ipc/Makefile
usr/src/usr.bin/f77/PSD.doc/f77/Makefile
usr/src/usr.bin/f77/PSD.doc/f77io/Makefile
usr/src/usr.bin/gprof/PSD.doc/Makefile
usr/src/usr.bin/m4/PSD.doc/Makefile
usr/src/usr.bin/pascal/USD.doc/Makefile
usr/src/usr.bin/sccs/PSD.doc/Makefile

index 8ea399a..895f986 100644 (file)
@@ -1,38 +1,14 @@
-#
-# Copyright (c) 1980 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    6.3 (Berkeley) %G%
-#
-NROFF= nroff
-TROFF= ditroff
-TBL=   dtbl -Pdp
-VFONT= /usr/lib/vfontedpr
-NFLAGS=        -Tcrt
-TFLAGS= -Pdp
-CFLAGS=        -O -n -s
-BINDIR=        /usr/doc/ps1/18.curses
+#      @(#)Makefile    6.4 (Berkeley) %G%
 
 
-DOCS=  doc.I doc.II doc.III doc.IV
-RAW=   macros c_macros appen.B appen.A appen.C intro.0 intro.1 \
-       intro.2 intro.3 intro.4 intro.5 ${DOCS} curses.3x
+DIR=   ps1/18.curses
+SRCS=  Master macros appen.A appen.B appen.C intro.0 intro.1 \
+       intro.2 intro.3 intro.4 intro.5
+MACROS=        -me
 
 
-CRAW=  win_st.c twinkle1.c twinkle2.c life.c
-CSOURCE=win_st.gr twinkle1.gr twinkle2.gr life.gr
-SOURCE=        macros appen.A.tbl appen.B appen.C intro.0 intro.1 \
-       intro.2.tbl intro.3 intro.4 intro.5
+CLEANFILES+=win_st.gr twinkle1.gr twinkle2.gr life.gr intro.2.tbl appen.A.tbl
+
+paper.${PRINTER}: ${SRCS}
+       ${ROFF} ${SRCS} > ${.TARGET}
 
 .SUFFIXES:
 .SUFFIXES: .c .gr
 
 .SUFFIXES:
 .SUFFIXES: .c .gr
@@ -44,18 +20,11 @@ SOURCE=     macros appen.A.tbl appen.B appen.C intro.0 intro.1 \
 #
 
 # Don't re-run vgrind unless you want to patch the output files.
 #
 
 # Don't re-run vgrind unless you want to patch the output files.
+VFONT= /usr/libexec/vfontedpr
 .c.gr:
        ${VFONT} $*.c | grep -v "^'wh" > $*.gr
 
 .c.gr:
        ${VFONT} $*.c | grep -v "^'wh" > $*.gr
 
-troff: Master macros ${SOURCE}
-       ${TROFF} -me ${TFLAGS} Master ;
-
-Curses.doc: ${VFONT} Master macros ${SOURCE}
-       ${NROFF} -me ${NFLAGS} Master > Curses.doc
-
-${CSOURCE}: ${VFONT}
-
-intro.5: ${DOCS}
+intro.5: doc.I doc.II doc.III doc.IV
 appen.B: win_st.gr
 appen.C: twinkle1.gr life.gr twinkle2.gr
 
 appen.B: win_st.gr
 appen.C: twinkle1.gr life.gr twinkle2.gr
 
@@ -65,22 +34,4 @@ intro.2.tbl: intro.2
 appen.A.tbl: appen.A
        ${TBL} appen.A > appen.A.tbl
 
 appen.A.tbl: appen.A
        ${TBL} appen.A > appen.A.tbl
 
-vfontedpr: vfontedpr.c
-       ${CC} ${CFLAGS} -o vfontedpr vfontedpr.c
-
-spell: ${SOURCE}
-       /bin/csh ./Spellit ${SOURCE} ${DOCS}
-
-install:
-       cp Makefile ${RAW} ${BINDIR}
-
-ar:
-       ar crv curdoc.ar Master ${RAW} ${CRAW} Makefile
-
-lpr: Curses
-       -lpr Curses ; lpq
-       -lpq
-
-clean:
-       rm -f ${CSOURCE} appen.A.tbl intro.2.tbl curses.tar vfontedpr \
-               Curses.doc errs Errs
+.include <bsd.doc.mk>
index 9d1b96f..5ba862c 100644 (file)
@@ -1,28 +1,10 @@
-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
-PRINTER=-Pdp
-TROFF= ditroff ${PRINTER}
-EQN=   deqn ${PRINTER}
-TBL=   dtbl ${PRINTER}
-LPR=   lpr -n ${PRINTER}
+#      @(#)Makefile    6.2 (Berkeley) %G%
 
 
+DIR=   ps1/10.adb
 SRCS=  adb.ms
 SRCS=  adb.ms
+MACROS=        -ms
 
 
-paper: adb.n
-       ${LPR} adb.n
+paper.${PRINTER}: ${SRCS}
+       ${EQN} ${SRCS} | ${TBL} | ${ROFF} > ${.TARGET}
 
 
-adb.n: ${SRCS}
-       ${EQN} ${SRCS} | ${TBL} | ${TROFF} -t -ms >adb.n
-
-clean:
-       rm -f adb.n
-
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 745beb2..1563768 100644 (file)
@@ -1,47 +1,12 @@
-#
-# Copyright (c) 1983 Regents of the University of California
-#
-#      @(#)Makefile    1.2     (Berkeley)      %G%
-#
-MAN = as.man.1
-DOC = asdocs0.me asdocs1.me asdocs2.me asdocs3.me asdocs4.me
-#
-# Change these to change the way the document is printed out;
-# the document is written using -me, which always must be present
-#
-FMT = ditroff
-PKG = -me
-PRINTER = -Pdp
-# FMTOPTIONS = -t
-FMTOPTIONS =
-FMTDST = docs.t.out
-EQN = deqn
-TBL = dtbl
-all: sources fmt
+#      @(#)Makefile    1.3     (Berkeley)      %G%
 
 
-clean:
-       -rm *.TME $(FMTDST)
+DIR=   ps1/05.as
+SRCS=  asdocs0.me asdocs1.me asdocs2.me asdocs3.me asdocs4.me
+EQNCH= /usr/share/misc/eqnchar
+MACROS=        -me
+EXTRA= as.man.1
 
 
-srcs: sources
-sources:  $(DOC) $(MAN)
-$(DOC) $(MAN):
-       sccs get $@
-#
-# Constructing the assembler documentation:
-#      assembler reference manual
-#      assembler manual page
-#
-.SUFFIXES: .me .TME .tbl
+paper.${PRINTER}: ${SRCS}
+       (cat ${EQNCH}; ${SOELIM} ${SRCS} | ${TBL}) | ${EQN} > ${.TARGET}
 
 
-DOCS = asdocs0.me asdocs1.TME asdocs2.TME asdocs3.TME asdocs4.TME
-
-docs.raw: $(DOCS)
-
-fmt: $(DOCS)
-       cat $(DOCS) | $(FMT) $(FMTOPTIONS) $(PKG) $(PRINTER)
-       -rm *.TME
-
-.me.TME:
-       soelim $*.me | $(TBL) $(PRINTER) > $*.tmp
-       $(EQN) $(PRINTER) /usr/pub/eqnchar $*.tmp > $*.TME
-       rm $*.tmp
+.include <bsd.doc.mk>
index 0f2bafb..754b7af 100644 (file)
@@ -1,27 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
-PRINTER=-Pdp
-TROFF= ditroff ${PRINTER}
-TBL=   dtbl ${PRINTER}
-LPR=   lpr -n ${PRINTER}
+#      @(#)Makefile    6.2 (Berkeley) %G%
 
 
+DIR=   ps1/11.dbx
 SRCS=  dbx.ms
 SRCS=  dbx.ms
+MACROS=        -ms
 
 
-paper: dbx.n
-       ${LPR} dbx.n
+paper.${PRINTER}: ${SRCS}
+       ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-dbx.n: ${SRCS}
-       ${TBL} ${SRCS} | ${TROFF} -t -msU >dbx.n
-
-clean:
-       rm -f dbx.n
-
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 37cf348..58a51b4 100644 (file)
@@ -1,26 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
+#      @(#)Makefile    6.2 (Berkeley) %G%
+
+DIR=   ps1/16.lex
 SRCS=  lex.ms
 MACROS=        -msU
 SRCS=  lex.ms
 MACROS=        -msU
-PRINTER=Pdp
-TBL=   dtbl -${PRINTER}
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index b8fe42c..ae10176 100644 (file)
@@ -1,29 +1,11 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
-SRCS =         manDefs.rno manCh0.rno manCh1.rno\
-       manCh2.rno manCh3.rno manCh4.rno manCh5.rno\
-       manCh6.rno manCh7.rno refs.rno manApp.rno
-PRINTER=Pdp
-TBL=dtbl -${PRINTER}
-EQN=deqn -${PRINTER}
-TROFF= ditroff -${PRINTER}
-MACROS= -me
+#      @(#)Makefile    6.2 (Berkeley) %G%
 
 
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
+DIR=   ps2/07.fp
+SRCS =         manDefs.rno manCh0.rno manCh1.rno manCh2.rno manCh3.rno manCh4.rno \
+       manCh5.rno manCh6.rno manCh7.rno refs.rno manApp.rno
+MACROS= -me
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TBL} ${SRCS} | ${EQN} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${TBL} ${SRCS} | ${EQN} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 75a0e49..5d3f2d2 100644 (file)
@@ -1,25 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
+#      @(#)Makefile    6.2 (Berkeley) %G%
+
+DIR=   ps1/12.make
 SRCS=  make.ms
 MACROS=        -msU
 SRCS=  make.ms
 MACROS=        -msU
-PRINTER=Pdp
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TROFF} ${MACROS} -t ${SRCS} > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${ROFF} ${SRCS} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 57946ee..4424b1a 100644 (file)
@@ -1,26 +1,11 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
+#      @(#)Makefile    6.2 (Berkeley) %G%
+
+DIR=   ps1/09.lint
 SRCS=  lint.ms
 MACROS=        -msU
 SRCS=  lint.ms
 MACROS=        -msU
-PRINTER=Pdp
 REFER= refer -e -p /usr/doc/run/Ind
 REFER= refer -e -p /usr/doc/run/Ind
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${REFER} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${REFER} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index d5ea2d3..cc1be75 100644 (file)
@@ -1,26 +1,11 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
+#      @(#)Makefile    6.2 (Berkeley) %G%
+
+DIR=   ps1/15.yacc
 SRCS=  ss.. ss0 ss1 ss2 ss3 ss4 ss5 ss6 ss7 ss8 ss9 ssA ssB ssa ssb ssc ssd
 MACROS=        -msU
 SRCS=  ss.. ss0 ss1 ss2 ss3 ss4 ss5 ss6 ss7 ss8 ss9 ssA ssB ssa ssb ssc ssd
 MACROS=        -msU
-PRINTER=Pdp
 REFER= refer -e -p /usr/doc/run/Ind
 REFER= refer -e -p /usr/doc/run/Ind
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${REFER} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${REFER} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
diff --git a/usr/src/share/doc/Makefile b/usr/src/share/doc/Makefile
new file mode 100644 (file)
index 0000000..fba5cac
--- /dev/null
@@ -0,0 +1,9 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+# papers doesn't get distributed
+# index, iso, and ucs aren't done yet
+SUBDIR=        ps1 ps2 smm usd
+
+all depend lint tags:
+
+.include <bsd.subdir.mk>
diff --git a/usr/src/share/doc/papers/beyond4.3/Makefile b/usr/src/share/doc/papers/beyond4.3/Makefile
new file mode 100644 (file)
index 0000000..7ff313b
--- /dev/null
@@ -0,0 +1,10 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+DIR=   papers/beyond43
+SRCS=  beyond43.ms
+MACROS=        -ms
+
+paper.${PRINTER}: ${SRCS}
+       ${ROFF} ${SRCS} > ${.TARGET}
+
+.include <bsd.doc.mk>
index f41e354..2e65f09 100644 (file)
@@ -1,18 +1,11 @@
-#
-# Copyright (c) 1983 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
-TROFF= ditroff -Pdp
-TBL=   dtbl -Pdp
+#      @(#)Makefile    6.2 (Berkeley) %G%
 
 
-FILES= abs.ms motivation.ms equip.ms methodology.ms tests.ms results.ms \
+DIR=   papers/diskperf
+SRCS=  abs.ms motivation.ms equip.ms methodology.ms tests.ms results.ms \
        conclusions.ms appendix.ms
        conclusions.ms appendix.ms
+MACROS=        -ms
 
 
-paper: ${FILES}
-       ${TBL} ${FILES} | ${TROFF} -ms
+paper.${PRINTER}: ${SRCS}
+       ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-preview:${FILES}
-       tbl ${FILES} | nroff -ms | colcrt
+.include <bsd.doc.mk>
diff --git a/usr/src/share/doc/papers/fsinterface/Makefile b/usr/src/share/doc/papers/fsinterface/Makefile
new file mode 100644 (file)
index 0000000..7311061
--- /dev/null
@@ -0,0 +1,10 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+DIR=   papers/fsinterface
+SRCS=  abstract.ms fsinterface.ms
+MACROS=        -ms
+
+paper.${PRINTER}: ${SRCS}
+       ${ROFF} ${SRCS} > ${.TARGET}
+
+.include <bsd.doc.mk>
index a766383..a692243 100644 (file)
@@ -1,22 +1,9 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    1.1 (Berkeley) %G%
-#
+#      @(#)Makefile    1.2 (Berkeley) %G%
+
+DIR=   papers/future
 SRCS=  0.t 1.t 2.t r.t
 MACROS=        -ms
 SRCS=  0.t 1.t 2.t r.t
 MACROS=        -ms
-PRINTER=Plz
-TROFF= ptroff -${PRINTER}
-
-paper: ${SRCS}
-       ${TROFF} ${MACROS} ${SRCS}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+paper.${PRINTER}: ${SRCS}
+       ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
+.include <bsd.doc.mk>
index 9e4bd3d..86e29af 100644 (file)
@@ -1,32 +1,10 @@
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    1.3 (Berkeley) %G%
-#
+#      @(#)Makefile    1.4 (Berkeley) %G%
+
+DIR=   papers/kernmalloc
 SRCS=  kernmalloc.t appendix.t
 SRCS=  kernmalloc.t appendix.t
-FIGS=  alloc.fig usage.tbl
 MACROS=        -ms
 MACROS=        -ms
-PRINTER=lz
-SOELIM=        soelim
-TBL=   dtbl -P${PRINTER}
-EQN=   deqn -P${PRINTER}
-PIC=   pic -P${PRINTER}
-GRIND= vgrind -f
-TROFF= ditroff -P${PRINTER} ${MACROS}
-
-print: paper.${PRINTER}
-       lpr -P${PRINTER} -n paper.${PRINTER}
-
-paper.${PRINTER}: ${SRCS} ${FIGS}
-       ${SOELIM} ${SRCS} | ${TBL} | ${PIC} | ${EQN} | ${GRIND} | \
-               ${TROFF} -t ${PAGES} - >paper.${PRINTER}
 
 
-clean:
-       rm -f paper.${PRINTER} paper.[PT]* *.spell errs Errs make.out
+paper.${PRINTER}: ${SRCS} alloc.fig usage.tbl
+       ${SOELIM} ${SRCS} | ${TBL} | ${PIC} | ${EQN} | ${GRIND} | ${ROFF}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index b7184f7..df74984 100644 (file)
@@ -1,20 +1,10 @@
-#
-# Copyright (c) 1984 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    1.2 (Berkeley) %G%
-#
+#      @(#)Makefile    1.3 (Berkeley) %G%
+
+DIR=   papers/kerntune
 SRCS=  0.t 1.t 2.t 3.t 4.t
 SRCS=  0.t 1.t 2.t 3.t 4.t
-PIC=   pic ${PRINTER}
-TBL=   dtbl ${PRINTER}
-EQN=   deqn ${PRINTER}
-TROFF= ditroff ${PRINTER}
-PRINTER=-Plz
-TYPE=  -n
+MACROS=        -ms
 
 
-paper: perf
-       lpr ${PRINTER} ${TYPE} perf
+paper.${PRINTER}: ${SRCS}
+       ${SOELIM} ${SRCS} | ${PIC} | ${TBL} | ${EQN} | ${ROFF} > ${.TARGET}
 
 
-perf:  ${SRCS} Makefile
-       soelim ${SRCS} | ${PIC} | ${TBL} | ${EQN} | ${TROFF} -ms -t > perf
+.include <bsd.doc.mk>
index 1d9a870..078c96d 100644 (file)
@@ -1,48 +1,22 @@
-#
-# Copyright (c) 1989 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    1.4 (Berkeley) %G%
-#
+#      @(#)Makefile    1.5 (Berkeley) %G%
 
 
+DIR=   papers/memfs
 SRCS=  0.t 1.t
 MACROS=        -ms
 SRCS=  0.t 1.t
 MACROS=        -ms
-PRINTER=Plz
-TROFF= ditroff -${PRINTER}
 REFER= /a/staff/mckusick/book/ref/refer -m -n -e -l -s -p ref.bib
 REFER= /a/staff/mckusick/book/ref/refer -m -n -e -l -s -p ref.bib
-GRIND= vgrind -f
+EXTRA= ref.bib A.t tmac.srefs
+CLEANFILES=ref.bib.i? A.gt paper.t
 
 paper.${PRINTER}: paper.t
 
 paper.${PRINTER}: paper.t
-       ${TROFF} ${MACROS} -t tmac.srefs paper.t | psdit >paper.${PRINTER}
+       ${ROFF} ${SRCS} tmac.srefs paper.t > ${.TARGET}
 
 paper.t: ${SRCS} ref.bib.ia A.gt
 
 paper.t: ${SRCS} ref.bib.ia A.gt
-       ${REFER} ${SRCS} A.gt > paper.t
+       ${REFER} ${SRCS} A.gt > ${.TARGET}
 
 ref.bib.ia: ref.bib
 
 ref.bib.ia: ref.bib
-       indxbib ref.bib
+       ${INDXBIB} ref.bib
 
 A.gt: A.t
 
 A.gt: A.t
-       ${GRIND} <A.t >A.gt
+       ${GRIND} < A.t > A.gt
 
 
-print: paper.${PRINTER}
-       lpr -${PRINTER} paper.${PRINTER}
-
-clean:
-       rm -f A.gt *.spell errs Errs make.out paper.${PRINTER} ref.bib.i?
-
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index e690610..b8356a9 100644 (file)
@@ -1,34 +1,12 @@
-#
-# Copyright (c) 1986 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    1.2 (Berkeley) %G%
-#
+#      @(#)Makefile    1.3 (Berkeley) %G%
+
+DIR=   papers/newvm
 SRCS=  0.t 1.t a.t
 MACROS=        -ms
 SRCS=  0.t 1.t a.t
 MACROS=        -ms
-PRINTER=Plz
 TBL=   dtbl -${PRINTER}
 TROFF= ptroff -${PRINTER}
 
 TBL=   dtbl -${PRINTER}
 TROFF= ptroff -${PRINTER}
 
-paper: ${SRCS}
-       ${TBL} ${SRCS} | ${TROFF} ${MACROS}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+paper.${PRINTER}: ${SRCS}
+       ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 22f6ab4..7af7fad 100644 (file)
@@ -1,13 +1,15 @@
-TROFF= vtroff -t
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-print: trofftxt
-       vpr -t trofftxt
+DIR=   papers/px
+SRCS=  pxin0.n pxin1.n pxin2.n pxin3.n pxin4.n
+EXTRA= fig1.1.n fig1.2.n fig1.3.n fig2.3.raw fig2.4.n fig3.2.n \
+       fig3.3.n table2.1.n table2.2.n table2.3.n table3.1.n tmac.p
+CLEANFILES+=fig2.3.n
 
 
-troff:
-       /usr/ucb/soelim pxin?.n | tbl | ${TROFF}
-
-trofftxt: fig2.3.n
-       /usr/ucb/soelim pxin?.n | tbl | /usr/ucb/vtroff -t >trofftxt
+paper.${PRINTER}: ${SRCS} fig2.3.n
+       ${SOELIM} ${SRCS} | ${TBL} | ${ROFF} > ${.TARGET}
 
 fig2.3.n: fig2.3.raw
        sort fig2.3.raw >fig2.3.n
 
 fig2.3.n: fig2.3.raw
        sort fig2.3.raw >fig2.3.n
+
+.include <bsd.doc.mk>
index 107d4f0..779ce95 100644 (file)
@@ -1,39 +1,12 @@
-#
-# Copyright (c) 1989 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    1.4 (Berkeley) %G%
-#
+#      @(#)Makefile    1.5 (Berkeley) %G%
 
 
+DIR=   papers/relengr
 SRCS=  0.t 1.t 2.t 3.t
 MACROS=        -ms
 SRCS=  0.t 1.t 2.t 3.t
 MACROS=        -ms
-PRINTER=Plz
-TROFF= ditroff -${PRINTER}
+EXTRA= ref.bib tmac.srefs
 REFER= /a/staff/mckusick/book/ref/refer -m -n -e -l -s -p ref.bib
 
 paper.${PRINTER}: ${SRCS}
 REFER= /a/staff/mckusick/book/ref/refer -m -n -e -l -s -p ref.bib
 
 paper.${PRINTER}: ${SRCS}
-       ${REFER} ${SRCS} | ${TROFF} ${MACROS} -t tmac.srefs - | \
-               psdit >paper.${PRINTER}
+       ${REFER} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-print: paper.${PRINTER}
-       lpr -${PRINTER} paper.${PRINTER}
-
-clean:
-       rm -f *.spell errs Errs make.out paper.${PRINTER}
-
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 227665d..5c26cc8 100644 (file)
@@ -1,33 +1,21 @@
-#
-# Copyright (c) 1985 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    1.3 (Berkeley) %G%
-#
-PRINTER=-Plz
-TYPE=  -n
-SRCS=  0.t 1.t 2.t 3.t 4.t 5.t 6.t 7.t
-OBJS=  perf.t appendix.t
-TBL=   dtbl
-EQN=   deqn
-TROFF= ditroff
-GRIND= vgrind
+#      @(#)Makefile    1.4 (Berkeley) %G%
 
 
-paper: perf
-       lpr ${PRINTER} ${TYPE} perf
+DIR=   papers/sysperf
+SRCS=  0.t 1.t 2.t 3.t 4.t 5.t 6.t 7.t
+EXTRA= a1.t a2.t
+OBJS=  paper.tmp appendix.tmp
+CLEANFILES+=${OBJS}
 
 
-perf:  ${OBJS}
-       ${TROFF} -ms -t ${PRINTER} ${OBJS} > perf
+paper.${PRINTER}: ${OBJS}
+       ${ROFF} ${OBJS} > ${.TARGET}
 
 
-perf.t:        ${SRCS}
-       ${TBL} ${PRINTER} ${SRCS} | ${EQN} ${PRINTER} > perf.t
+paper.tmp: ${SRCS}
+       ${TBL} ${SRCS} | ${EQN} > paper.tmp
 
 
-appendix.t: a1.t a2.t
+appendix.tmp: a1.t a2.t
        ${GRIND} -f a1.t |  awk '/\.\(\)/{ cnt = 2 } \
        ${GRIND} -f a1.t |  awk '/\.\(\)/{ cnt = 2 } \
-          { if (cnt) cnt -= 1; else print $$0; } ' > appendix.t
+          { if (cnt) cnt -= 1; else print $$0; } ' > appendix.tmp
        ${GRIND} -f -lcsh a2.t |  awk '/\.\(\)/{ cnt = 2 } \
        ${GRIND} -f -lcsh a2.t |  awk '/\.\(\)/{ cnt = 2 } \
-          { if (cnt) cnt -= 1; else print $$0; } ' >> appendix.t
+          { if (cnt) cnt -= 1; else print $$0; } ' >> appendix.tmp
 
 
-clean:
-       rm -f perf ${OBJS}
+.include <bsd.doc.mk>
index 24c3619..1bb8928 100644 (file)
@@ -1,27 +1,11 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.2 (Berkeley) %G%
-#
+#      @(#)Makefile    6.3 (Berkeley) %G%
+
+DIR=   ps2/01.cacm
 SRCS=  p.mac p1 p2 p3 p4 p5 p6
 MACROS=        -ms
 SRCS=  p.mac p1 p2 p3 p4 p5 p6
 MACROS=        -ms
-PRINTER=Pdp
-TBL=   dtbl -${PRINTER}
-TROFF= ditroff -${PRINTER}
 REFER= refer -p /usr/old/dict/papers/Ind -e
 
 REFER= refer -p /usr/old/dict/papers/Ind -e
 
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
-
 paper.${PRINTER}: ${SRCS}
 paper.${PRINTER}: ${SRCS}
-       ${REFER} ${SRCS} | ${TBL} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${REFER} ${SRCS} | ${TBL} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index f18bafb..6fd2ebd 100644 (file)
@@ -1,29 +1,11 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.2 (Berkeley) %G%
-#
+#      @(#)Makefile    6.3 (Berkeley) %G%
+
+DIR=   ps2/04.implement
 SRCS=  implement
 SRCS=  implement
-PICFILES= fig1.pic fig2.pic
 MACROS=        -ms
 MACROS=        -ms
-PRINTER=Pdp
-TROFF= ditroff -${PRINTER}
 REFER= refer -p /usr/old/dict/papers/Ind -e
 REFER= refer -p /usr/old/dict/papers/Ind -e
-PIC= pic -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
-
-paper.${PRINTER}: ${SRCS} ${PICFILES}
-       soelim   ${SRCS} > paper.pic
-       ${REFER} paper.pic | ${PIC} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
 
 
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+paper.${PRINTER}: ${SRCS} fig1.pic fig2.pic
+       ${SOELIM} ${SRCS} | ${REFER} | ${PIC} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index fcd9f13..ab480a5 100644 (file)
@@ -1,25 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.1 (Berkeley) %G%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
+
+DIR=   ps2/05.iosys
 SRCS=  iosys
 MACROS=        -ms
 SRCS=  iosys
 MACROS=        -ms
-PRINTER=Pdp
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TROFF} ${MACROS} -t ${SRCS} > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${ROFF} ${SRCS} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index c2a8359..b33dea4 100644 (file)
@@ -1,26 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.2 (Berkeley) %G%
-#
-SRCS=  p0 p1 p2 p3 p4 p5 p6 p8 p9
-MAC = p.mac
-MACROS=        -ms
-PRINTER=Pdp
-TROFF= ditroff -${PRINTER}
+#      @(#)Makefile    6.3 (Berkeley) %G%
 
 
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
+DIR=   ps2/03.uprog
+SRCS=  p.mac p0 p1 p2 p3 p4 p5 p6 p8 p9
+MACROS=        -ms
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TROFF} -t ${MACROS} ${MAC} ${SRCS} > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${ROFF} ${MAC} ${SRCS} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 953e219..f6ccbce 100644 (file)
@@ -1,27 +1,11 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
+#      @(#)Makefile    6.2 (Berkeley) %G%
+
+DIR=   ps1/06.sysman
 SRCS=  0.t 1.0.t 1.1.t 1.2.t 1.3.t 1.4.t 1.5.t 1.6.t 1.7.t \
        2.0.t 2.1.t 2.2.t 2.3.t 2.4.t 2.5.t a.t
 MACROS=        -ms
 SRCS=  0.t 1.0.t 1.1.t 1.2.t 1.3.t 1.4.t 1.5.t 1.6.t 1.7.t \
        2.0.t 2.1.t 2.2.t 2.3.t 2.4.t 2.5.t a.t
 MACROS=        -ms
-PRINTER=Pdp
-TBL=   dtbl -${PRINTER}
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 66715de..ceb6762 100644 (file)
@@ -1,27 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
+#      @(#)Makefile    6.2 (Berkeley) %G%
+
+DIR=   ps1/01.Clang
 SRCS=  Clang.ms
 MACROS=        -msU
 SRCS=  Clang.ms
 MACROS=        -msU
-PRINTER=Pdp
-EQN=   deqn -${PRINTER}
-TBL=   dtbl -${PRINTER}
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 5962f15..a34813f 100644 (file)
@@ -1,43 +1,21 @@
-#
-# Copyright (c) 1986 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    6.3 (Berkeley) %G%
-#
+#      @(#)Makefile    6.4 (Berkeley) %G%
+
+DIR=   ps1/07.ipctut
 SRCS=  tutor.me
 GSRCS= gremlins
 MACROS=        -me
 SRCS=  tutor.me
 GSRCS= gremlins
 MACROS=        -me
-PRINTER=Pdp
-SOELIM=        soelim
-TBL=   dtbl -${PRINTER}
-TROFF= ditroff -${PRINTER}
+EXTRA= accept.grn dgramread.c dgramsend.c gremlins pipe.c pipe.grn \
+       socketpair.c socketpair.grn strchkread.c streamread.c streamwrite.c \
+       udgramread.c udgramsend.c ustreamread.c ustreamwrite.c
 
 
-paper: paper.${PRINTER} pics.Pip
-       lpr -${PRINTER} -n paper.${PRINTER}
-       lpr -Pip -n pics.Pip
+print: paper.${PRINTER} pics.${PRINTER}
+       lpr -P${PRINTER} -n paper.${PRINTER}
+       lpr -P${PRINTER} -n pics.P${PRINTER
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
-
-pics.Pip: ${GSRCS}
-       grn -Pip ${GSRCS} | ditroff -Pip -t >pics.Pip
+       ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+pics.${PRINTER}: ${GSRCS}
+       ${GREMLIN} ${GSRCS} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 7b0ac27..03bb229 100644 (file)
@@ -1,38 +1,10 @@
-#
-# Copyright (c) 1986 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    1.3 (Berkeley) %G%
-#
+#      @(#)Makefile    1.4 (Berkeley) %G%
+
+DIR=   ps1/08.ipc
 SRCS=  0.t 1.t 2.t 3.t 4.t 5.t
 MACROS=        -ms
 SRCS=  0.t 1.t 2.t 3.t 4.t 5.t
 MACROS=        -ms
-PRINTER=-Pdp
-EQN=   deqn ${PRINTER}
-TBL=   dtbl ${PRINTER}
-TROFF= ditroff ${PRINTER}
-
-ipc:   ipc.${PRINTER}
-       lpr ${PRINTER} -n ipc.${PRINTER}
 
 ipc.${PRINTER}: ${SRCS}
 
 ipc.${PRINTER}: ${SRCS}
-       ${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > ipc.${PRINTER}
-
-clean:
-       rm -f ipc.-* *.spell errs Errs make.out
+       ${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 37f9c09..0ceae29 100644 (file)
@@ -1,27 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.1 (Berkeley) %G%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
+
+DIR=   ps1/02.f77
 SRCS=  f77.ms
 MACROS=        -msU
 SRCS=  f77.ms
 MACROS=        -msU
-PRINTER=Pdp
-EQN=   deqn -${PRINTER}
-TBL=   dtbl -${PRINTER}
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TBL} ${SRCS} | ${EQN} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${TBL} ${SRCS} | ${EQN} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 62c3f4d..2504780 100644 (file)
@@ -1,25 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.1 (Berkeley) %G%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
+
+DIR=   ps1/03.f77io
 SRCS=  f77IO.ms
 MACROS=        -msU
 SRCS=  f77IO.ms
 MACROS=        -msU
-PRINTER=Pdp
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TROFF} ${MACROS} -t ${SRCS} > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${ROFF} ${SRCS} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 7c7a403..360d53b 100644 (file)
@@ -1,32 +1,12 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.2 (Berkeley) %G%
-#
+#      @(#)Makefile    5.3 (Berkeley) %G%
+
+DIR=   papers/gprof
 SRCS=  header.me abstract.me intro.me profiling.me gathering.me \
        postp.me present.me refs.me
 SRCS=  header.me abstract.me intro.me profiling.me gathering.me \
        postp.me present.me refs.me
-PICSRC= postp1.pic postp2.pic postp3.pic pres1.pic pres2.pic
+DPADD= postp1.pic postp2.pic postp3.pic pres1.pic pres2.pic
 MACROS=        -me
 MACROS=        -me
-PRINTER=Pdp
-SOELIM=        soelim
-EQN=   deqn -${PRINTER}
-TBL=   dtbl -${PRINTER}
-PIC=   pic -${PRINTER}
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
-
-paper.${PRINTER}: ${SRCS} ${PICSRC}
-       ${SOELIM} ${SRCS} | ${PIC} | ${TBL} | ${EQN} | \
-       ${TROFF} ${MACROS} -t > paper.${PRINTER}
 
 
-clean:
-       rm -f paper.[PTp]* *.spell errs Errs make.out
+paper.${PRINTER}: ${SRCS} ${DPADD}
+       ${SOELIM} ${SRCS} | ${PIC} | ${TBL} | ${EQN} | ${ROFF} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index dee22c7..f3539af 100644 (file)
@@ -1,25 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
+#      @(#)Makefile    6.2 (Berkeley) %G%
+
+DIR=   ps1/17.m4
 SRCS=  m4.ms
 MACROS=        -msU
 SRCS=  m4.ms
 MACROS=        -msU
-PRINTER=Pdp
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TROFF} ${MACROS} -t ${SRCS} > paper.${PRINTER}
-
-clean:
-       rm -f paper.[PT]* *.spell errs Errs make.out
+       ${ROFF} ${SRCS} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>
index 73d4ecb..73b2974 100644 (file)
-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
-# This makefile assumes that csh is running the figures
-#
-PRINTER=Pdp
-TROFF= ditroff -${PRINTER}
-TBL=   dtbl -${PRINTER}
-LPR=   lpr -n -${PRINTER}
-SEC = ?
-FIGURES=\
-       firstout firstobjout firstobjout2\
-       bigger2.p bigger3.p bigout1 bigger6.p bigout2 bigout3 bigout4\
-       primeout1 primeout2\
-       digitsout synerrout synerr2out\
-       mismout clashout sinout1 sinout2\
-       exprout typequout primeout3\
-       katout copydataout kat2out katscript xxxxqqqout xxxxqqqout2\
-       primes primes-d\
-       comments1.p commentsout
-
-manual: lpr.${PRINTER}
-       ${LPR} lpr.${PRINTER}
-
-lpr.${PRINTER}: ${FIGURES}
-       soelim puman${SEC}.n | ${TBL} | csh -cf '${TROFF} -t >lpr.${PRINTER}'
-
-troff: ${FIGURES}
-       soelim puman${SEC}.n | ${TBL} | ${TROFF}
+#      @(#)Makefile    6.2 (Berkeley) %G%
+
+DIR=   ps1/04.pascal
+SRCS=  puman0.n puman1.n puman2.n puman3.n puman4.n puman5.n pumanA.n
+FIGURES=firstout firstobjout firstobjout2 bigger2.p bigger3.p bigout1 \
+       bigger6.p bigout2 bigout3 bigout4 primeout1 primeout2 digitsout \
+       synerrout synerr2out mismout clashout sinout1 sinout2 exprout \
+       typequout primeout3 katout copydataout kat2out katscript \
+       xxxxqqqout xxxxqqqout2 primes primes-d comments1.p commentsout
+CLEANFILES+=csfix ${FIGURES}
+
+paper.${PRINTER}: ${FIGURES}
+       ${SOELIM} ${SRCS} | ${TBL} | ${ROFF} > ${.TARGET}
+
+.include <bsd.doc.mk>
 
 csfix:
 
 csfix:
-       cc -O csfix.c -o csfix
+       ${CC} -O ${.CURDIR}/csfix.c -o ${.TARGET}
+
 firstout: first.p csfix
        -csh -cf 'pix -g first.p |& expand | csfix >firstout'
 firstout: first.p csfix
        -csh -cf 'pix -g first.p |& expand | csfix >firstout'
+
 firstobjout: first.p
        -csh -cf 'pi -g first.p >& firstobjout ; px >& firstobjout'
 firstobjout: first.p
        -csh -cf 'pi -g first.p >& firstobjout ; px >& firstobjout'
+
 firstobjout2: first.p
        -csh -cf 'pi -g -p first.p >& firstobjout2 ; px >& firstobjout2'
 firstobjout2: first.p
        -csh -cf 'pi -g -p first.p >& firstobjout2 ; px >& firstobjout2'
+
 bigger2.p: bigger.p
 bigger2.p: bigger.p
-       -expand bigger.p >bigger2.p
+       -expand bigger.p > bigger2.p
+
 bigger3.p: bigger2.p csfix
 bigger3.p: bigger2.p csfix
-       cat -n bigger2.p | expand | csfix -d >bigger3.p
+       cat -n bigger2.p | expand | csfix -d > bigger3.p
+
 bigout1: bigger.p csfix
        -csh -cf 'pix -g bigger.p |& expand | csfix  >bigout1'
 bigout1: bigger.p csfix
        -csh -cf 'pix -g bigger.p |& expand | csfix  >bigout1'
+
 bigger6.p: bigger5.p csfix
        cat -n bigger5.p | expand | csfix -d >bigger6.p
 bigger6.p: bigger5.p csfix
        cat -n bigger5.p | expand | csfix -d >bigger6.p
+
 bigout2: bigger4.p
        -csh -cf 'pix -g bigger4.p |& expand >bigout2'
 bigout2: bigger4.p
        -csh -cf 'pix -g bigger4.p |& expand >bigout2'
+
 bigout3: bigger7.p
        -csh -cf 'pix -g bigger7.p |& expand >bigout3'
 bigout3: bigger7.p
        -csh -cf 'pix -g bigger7.p |& expand >bigout3'
+
 bigout4: bigger7.p
        -csh -cf '(pix -g bigger7.p >/dev/null) |& expand > bigout4'
 bigout4: bigger7.p
        -csh -cf '(pix -g bigger7.p >/dev/null) |& expand > bigout4'
+
 primeout1: primes.p csfix
        -csh -cf 'pix -g -l -z primes.p |& expand | csfix - >primeout1'
 primeout1: primes.p csfix
        -csh -cf 'pix -g -l -z primes.p |& expand | csfix - >primeout1'
+
 primeout2: primes.p csfix
        -csh -cf 'pxp -z primes.p |& expand | csfix - >primeout2'
 primeout2: primes.p csfix
        -csh -cf 'pxp -z primes.p |& expand | csfix - >primeout2'
+
 digitsout: digits.p csfix
        -csh -cf 'pi -g digits.p |& expand | csfix >digitsout'
 digitsout: digits.p csfix
        -csh -cf 'pi -g digits.p |& expand | csfix >digitsout'
+
 synerrout: synerr.p csfix
        -csh -cf 'pi -g -l synerr.p |& expand | csfix >synerrout'
 synerrout: synerr.p csfix
        -csh -cf 'pi -g -l synerr.p |& expand | csfix >synerrout'
+
 synerr2out: synerr2.p csfix
        -csh -cf 'pix -g -l synerr2.p |& expand | csfix >synerr2out'
 synerr2out: synerr2.p csfix
        -csh -cf 'pix -g -l synerr2.p |& expand | csfix >synerr2out'
+
 mismout: mism.p csfix
        -csh -cf 'pi -g -l mism.p |& expand | csfix >mismout'
 mismout: mism.p csfix
        -csh -cf 'pi -g -l mism.p |& expand | csfix >mismout'
+
 clashout: clash.p
        -csh -cf 'pi -g clash.p |& expand >clashout'
 clashout: clash.p
        -csh -cf 'pi -g clash.p |& expand >clashout'
+
 sinout1: sin1.p
        -csh -cf 'pi -g sin1.p |& expand >sinout1'
 sinout1: sin1.p
        -csh -cf 'pi -g sin1.p |& expand >sinout1'
+
 sinout2: sin2.p
        -csh -cf 'pi -g sin2.p |& expand >sinout2'
 sinout2: sin2.p
        -csh -cf 'pi -g sin2.p |& expand >sinout2'
+
 exprout: expr.p
        -pi -g -l expr.p | expand >exprout
 exprout: expr.p
        -pi -g -l expr.p | expand >exprout
+
 typequout: typequ.p
        -pi -g typequ.p >typequout
 typequout: typequ.p
        -pi -g typequ.p >typequout
+
 primeout3: primes2.p csfix
        -csh -cf 'pix -g primes2.p |& expand | csfix -d >primeout3'
 primeout3: primes2.p csfix
        -csh -cf 'pix -g primes2.p |& expand | csfix -d >primeout3'
+
 katout: kat.p csfix primes
        -csh -cf 'pix -g -l kat.p <primes |& expand | csfix -d >katout'
 katout: kat.p csfix primes
        -csh -cf 'pix -g -l kat.p <primes |& expand | csfix -d >katout'
+
 copydataout: copydata.p csfix
        -csh -cf 'pix -g -l copydata.p |& expand | csfix -d >copydataout'
 copydataout: copydata.p csfix
        -csh -cf 'pix -g -l copydata.p |& expand | csfix -d >copydataout'
-kat2out: kat2.p
+
+kat2out: kat2.p csfix
        -csh -cf 'pi -g kat2.p ; obj primes |& csfix -d >kat2out'
        -csh -cf 'pi -g kat2.p ; obj primes |& csfix -d >kat2out'
+
 xxxxqqqout: kat2.p
        -pi -g kat2.p
        -csh -cf 'obj xxxxqqq >& xxxxqqqout'
 xxxxqqqout: kat2.p
        -pi -g kat2.p
        -csh -cf 'obj xxxxqqq >& xxxxqqqout'
+
 xxxxqqqout2: kat2.p
        -pi -g -p kat2.p
        -csh -cf 'obj xxxxqqq >& xxxxqqqout2'
 xxxxqqqout2: kat2.p
        -pi -g -p kat2.p
        -csh -cf 'obj xxxxqqq >& xxxxqqqout2'
+
 primes: primes.p
        -pix -g -p primes.p > primes
 primes: primes.p
        -pix -g -p primes.p > primes
-primes-d: primes
+
+primes-d: primes csfix
        csfix -d <primes >primes-d
        csfix -d <primes >primes-d
+
 katscript: katin
        -csh -cf 'pi -g kat2.p ; obj katin >& katscript'
        -ed - katscript < fixkatscript
 katscript: katin
        -csh -cf 'pi -g kat2.p ; obj katin >& katscript'
        -ed - katscript < fixkatscript
+
 comments1.p: comments.p
        -expand comments.p >comments1.p
 comments1.p: comments.p
        -expand comments.p >comments1.p
+
 commentsout: comments.p
        -csh -cf 'pxp comments.p |& expand >commentsout'
        -ed - commentsout < fixcomments
 commentsout: comments.p
        -csh -cf 'pxp comments.p |& expand >commentsout'
        -ed - commentsout < fixcomments
-clean:
-       -rm csfix pmon.out obj lpr.${PRINTER} ${FIGURES} errs Errs
index 685fa5a..6aa83c1 100644 (file)
@@ -1,25 +1,10 @@
-#
-# Copyright (c) 1986 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    6.1 (Berkeley) %G%
-#
+#      @(#)Makefile    6.2 (Berkeley) %G%
+
+DIR=   ps1/14.sccs
 SRCS=  sccs.me
 MACROS=        -me
 SRCS=  sccs.me
 MACROS=        -me
-PRINTER=Pdp
-TROFF= ditroff -${PRINTER}
-
-paper: paper.${PRINTER}
-       lpr -${PRINTER} -n paper.${PRINTER}
 
 paper.${PRINTER}: ${SRCS}
 
 paper.${PRINTER}: ${SRCS}
-       ${TROFF} ${MACROS} -t ${SRCS} > paper.${PRINTER}
-
-clean:
-       rm -f paper.${PRINTER} *.spell errs Errs make.out
+       ${ROFF} ${SRCS} > ${.TARGET}
 
 
-spell: ${SRCS}
-       @for i in ${SRCS}; do \
-               echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
-       done
+.include <bsd.doc.mk>