Add compile-message rule.