summaryrefslogtreecommitdiff
path: root/community/signon-ui/Makefile
blob: 3ede78507fbde82b1b6bcc5047f0bbd692f72ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Add here the language codes for the translated .po files:
LINGUAS =

I18N_DOMAIN = signon-ui

PO_FILES = $(addsuffix .po, $(LINGUAS))
MO_FILES = $(addsuffix .mo, $(LINGUAS))

DEL_FILE = rm -f
INSTALL = /usr/bin/install -c -m 644
MKDIR = mkdir -p

all: $(MO_FILES)

install: all
	for lang in $(LINGUAS); do \
		dir=$(INSTALL_ROOT)/usr/share/locale/$$lang/LC_MESSAGES; \
		$(MKDIR) $$dir; \
		$(INSTALL) $$lang.mo $$dir/$(I18N_DOMAIN).mo; \
	done

%.mo: %.po
	msgfmt -o "$@" "$<"

clean:
	-$(DEL_FILE) $(MO_FILES)

distclean: clean

check: all