
Q=paging-example-os161-question
A=paging-example-os161-soln

COMBINED = $(Q).pdf  \
           paging-example-os161.pdf \
           $(A).pdf

# -b Header
# -f Font
# -G Gaudy
# -h suppress job header
all:
	enscript -b Paging-Example-Question -G -fCourier12 -o $(Q).ps $(Q).txt
	enscript -b Paging-Example-Solution -G -fCourier12 -o $(A).ps $(A).txt
	ps2pdf $(Q).ps
	ps2pdf $(A).ps
	gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=Paging-Example.pdf $(COMBINED)

paging-example-os161.pdf:
	fig2dev -L pdf paging-example-os161.fig paging-example-os161.pdf
