update
[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 ../bin/booh-classifier ../lib/booh/html-merges.rb ../bin/booh-backend ../lib/booh/booh-lib.rb ../lib/booh/UndoHandler.rb $(wildcard ../data/booh/themes/*/metadata/parameters.rb)
6
7 POFILES = $(wildcard *.po)
8
9 all: $(PGOAL).pot
10
11 merge: $(PGOAL).pot
12         @for n in $(POFILES); do \
13                 echo "Merging $$n"; \
14                 msgmerge "$$n" $< > "$$n"t; \
15                 mv -f "$$n"t "$$n"; \
16         done
17
18 $(PGOAL).pot: $(RB_FILES)
19         rm -f $@
20         rgettext -o $@ $(RB_FILES)
21         perl -pi -e 's/, , \[ or \], sorry/, \\", [ or ], sorry/' $@ 
22
23 clean:
24         @rm -rf $(PGOAL).pot