summaryrefslogtreecommitdiff
path: root/po/Makefile.in
blob: c3114376a63e6a135ded9cd7b3a009d277d6d9fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
CATALOGS = se.mo fr.mo

POTFILES  = ../rpm.c

all: $(NLSPACKAGE).pot $(CATALOGS)

$(NLSPACKAGE).pot: $(POTFILES)
	xgettext --default-domain=$(NLSPACKAGE) \
       	  --add-comments --keyword=_ --keyword=N_ $(POTFILES)
	if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \
	    rm -f $(NLSPACKAGE).po; \
	else \
	    mv $(NLSPACKAGE).po $(NLSPACKAGE).pot; \
	fi

clean:
	rm -f *mo

depend:

install:
	install -m 755 -o 0 -g 0 -d $(NLSDIR)
	for n in $(CATALOGS); do \
	    l=`basename $$n .mo`; \
	    install -m 755 -o 0 -g 0 -d $(NLSDIR)/$$l; \
	    install -m 755 -o 0 -g 0 -d $(NLSDIR)/$$l/LC_MESSAGES; \
	    install -m 644 -o 0 -g 0 $$n $(NLSDIR)/$$l/LC_MESSAGES/rpm.mo; \
	done

fr.mo:	fr.po
	msgfmt -o $@ $<

se.mo:	se.po
	msgfmt -o $@ $<