mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
support the LINGUAS variable by make install
Fixes 3863
This commit is contained in:
parent
7a9efa7930
commit
b2174bc9c0
11
Makefile.in
11
Makefile.in
|
@ -195,11 +195,16 @@ ifeq ($(shell uname), Darwin)
|
|||
endif
|
||||
|
||||
#
|
||||
# All translation message catalogs
|
||||
# All translation message catalogs, filter files based on LINGUAS.
|
||||
#
|
||||
TRANSLATIONS_SRC := $(wildcard po/*.po)
|
||||
ifdef HAVE_GETTEXT
|
||||
ifeq ($(HAVE_GETTEXT), 1)
|
||||
TRANSLATIONS := $(TRANSLATIONS_SRC:.po=.gmo)
|
||||
ifdef LINGUAS
|
||||
TRANSLATIONS_ALL := $(TRANSLATIONS)
|
||||
TRANSLATIONS_WANTED = $(patsubst %,po/%.gmo,$(LINGUAS))
|
||||
TRANSLATIONS = $(filter $(TRANSLATIONS_WANTED),$(TRANSLATIONS_ALL))
|
||||
endif
|
||||
else
|
||||
TRANSLATIONS :=
|
||||
endif
|
||||
|
@ -764,7 +769,7 @@ uninstall: uninstall-translations | show-prefix show-bindir show-sysconfdir show
|
|||
.PHONY: uninstall
|
||||
|
||||
install-translations: $(TRANSLATIONS) | show-HAVE_GETTEXT
|
||||
ifdef HAVE_GETTEXT
|
||||
ifeq ($(HAVE_GETTEXT), 1)
|
||||
@echo "Installing translations..."
|
||||
$v for i in $(TRANSLATIONS); do \
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(localedir)/`basename $$i .gmo`/LC_MESSAGES; \
|
||||
|
|
Loading…
Reference in New Issue
Block a user