# This makefile will print a hardcopy of the Csound Reference Manual.
# Type 'make all' to print the whole manual, 'make one' for chapter one, etc.
# Includes an index and quickref section.  These reference page numbers
# consistent with our ditroff laser printer pagination;  if you don't have
# a laser printer, or the printout is otherwise problematic, you might get
# a hardcopy from MIT or elsewhere.

D = nroff -ms

M = macros

ORCH = syntax constants value pitch arith express \
assign orchead instr goto reinit ihold \
g1.line g2.phasor g3.table g4.oscil g5.buzz g6.adsyn g7.fof g8.pluck g9.rand \
m1.linen m1.linex m2.port m3.lpread m4.rms m5.downsamp m6.delayr m7.deltap m8.comb \
display pan soundin

NSCORE = nscore.1 nscore.2

SCOT = scot.1 scot.2 scot.3 scot.4 scot.5

ALL1 = titlepage Copyright contents preface

ALL2 = $M tutorial $(ORCH) $(NSCORE) genroutines cscore $(SCOT) perfcom quickref

all:	$(ALL1) $(ALL2)
	cat $(ALL1) | tbl | $D
	$D $M $(ALL2)

all1:	$(ALL1)
	cat $(ALL1) | tbl | $D

all2:	$(ALL2)
	cat $(ALL2) | eqn | $D

title:	titlepage
	$D $M titlepage

cont:	contents
	tbl $M contents | $D

pref:	preface
	$D $M preface

one:	tutorial
	$D $M tutorial

two:	$(ORCH)
	$D -n6 $M $(ORCH)

three:	$(NSCORE)
	$D -n39 $M $(NSCORE)

four:	genroutines
	eqn $M genroutines | $D -n48

five:	cscore
	$D -n58 $M cscore

six:	$(SCOT)
	$D -n65 $M $(SCOT)

seven:	perfcom
	$D -n76 $M perfcom

app:	quickref
	$D -n80 quickref
