mirror of https://github.com/BOINC/boinc.git
Merge pull request #1855 from BOINC/fix_issue-720
Build: install locale files in out-of-tree builds
This commit is contained in:
commit
28cc28b4a0
|
@ -2,7 +2,7 @@
|
|||
|
||||
include $(top_srcdir)/Makefile.incl
|
||||
|
||||
datadir = $(prefix)/share/locale
|
||||
datadir = $(prefix)/share/locale
|
||||
|
||||
locale_dirs = \
|
||||
ar \
|
||||
|
@ -49,11 +49,10 @@ install-data-hook:
|
|||
mydir=$(DESTDIR)$(datadir) ;\
|
||||
for ldir in $(locale_dirs) ; do \
|
||||
$(INSTALL) -d $$mydir/$$ldir/LC_MESSAGES ; \
|
||||
if [ -f $$ldir/BOINC-Manager.mo ] ; then \
|
||||
$(INSTALL_DATA) $$ldir/BOINC-Manager.mo $$mydir/$$ldir/LC_MESSAGES/BOINC-Manager.mo ; \
|
||||
if [ -f $(top_srcdir)/locale/$$ldir/BOINC-Manager.mo ] ; then \
|
||||
$(INSTALL_DATA) $(top_srcdir)/locale/$$ldir/BOINC-Manager.mo $$mydir/$$ldir/LC_MESSAGES/BOINC-Manager.mo ; \
|
||||
fi ;\
|
||||
if [ -f $$ldir/BOINC-Client.mo ] ; then \
|
||||
$(INSTALL_DATA) $$ldir/BOINC-Client.mo $$mydir/$$ldir/LC_MESSAGES/BOINC-Client.mo ; \
|
||||
if [ -f $(top_srcdir)/locale/$$ldir/BOINC-Client.mo ] ; then \
|
||||
$(INSTALL_DATA) $(top_srcdir)/locale/$$ldir/BOINC-Client.mo $$mydir/$$ldir/LC_MESSAGES/BOINC-Client.mo ; \
|
||||
fi ;\
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue