build: avoid updated PO files being remerged upon every make

master
Benno Schulenberg 2016-10-15 15:08:14 +02:00
parent a35803d502
commit 00efa50385
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ fi
echo "Regenerating POT file and remerging and recompiling PO files..."
make update-po
# Ensure that the PO files are newer than the POT.
touch *.po
# If needed, fix a problem in the Makefile template.
grep -q '^datarootdir' Makefile.in.in || \
sed -i 's/^\(datadir.*\)/datarootdir = @datarootdir@\n\1/' Makefile.in.in