.PHONY: clean

all: smartsession.howto.ps smartsession.howto.txt smartsession.howto.html

install: all
	install --mode 644 smartsession.howto.sgml $(DESTDIR)/usr/share/doc/smartsession/
	install --mode 644 smartsession.howto.ps $(DESTDIR)/usr/share/doc/smartsession/
	install --mode 644 smartsession.howto.txt $(DESTDIR)/usr/share/doc/smartsession/
	cp -r smartsession.howto.html $(DESTDIR)/usr/share/doc/smartsession/

clean:
	rm -f smartsession.howto.ps smartsession.howto.txt
	rm -rf smartsession.howto.html

%.txt: %.sgml
	debiandoc2text $<

%.ps: %.sgml
	debiandoc2latexps $<

%.html: %.sgml
	debiandoc2html $<

