# $Header: Makefile,v 4.300 91/06/08 01:45:00 root Rel41 $ SONY;
#
# 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) 5/23/86
#
DOCS = p0 p1 p2 p3 p4 p5 p6 p7
#
#
# Change these to change the way the document is printed out
#
FMT = ditroff
PKG = -ms
PRINTER =
FMTOPTIONS =
TBL = tbl
FMTDST = ../learn.a

all: sources fmt

clean:
	-rm -f $(FMTDST) core Errs errs

srcs: sources
sources:  $(DOCS)
$(DOCS):
	sccs get $@

docs.raw: $(DOCS)

fmt: $(DOCS)
	refer -p Refs -e $(DOCS) | $(TBL) $(PRINTER) | $(FMT) $(FMTOPTIONS) $(PKG) $(PRINTER) | lpr -n

aps: $(DOCS)
	refer -p Refs -e $(DOCS) | $(TBL) $(PRINTER) | $(FMT) $(FMTOPTIONS) $(PKG) $(PRINTER) | $(LPR)

indexable: $(DOCS)
	refer -p Refs -e $(DOCS) | $(TBL) $(PRINTER) | sed -f ../pre.sed | $(FMT) $(FMTOPTIONS) $(PKG) $(PRINTER) | sed -f ../post.sed >../learn.a

