Generic build rule.