
# This makefile is mainly for building the PDF version of the
#  paper

main:
	mzc scribble.scrbl
	mzscheme get-info.ss
	make scribble.pdf

html:
	make main
	make scribble.html

planet:
	rm -rf /tmp/scribble-paper
	mkdir /tmp/scribble-paper
	cp *.scrbl *.ss *png /tmp/scribble-paper
	cp prefix.tex Makefile sigplanconf.cls scribble.bib /tmp/scribble-paper
	planet -c /tmp/scribble-paper

INFOS = ++info-in scribble.info ++info-in reference.info ++info-in htdp-langs.info

scribble.tex: compiled/scribble_scrbl.zo prefix.tex \
              scribble.info reference.info
	scribble --latex --style prefix.tex $(INFOS) scribble.scrbl

scribble.html: scribble.tex
	scribble --html $(INFOS) scribble.scrbl

scribble.pdf: scribble.tex scribble.bib
	pdflatex scribble
	bibtex scribble
	pdflatex scribble
	pdflatex scribble
