Replace $(G) with more generic $(M) in silent make rules