take translations from theme as well
[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 ../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
22 clean:
23         @rm -rf $(PGOAL).pot