Update rules for build.