# 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.

M = macros

ORCH = syntax constants value pitch arith express \
assign orchead instr goto reinit ihold \
g1.line g2.phasor g3.table g4.oscil g5.adsyn g6.buzz g7.pluck g8.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 = tutorial $(ORCH) $(NSCORE) genroutines cscore $(SCOT) perfcom quickref

all:	$(ALL1) $(ALL2)
	cat $(ALL1) | tbl | ditroff -ms &
	ditroff -ms $M $(ALL2) &

all1:	$(ALL1)
	cat $(ALL1) | tbl | ditroff -ms &

all2:	$(ALL2)
	ditroff -ms $M $(ALL2) &

title:	titlepage
	ditroff -ms macros titlepage &

cont:	contents
	tbl $M contents | ditroff -ms &

pref:	preface
	ditroff -ms $M preface &

one:	tutorial
	ditroff -ms $M tutorial &

two:	$(ORCH)
	ditroff -ms -n6 $M $(ORCH) &

three:	$(NSCORE)
	ditroff -ms -n38 $M $(NSCORE) &

four:	genroutines
	ditroff -ms -n47 $M genroutines &

five:	cscore
	ditroff -ms -n56 $M cscore &

six:	$(SCOT)
	ditroff -ms -n63 $M $(SCOT) &

seven:	perfcom
	ditroff -ms -n74 $M perfcom &

app:	quickref
	ditroff -ms -n77 quickref &
