# Makefile for LyX docs

# 'make' will automatically run make depend, which creates Makefile.depend
# and then use that Makefile.depend to make TOCs, which creates *TOC.lyx


DEPENDFILE = Makefile.depend

# TODO can we instead just #include the DEPENDFILE in this Makefile? 
# problem with this is that the DEPENDFILE that's included won't be the updated
# one. JMarc should know how to handle this.

TOCs: depend
	make -f $(DEPENDFILE) TOCs

depend:
	perl Depend.pl > $(DEPENDFILE)

clean:
	rm -f *TOC.lyx $(DEPENDFILE)

.PHONY: depend clean
