add a compike dir function which compiles everything in dir