HTMLROOT=..
.PHONY: all doc tags

all: tags
	@for i in  *.pl *.pm;do  perl -c $$i; done

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 -R .
