If ja.po in coreutils source tree, this target generates ja.gmo
and copies it to source/locale/LC_MESSAGES/coreutils.mo.
By doing this, changes in ja.po are automatically incorporated into
translated help2man manpages.
+#------------------------------------------------------------
+
tarball: $(tarball)
$(tarball):
wget http://core.ring.gr.jp/pub/GNU/coreutils/$@
tarball: $(tarball)
$(tarball):
wget http://core.ring.gr.jp/pub/GNU/coreutils/$@
+#------------------------------------------------------------
+
+mo-ja = source/locale/$(LANG)/LC_MESSAGES/coreutils.mo
+gmo-ja = source/po/ja.gmo
+po-ja = source/po/ja.po
+
+$(mo-ja): $(gmo-ja)
+ /bin/cp $^ $@
+
+$(gmo-ja): $(po-ja)
+ $(MAKE) -C source/po $$(basename $@)
+
+catalog: $(mo-ja)
+
+build-man: catalog
$(MAKE) -C help2man.ja $@ PACKAGE_VERSION=$(PACKAGE_VERSION)
install: build-man
$(MAKE) -C help2man.ja $@ PACKAGE_VERSION=$(PACKAGE_VERSION)
install: build-man
+$(MANPAGES): $(srcdir)/locale/$(LANG)/LC_MESSAGES/coreutils.mo
+
- $(AM_V_GEN)rm -f $@ $@-t \
+ $(AM_V_GEN)rm -f $@ $@-t \
&& { \
rm -rf $t; \
mkdir $t; \
&& { \
rm -rf $t; \
mkdir $t; \