# input/bugs/Makefile

depth = ../..

STEPMAKE_TEMPLATES=documentation
include $(depth)/make/stepmake.make 

default: do-doc

local-WWW:
	$(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'Yodl bugs' $(YO_FILES) \
	  | sed "s!$(outdir)/!!g" > $(outdir)/index.html
	$(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html

$(outdir)/%.html: %.yo
	$(YODL2HTML) -doutdir=$(outdir) --live-data=3 -o $@.in $<
	rm -f $@
	echo "The input:" > $@
	echo "<hr>" >> $@
	echo "<xmp>" >> $@
	cat $< >> $@
	echo "</xmp>" >> $@
	echo "<hr>" >> $@
	echo "The output:" >> $@
	echo "<hr>" >> $@
	cat $@.in >> $@
	rm -f $@.in
	$(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=index.html --news=$(depth)/NEWS $@ 

