all: sgml-lecture.out

release:  slides-release.tar.gz

RELEASE=slides.README slides.dtd slides.dsl slides.pl \
	slides-doc.sgml

slides-release.tar.gz: $(RELEASE)
	tar -czvf $@ $^

slides-doc.html: slides-doc.sgml
	runjade slides-doc

pilot-lecture.html: pilot-lecture.sgml slides.dtd slides.dsl
	jade -d slides.dsl -t sgml < pilot-lecture.sgml > pilot-lecture.html

pilot-lecture.nsgmls: pilot-lecture.sgml slides.dtd
	nsgmls -l pilot-lecture.sgml > pilot-lecture.nsgmls

pilot-lecture.ps: pilot-lecture.nsgmls slides.pl
	sgmlspl slides.pl < pilot-lecture.nsgmls > pilot-lecture.ps

sgml-handout.html: sgml-handout.sgml
	runjade sgml-handout

sgml-lecture.html: sgml-lecture.sgml slides.dtd slides.dsl
	jade -d slides.dsl -t sgml < sgml-lecture.sgml > sgml-lecture.html

sgml-lecture.nsgmls: sgml-lecture.sgml slides.dtd
	nsgmls -l sgml-lecture.sgml > sgml-lecture.nsgmls

sgml-lecture.ps: sgml-lecture.nsgmls slides.pl
	sgmlspl slides.pl < sgml-lecture.nsgmls > sgml-lecture.ps

sgml-lecture.out: sgml-lecture.nsgmls slides.pl
	sgmlspl slides.pl < sgml-lecture.nsgmls

sample.nsgmls: sample.sgml slideshow.dtd
	nsgmls -l sample.sgml > sample.nsgmls

sample.ps: sample.nsgmls slideshow.pl
	sgmlspl slideshow.pl > sample.ps < sample.nsgmls

sample.out: sample.nsgmls slideshow.pl
	sgmlspl slideshow.pl < sample.nsgmls

sample.html:	sample.sgml slideshow.dsl slideshow.dtd
	jade -d slideshow.dsl -t sgml sample.sgml > sample.html

# x1.dsl is an entity-reference wrapper for xslides.dsl
# xml.dcl is from pubtext/xml.dcl in the sp release
# > instead of -o because the style sheet is "lazy" and just unwraps the
# tree instead of doing more specific output of the nodes.
xml-lecture.html: xml-lecture.sgml xslides.dtd slides.dsl
	jade -d x1.dsl -t sgml xml.dcl xml-lecture.sgml  > xml-lecture.html

xml-lecture.ps: xml-lecture.sgml xslideshow.pl
	perl xslideshow.pl xml-lecture.sgml > xml-lecture.ps
