include ../Makefile.cosm

PAGES = buffer.html config.html cosmfile.html cosmio.html cosmmath.html \
  cosmmem.html cosmnet.html cosmtask.html cosm.html cosmtime.html \
  email.html log.html security.html speed.html compress.html

manpages: $(PAGES) html2man.pl
	mkdir -p man7
	cd man7; \
	for i in $(PAGES); do \
		echo Building manpages from $$i:; \
		../html2man.pl ../$$i; \
	done

install:
	mkdir -p /usr/local/man/man7
	cd man7; cp *.7 /usr/local/man/man7

clean:
	$(RM) -r man7

mrclean:
	$(RM) -r man7
