sync
[booh] / po / Makefile
1 # the domain name for rgettext
2 PGOAL = booh
3
4 # ruby files to search translatable strings in
5 RB_FILES = ../bin/booh ../lib/booh/html-merges.rb ../bin/booh-gui ../lib/booh/booh-lib.rb
6
7 all: $(PGOAL).pot
8
9 merge: $(PGOAL).pot
10         @for n in $(POFILES); do \
11                 echo "Merging $$n"; \
12                 msgmerge "$$n" $< > "$$n"t; \
13                 mv -f "$$n"t "$$n"; \
14         done
15
16 $(PGOAL).pot: $(RB_FILES)
17         rm -f $@
18         rgettext --keyword=__ -o $@ $(RB_FILES)
19
20 clean:
21         @rm -rf $(PGOAL).pot