# # i18n makefile # include ../langs.mak ALLPOTSOURCES=$(wildcard ../*.c) POTFILE = fancylogview.pot POFILES=$(addprefix fancylogview_, $(addsuffix .po, $(POLANGS))) $(POTFILE): $(ALLPOTSOURCES) xgettext --keyword=fancy_log_view_i18n --keyword=fancy_log_view_i18n_n:1,2 --from-code=UTF-8 -o $@ $^ fancylogview_%.po: $(POTFILE) if test -f $@; then msgmerge -U $@ $<; else msginit -l $*.UTF-8 -i $< -o $@; fi pot: $(POTFILE) update-po: $(POFILES)