mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
po: don't install gmo files when --disable-nls is given
With --disable-nls is given we turn off use of gettext in the source code, but mistakenly still installed the gmo files. Reported-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -89,6 +89,8 @@ $(srcdir)/%.gmo: $(srcdir)/%.po
|
||||
|
||||
endif HAVE_GNU_GETTEXT_TOOLS
|
||||
|
||||
if ENABLE_NLS
|
||||
|
||||
# Cannot use 'localedir' since this conflicts with autoconf.
|
||||
langinstdir = $(datadir)/locale
|
||||
|
||||
@@ -105,3 +107,5 @@ uninstall-hook:
|
||||
d=$(DESTDIR)$(langinstdir)/$$lang/LC_MESSAGES; \
|
||||
rm -f $$d/$(DOMAIN).mo; \
|
||||
done
|
||||
|
||||
endif ENABLE_NLS
|
||||
|
||||
Reference in New Issue
Block a user