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.
all: build-man
+#------------------------------------------------------------
+
tarball: $(tarball)
$(tarball):
wget http://core.ring.gr.jp/pub/GNU/coreutils/$@
)
touch $@
-build-man:
+#------------------------------------------------------------
+
+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
clean:
$(RM) $(MANPAGES)
+$(MANPAGES): $(srcdir)/locale/$(LANG)/LC_MESSAGES/coreutils.mo
+
.x.1:
- $(AM_V_GEN)rm -f $@ $@-t \
+ $(AM_V_GEN)rm -f $@ $@-t \
&& { \
rm -rf $t; \
mkdir $t; \