Regenerate pot/po files only if input has changed
A custom target with ALL is always generated, even if the files/outputs specified with DPENDS are not changed.
This can be solved by generating the POT files with a custom_command. The target triggers evaluation of the custom_command, but the latter will only be run if the dependencies have changed.
Fixes #1479