2008-07-10 13:10:16 -07:00
|
|
|
top_srcdir=..
|
|
|
|
top_builddir=$(top_srcdir)
|
|
|
|
|
2008-06-28 15:32:44 -07:00
|
|
|
include $(top_srcdir)/makerules/common.mk
|
2008-06-23 06:54:47 -07:00
|
|
|
|
2008-06-28 15:32:14 -07:00
|
|
|
include Makevars
|
2008-06-23 06:54:47 -07:00
|
|
|
|
2008-10-13 06:04:37 -07:00
|
|
|
PO_FILES= \
|
|
|
|
da.po \
|
|
|
|
de.po \
|
|
|
|
la.po \
|
|
|
|
nb.po \
|
|
|
|
nl.po
|
|
|
|
|
2008-06-23 06:54:47 -07:00
|
|
|
MO_FILES=$(patsubst %.po,%.gmo,$(PO_FILES))
|
2007-04-05 18:51:07 -07:00
|
|
|
|
2007-08-16 15:50:05 -07:00
|
|
|
.PHONY: all clean update-po po-files mo-files
|
2007-04-05 18:51:07 -07:00
|
|
|
|
2008-07-04 00:34:08 -07:00
|
|
|
all:
|
2008-11-13 04:33:04 -08:00
|
|
|
ifeq ($(strip $(TRANSLATION)),yes)
|
2007-08-16 15:50:05 -07:00
|
|
|
all: po-files mo-files
|
2007-04-05 18:51:07 -07:00
|
|
|
endif
|
|
|
|
|
2008-06-28 15:32:14 -07:00
|
|
|
po-files: $(PO_FILES)
|
2007-08-16 15:50:05 -07:00
|
|
|
mo-files: $(MO_FILES)
|
|
|
|
|
|
|
|
update-po: clean all
|
2007-04-05 18:51:07 -07:00
|
|
|
|
2008-06-28 15:32:14 -07:00
|
|
|
$(DOMAIN).pot: POTFILES.in
|
2008-06-28 15:32:44 -07:00
|
|
|
$(XGETTEXT) $(XGETTEXT_OPTIONS) --default-domain="$(DOMAIN)" --copyright-holder="$(COPYRIGHT_HOLDER)" --msgid-bugs-address="$(MSGID_BUGS_ADDRESS)" --directory="$(top_builddir)" --add-comments=TRANSLATORS: --files-from=$<
|
2008-07-03 22:58:00 -07:00
|
|
|
$(MV) $(DOMAIN).po $@
|
2007-04-05 18:51:07 -07:00
|
|
|
|
2008-06-28 15:32:14 -07:00
|
|
|
%.po: $(DOMAIN).pot
|
2008-06-23 06:54:47 -07:00
|
|
|
$(MSGMERGE) $(MSGMERGE_OPTIONS) $@ $(DOMAIN).pot -o $@.new
|
|
|
|
$(MV) $@.new $@
|
2007-04-05 18:51:07 -07:00
|
|
|
|
2008-06-28 15:32:14 -07:00
|
|
|
%.gmo: %.po
|
2007-08-16 15:50:05 -07:00
|
|
|
$(MSGFMT) -c -o $@ $<
|
|
|
|
|
2007-04-05 18:51:07 -07:00
|
|
|
clean:
|
2008-06-23 06:54:47 -07:00
|
|
|
$(RM_F) $(PACKAGE).pot
|
|
|
|
$(RM_F) $(MO_FILES)
|