# $Id: Makefile 190 2003-09-21 16:06:45Z ahu $ 

all: pdns.txt pdns.pdf html/index.html html.tar.gz


clean:
	rm -rf *.dvi *.pdf *.tex *.toc *.aux *.txt *.ps *.bak *.tmp *~ *.log html.tar.gz html pdns

html/index.html: pdns.sgml
	db2html -V %use-id-as-filename% -o html $<

html.tar.gz: html/index.html
	tar czf html.tar.gz html/

%.txt: %.sgml
	docbook2txt $<

%.pdf: %.sgml
	docbook2pdf $<

publish:
	rsync --copy-links --delete -avrze ssh ./html pdns.txt pdns.pdf \
	exit.powerdns.com:/opt/websites/downloads.powerdns.com/www/documentation/