FILES=reports-api.sgml
PDF=$(patsubst %.sgml, %.pdf, $(FILES))
PS=$(patsubst %.sgml, %.ps, $(FILES))
HTML=$(patsubst %.sgml, %.html, $(FILES))

default: pdf

all: $(PDF) $(PS) $(HTML)

pdf: $(PDF)

ps: $(PS)

html: $(HTML)

%.pdf: %.sgml
	sgmltools --backend pdf $<

%.ps: %.sgml
	sgmltools --backend ps $<

%.html: %.sgml
	sgmltools --backend onehtml $<
	
clean:
	rm -f $(PDF) $(PS) $(HTML)
