MANS  = vzpkgcache.8 vzyum.8
HTMLS = $(MANS:%=%.html)

MAN2HTML=man2html -p -r

all: $(HTMLS)

%.html: %
	$(MAN2HTML) $< > $@
	sed -i \
	  -e '1,5d' \
	  -e '7d' \
	  -e 's/Section: [^<]*<BR>//' \
	  -e '/This document was created by/,$$d' \
	  -e 's@\(A HREF="\)../man[0-9]/\(.*\).html"@\1\2"@g' \
	  $@
clean:
	rm -f $(HTMLS)

.PHONY: all clean
