TEXI :=		ulisp.texi
OUTPUTS :=	ulisp.pdf ulisp.info ulisp.html

.PHONY: all
all: $(OUTPUTS)

.PHONY: pdf
pdf: ulisp.pdf

ulisp.pdf: ulisp.texi
	texi2pdf ulisp.texi

.PHONY: info
info: ulisp.info

ulisp.info: ulisp.texi
	makeinfo ulisp.texi

.PHONY: html
html: ulisp.html

ulisp.html: ulisp.texi
	texi2any --html --no-split ulisp.texi

ulisp_html: ulisp.texi
	texi2any --html ulisp.texi

.PHONY: clean
clean:
	rm -f *.aux *.cp* *.log *.toc $(OUTPUTS)
	rm -fr ulisp_html
