diff options
author | Nathan Scott <nathans@sgi.com> | 2003-07-07 04:04:22 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2003-07-07 04:04:22 +0000 |
commit | fa97aae2917d01ac44058293ff39687d8413e5eb (patch) | |
tree | 705e14a6f593e8bf6e721263e43e08a947646480 | |
parent | 7bd7bd4b43861a502803d14d009d956d302ba975 (diff) | |
download | dmapi-dev-fa97aae2917d01ac44058293ff39687d8413e5eb.tar.gz |
Fix userspace build so that msgmerge is not always run. Originally by Steve Langasek.
-rw-r--r-- | include/buildrules | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/buildrules b/include/buildrules index 5ef98c1..cecb4c9 100644 --- a/include/buildrules +++ b/include/buildrules @@ -59,10 +59,13 @@ ifdef LINGUAS %.pot: $(XGETTEXTFILES) xgettext --omit-header --language=C --keyword=_ -o $@ $(XGETTEXTFILES) -%.tmpo: %.po - $(MSGMERGE) -o $@ $< $(PKG_NAME).pot +%.po: $(PKG_NAME).pot + $(MSGMERGE) -o $@.tmpo $@ $< + @if ! diff $@.tmpo $@ >/dev/null; then \ + echo "$@ is out of date, see $@.tmpo"; \ + fi -%.mo: %.tmpo +%.mo: %.po $(MSGFMT) -o $@ $< endif |