summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--po/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 00000000..52fc189e
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,25 @@
+# Installation directories
+localedir = $(PREFIX)/usr/share/locale
+
+LANGS = $(shell ls *.po | xargs -i basename {} .po )
+PGOAL = drakwizard
+GOALS = $(foreach a, $(LANGS), $(a).mo)
+
+
+all: $(GOALS)
+
+install: all
+ for l in $(LANGS); do \
+ install -d $(localedir)/$$l/LC_MESSAGES; \
+ install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(PGOAL).mo; \
+ done
+
+clean:
+ rm -f *~ *.[oas] *.mo $(GOALS) TAGS
+
+%.h:
+ @touch $@
+
+%.mo: %.po
+ msgfmt -o $@ $<
+