title: How do i get my makefile to run matlab scripts
body: <p>I have a makefile that I use when writing latex documents, it automatically makes my .eps, .svg and .dia files into .pdf files. But i would like to automatically make it run a matlab script, that makes several .eps files that i can then make into .pdf files. It should however only run the matlab script if it has been changes since last time the .eps files where made as the makefile becomes very slow if it has to open and close matlab each time it runs. Is there any way to do this?</p>