# This makefile simply creates the docs.
# No compilation of programs are necessary.
#

docs: doc/mrtg-mysql-load.1 doc/mrtg-mysql-load.html \
  doc/mrtg-mysql-load.txt \
  doc/INSTALL.html doc/INSTALL.txt

title = mrtg-mysql-load
pname = mrtg-mysql-load

doc/$(pname).1: $(pname)
	pod2man --center $(title) $(pname) > doc/$(pname).1

doc/$(pname).html: $(pname)
	pod2html --title $(title) $(pname) > doc/$(pname).html     

doc/$(pname).txt: $(pname)
	pod2text $(pname) > doc/$(pname).txt     

doc/INSTALL.html: INSTALL.pod
	pod2html --title INSTALL INSTALL.pod > doc/INSTALL.html
	
doc/INSTALL.txt: INSTALL.pod
	pod2text INSTALL.pod > doc/INSTALL.txt
	
	
clean:
	rm doc/*
