From 15bb8f0ef337da55d96f8ae0884565759d6f76d5 Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Fri, 9 Aug 2002 08:39:32 +0000 Subject: plagiarized from urpmi --- po/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 po/Makefile (limited to 'po/Makefile') 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 $@ $< + -- cgit v1.2.1