Support empty LINGUAS

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2012-12-13 14:01:40 +01:00
parent a16819fdf0
commit 30fd662794

View File

@ -4,10 +4,13 @@ PROJECT = zathura
GETTEXT_PACKAGE = $(PROJECT) GETTEXT_PACKAGE = $(PROJECT)
CATALOGS = $(wildcard *.po) CATALOGS = $(wildcard *.po)
LINGUAS ?= $(patsubst %.po, %, $(CATALOGS)) LINGUAS ?= $(patsubst %.po, %, $(CATALOGS))
ifeq ($(LINGUAS),)
ALINGUAS =
else
ALINGUAS = $(shell find $(patsubst %, %.po, $(LINGUAS)) 2>/dev/null) ALINGUAS = $(shell find $(patsubst %, %.po, $(LINGUAS)) 2>/dev/null)
endif
MOS = $(patsubst %, %/LC_MESSAGES/${GETTEXT_PACKAGE}.mo, $(patsubst %.po, %, $(ALINGUAS))) MOS = $(patsubst %, %/LC_MESSAGES/${GETTEXT_PACKAGE}.mo, $(patsubst %.po, %, $(ALINGUAS)))
include ../config.mk include ../config.mk
include ../common.mk include ../common.mk