summaryrefslogtreecommitdiff
path: root/buildlib/netdb.h.in
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-09 13:10:28 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-10 16:11:16 +0200
commite164341c20625f62a44be16e6f3fbab66334f130 (patch)
treecaf82754b6dc3c55d94aca79a01b83fd855710aa /buildlib/netdb.h.in
parentddf40a42f5a699086466990f85d86e6c4977524a (diff)
CMake: Translations: Avoid rebuilding .mo if .pot did not change
Use the witness/byproducts approach to build the translations. A byproduct of a command is like an output, but may be older than the input. Here, we generate a normal template with headers in the normal way as a witness (and for Launchpad translations), but we also generate a .pot-tmp0 template file without a header that gets copied to a .pot-tmp byproduct only if it changed. This way, the .pot-tmp is only updated if an actual string translation changed. We also create a custom target for the .pot file that we'll depend on later in the overall target creating the mo files to ensure that the template is build before we try to build mo files. Then we make the msgmerge depend on the .pot-tmp instead of the .pot file, which means that msgmerge and msgfmt only get re-run if a string change occured. Gbp-Dch: ignore
Diffstat (limited to 'buildlib/netdb.h.in')
0 files changed, 0 insertions, 0 deletions