Kouhei Sutou
null+****@clear*****
Sat Aug 16 12:49:02 JST 2014
Kouhei Sutou 2014-08-16 12:49:02 +0900 (Sat, 16 Aug 2014) New Revision: 99297fb60fd0cbb1acccb977c469c95b34fbde83 https://github.com/mroonga/mroonga/commit/99297fb60fd0cbb1acccb977c469c95b34fbde83 Message: doc: merge .po related build Makefile from Groonga It will solve a problem that making document in other directory fails. [groonga-dev,02652] Reported by cosmo0920. Thanks!!! Modified files: build/makefiles/gettext.am Modified: build/makefiles/gettext.am (+23 -15) =================================================================== --- build/makefiles/gettext.am 2014-08-15 12:07:12 +0900 (71df805) +++ build/makefiles/gettext.am 2014-08-16 12:49:02 +0900 (8b71ab0) @@ -12,35 +12,42 @@ endif if DOCUMENT_BUILDABLE BUILT_SOURCES += \ pot-build-stamp \ + edit-po-build-stamp \ $(mo_files) endif SUFFIXES += .pot .po .mo .edit -.PHONY: gettext update build - -all: +.PHONY: gettext build .pot.edit: - if test -f $*.po; then \ - msgmerge --quiet --sort-by-file --output-file=$@ $*.po $<; \ - else \ - msginit \ - --input=$< \ - --output-file=$@ \ - --locale=$(LOCALE) \ - --no-translator; \ + if test -f $*.po; then \ + msgmerge \ + --quiet \ + --sort-by-file \ + --output-file=$@.tmp \ + $*.po \ + $<; \ + else \ + msginit \ + --input=$< \ + --output-file=$@.tmp \ + --locale=$(LOCALE) \ + --no-translator; \ fi + (echo "# -*- po -*-"; \ + GREP_OPTIONS= grep -v '^# -\*- po -\*-' $@.tmp | \ + GREP_OPTIONS= grep -v '^"POT-Creation-Date:') > $@ + rm $@.tmp .edit.po: msgcat --no-location --output $@ $< + .po.mo: msgfmt -o $@ $< -update: pot-build-stamp edit-po-build-stamp $(edit_po_files) $(po_files) - if DOCUMENT_BUILDABLE -build: $(mo_files) +build: pot-build-stamp edit-po-build-stamp $(mo_files) else build: endif @@ -52,7 +59,8 @@ pdf: build gettext: rm *.pot || true $(SPHINX_BUILD_COMMAND) -d doctrees -b gettext $(ALLSPHINXOPTS) . - xgettext --language Python --output conf.pot ../../../source/conf.py + xgettext --language Python --output conf.pot \ + $(top_srcdir)/doc/source/conf.py pot-build-stamp: $(absolute_source_files) $(MAKE) gettext -------------- next part -------------- HTML����������������������������... Télécharger