POD2MAN=pod2man --release='hidentd ${VERSION}' --section=8 -c"hidentd manual page"
POD2HTML=pod2html
man_MANS = hidentd.8
hidentd.8: hidentd.pod
	$(POD2MAN) hidentd.pod > hidentd.8

hidentd.html: hidentd.pod
	$(POD2HTML) hidentd.pod > hidentd.html

README.inetd: ../stamp-h
	wget http://core.segfault.pl/~hobbit/hidentd/doc/inetd.html
	./mkdoc.pl < inetd.html > tmp.html
	links -dump tmp.html > README.inetd
	rm inetd.html tmp.html

README.xinetd: ../stamp-h
	wget http://core.segfault.pl/~hobbit/hidentd/doc/xinetd.html
	./mkdoc.pl < xinetd.html > tmp.html
	links -dump tmp.html > README.xinetd
	rm xinetd.html tmp.html

README.ucspi-tcp: ../stamp-h
	wget http://core.segfault.pl/~hobbit/hidentd/doc/ucspi-tcp.html
	./mkdoc.pl < ucspi-tcp.html > tmp.html
	links -dump tmp.html > README.ucspi-tcp
	rm ucspi-tcp.html tmp.html


EXTRA_DIST = hidentd.8 hidentd.pod hidentd.html README.ucspi-tcp README.inetd README.xinetd


syntax highlighted by Code2HTML, v. 0.9.1