diff options
author | Hilko Bengen <bengen@hilluzination.de> | 2012-06-08 01:23:55 +0200 |
---|---|---|
committer | Hilko Bengen <bengen@hilluzination.de> | 2012-06-08 01:24:39 +0200 |
commit | 6cf15e8841897d3190c3e730e6eeae06fe4b8b1d (patch) | |
tree | b009836383a163838d0816c62d9a7c29ced9d2e2 /po | |
parent | 52af9a88b83b5d23695b733915dd91f27c67ab43 (diff) | |
download | libguestfs-6cf15e8841897d3190c3e730e6eeae06fe4b8b1d.tar.gz libguestfs-6cf15e8841897d3190c3e730e6eeae06fe4b8b1d.tar.xz libguestfs-6cf15e8841897d3190c3e730e6eeae06fe4b8b1d.zip |
out-of-tree build/install fix for translations
Diffstat (limited to 'po')
-rw-r--r-- | po/Makefile.am | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/po/Makefile.am b/po/Makefile.am index 90b23c1f..14adb3ab 100644 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -25,8 +25,8 @@ MSGID_BUGS_ADDRESS = https://bugzilla.redhat.com/enter_bug.cgi?component=libgues # Don't use LINGUAS (uppercase) as Gentoo defines it (RHBZ#804464). linguas := en_GB es gu hi kn ml mr nl or pa pl ta te uk -POTFILES := $(shell $(SED) 's,^,$(top_srcdir)/,' POTFILES) -POTFILES_ML := $(shell $(SED) 's,^,$(top_srcdir)/,' POTFILES-ml) +POTFILES := $(shell $(SED) 's,^,$(top_srcdir)/,' $(srcdir)/POTFILES) +POTFILES_ML := $(shell $(SED) 's,^,$(top_srcdir)/,' $(srcdir)/POTFILES-ml) POFILES := $(linguas:%=%.po) GMOFILES := $(linguas:%=%.gmo) @@ -68,9 +68,7 @@ $(DOMAIN).pot: Makefile $(POTFILES) $(POTFILES-ml) --directory=$(top_srcdir) \ --files-from=$(abs_srcdir)/POTFILES if HAVE_OCAML_GETTEXT - cd $(top_srcdir) && \ - $(OCAML_GETTEXT) --action extract --extract-pot po/$@-ml \ - $$(cat $(abs_srcdir)/POTFILES-ml) + $(OCAML_GETTEXT) --action extract --extract-pot $@-ml $(POTFILES_ML) # Don't trust msgcat since it will definitely screw up. Instead, chop # the head from the second file and append it to the first. echo >> $@-t @@ -80,18 +78,18 @@ endif mv $@-t $@ %.po: $(DOMAIN).pot - $(MSGMERGE) -N --update $@ $(DOMAIN).pot + cd $(srcdir) && $(MSGMERGE) -N --update $@ $(DOMAIN).pot .po.gmo: rm -f $@ $@-t - $(MSGFMT) -c -o $@-t $< + $(MSGFMT) -c -o $@-t $(srcdir)/$< mv $@-t $@ # Install. # Cannot use 'localedir' since this conflicts with autoconf. langinstdir = $(datadir)/locale -install-data-hook: +install-data-hook: $(GMOFILES) mkdir -p $(DESTDIR)$(langinstdir) for lang in $(linguas); do \ d=$(DESTDIR)$(langinstdir)/$$lang/LC_MESSAGES; \ |