Commit 30fd6627 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Support empty LINGUAS

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent a16819fd
...@@ -4,10 +4,13 @@ PROJECT = zathura ...@@ -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))
ALINGUAS = $(shell find $(patsubst %, %.po, $(LINGUAS)) 2>/dev/null) ifeq ($(LINGUAS),)
ALINGUAS =
else
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment