automake: replace `-` with `_` in target names