Fix make so that it only compiles when necessary