summaryrefslogtreecommitdiffstats
path: root/po/Makefile
blob: 5005a700f10cb6cd238689026d7af4e074e2bb44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 $@ $<