ikiwiki.pot: $(POTFILES)
@echo "Rebuilding the pot file"
- xgettext $(POTFILES) -o ikiwiki.pot -Lperl
+ xgettext $(POTFILES) -o ikiwiki.pot -Lperl --add-comments=translators
clean:
- rm -f ikiwiki.pot $(MOFILES) messages messages.mo
+ rm -f $(MOFILES) messages messages.mo
%.mo: %.po
msgfmt -o $@ $<
%.po: ikiwiki.pot
@echo -n "Merging ikiwiki.pot and $@"
- @msgmerge $@ ikiwiki.pot -o $@.new
+ @msgmerge $@ ikiwiki.pot -o $@.new 2>&1
# Typically all that changes was a date. I'd prefer not to commit such
# changes, so detect and ignore them.
@if [ "`diff $@ $@.new | grep '[<>]' | wc -l`" -ne 2 ]; then \
else \
rm -f $@.new; \
fi
- @msgfmt --statistics $@
+ @msgfmt --statistics $@ 2>&1
check:
@for file in $(POFILES); do \