run compilation in the desired directory