summaryrefslogtreecommitdiff
path: root/community/signon-ui/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'community/signon-ui/Makefile')
-rw-r--r--community/signon-ui/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/signon-ui/Makefile b/community/signon-ui/Makefile
new file mode 100644
index 000000000..3ede78507
--- /dev/null
+++ b/community/signon-ui/Makefile
@@ -0,0 +1,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
+