Respect silent mode in custom rules

Follow the instructions in the automake documentation to properly silence
commands in custom rules when silent mode is enabled.