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
|
|
|
|
|
|
|
PO_FILES=nb.po de.po da.po nl.po la.po
|
|
|
|
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:
|
|
|
|
ifdef TRANSLATION
|
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)
|