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

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

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

tags:
	ctags *.p* */*.pm */*/*.pm */*/*/*.pm */*/*/*/*.pm
