# Makefile for building cameleon manpages.
# GNU Copyright 2003-2006, by Sylvain Le Gall <gildor@debian.org>.

all:                       \
  mlgui.1                  \
  mlguistarter.1           \
  mlnet.1                  \
  mldonkey_options.1       \
  mldonkey_command.1       \
  mldonkey_submit.1        \
  mldonkey_files.1

clean:
	-$(RM) *.1 *.8

%.xml: %.tpl.xml %.help
	perl generate-man $(@:%.xml=%)

%.1: %.xml
# Verification
	-xmllint --nonet --noout --postvalid --xinclude $^
# Compilation
	xsltproc --nonet --xinclude \
	  /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
	  $^
