Parse directive and recursively compile files