diff options
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 00000000..5005a700 --- /dev/null +++ b/po/Makefile @@ -0,0 +1,21 @@ +POFILES = $(shell ls *.po) +LOCALEDIR = $(PREFIX)/usr/share/locale + +all: $(POFILES) + +install: $(POFILES) + for i in $(POFILES:%.po=%); do \ + install -d $(LOCALEDIR)/$$i/LC_MESSAGES ; \ + cp -f $$i.po $(LOCALEDIR)/$$i/LC_MESSAGES/urpmi.po ; \ + done + +clean: + rm -f messages empty.po $(POFILES:%=%t) + +$(POFILES): urpmi.pot + cp -f $@ $@t + msgmerge $@t $< > $@ + rm $@t + +urpmi.pot: ../urpmi + xgettext -L C -F -n --keyword=_ -o $@ $< |