summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Desmons <adesmons@mandriva.com>2002-08-09 08:39:32 +0000
committerArnaud Desmons <adesmons@mandriva.com>2002-08-09 08:39:32 +0000
commit15bb8f0ef337da55d96f8ae0884565759d6f76d5 (patch)
tree1179f81847f841d0b1f26d44ca453ac206bf8985
parentbb34aac5205a97c28317f0826cf489c787b48cd3 (diff)
downloaddrakwizard-15bb8f0ef337da55d96f8ae0884565759d6f76d5.tar
drakwizard-15bb8f0ef337da55d96f8ae0884565759d6f76d5.tar.gz
drakwizard-15bb8f0ef337da55d96f8ae0884565759d6f76d5.tar.bz2
drakwizard-15bb8f0ef337da55d96f8ae0884565759d6f76d5.tar.xz
drakwizard-15bb8f0ef337da55d96f8ae0884565759d6f76d5.zip
plagiarized from urpmi
-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 $@ $<
+