# the domain name for rgettext PGOAL = booh # ruby files to search translatable strings in RB_FILES = ../bin/booh ../lib/booh/html-merges.rb ../bin/booh-gui ../lib/booh/booh-lib.rb all: $(PGOAL).pot merge: $(PGOAL).pot @for n in $(POFILES); do \ echo "Merging $$n"; \ msgmerge "$$n" $< > "$$n"t; \ mv -f "$$n"t "$$n"; \ done $(PGOAL).pot: $(RB_FILES) rm -f $@ rgettext --keyword=__ -o $@ $(RB_FILES) clean: @rm -rf $(PGOAL).pot