1 # the domain name for rgettext
4 # ruby files to search translatable strings in
5 RB_FILES = ../booh ../html_merges.rb
7 POFILES = $(wildcard *.po)
8 MOFILES = $(POFILES:%.po=%.mo)
9 LANGS = $(POFILES:%.po=%)
11 # because of different charsets or encodings.. :-(
15 DATADIR = $(PREFIX)/share
16 LOCALEDIR=$(DATADIR)/locale
24 @for n in $(POFILES); do \
26 msgmerge "$$n" $< > "$$n"t; \
30 $(PGOAL).pot: $(RB_FILES)
32 rgettext --keyword=__ -o $@ $(RB_FILES)
35 for l in $(LANGS); do \
36 install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \
37 install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(PGOAL).mo; \
41 @rm -rf *.mo $(PGOAL).pot