Merge rules for tools/* into a generic rule.