DOCNAME=LaTeX_per_esempi

all: pdf

pdf:
	make -C esempi pdf
	pdflatex ${DOCNAME}.tex
	pdflatex ${DOCNAME}.tex
	pdflatex ${DOCNAME}.tex

clean:
	rm ${DOCNAME}.aux ${DOCNAME}.log ${DOCNAME}.toc ${DOCNAME}.out
	make -C esempi clean

cleanall: clean
	rm ${DOCNAME}.pdf
	make -C esempi cleanall