SRC=manual-hun

.PHONY: all html txt ps pdf
all:	html

html:	$(SRC).html

txt:	$(SRC).txt

ps:	$(SRC).ps

pdf:	$(SRC).pdf

%html:	%sgml
	-rm -rvf $(SRC)_html
	-mkdir -v $(SRC)_html
	docbook2html -u -o $(SRC)_html $(SRC).sgml

%txt:	%sgml
	docbook2txt $(SRC).sgml

%ps:	%sgml
	docbook2ps $(SRC).sgml

%pdf:	%sgml
	docbook2pdf $(SRC).sgml

.PHONY: clean
clean:
	@-rm -rvf $(SRC)_html $(SRC).txt $(SRC).ps $(SRC).pdf

