HTMLROOT=..
.PHONY: all doc
all:
	echo "usage: invoque make doc to launch the pod2html conversion"

../www/zebot/DB/%.html:%.pm
	pod2html --htmlroot=${HTMLROOT} --infile=$< --outfile=../www/zebot/DB/$(patsubst %.pm,%,$<).html --title "pod documentation for $(patsubst %.pm,%,$<)" 
	../convertIndex.pl ../www/zebot/DB/$(patsubst %.pm,%,$<).html
	rm ../www/zebot/DB/*.bak

doc: $(patsubst %.pm,../www/zebot/DB/%.html,$(wildcard *.pm))
	#for i in *.pm; do pod2html --infile=$$i --outfile=www/zebot/$$i.html --title "pod documentation for `basename $$i .pm`"; done

