From: Daiki Ueno Date: Fri, 5 Dec 2014 04:49:31 +0000 (+0900) Subject: examples: Include hello-*.pot in the distribution X-Git-Tag: v0.19.4~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0347f97401bdbc6d0cc767e5eac0d65930a1debe;p=thirdparty%2Fgettext.git examples: Include hello-*.pot in the distribution Partially revert 2c3d71ce, as it broke "make dist". Instead, include all the generated POT files in the distribution to prevent re-generation of those files. * Makefile.am (distdir1): Call update-po in po/Makefile. * po/Makefile.am ($(DOMAIN).pot-update): Specify --directory for xgettext invocation. (DISTCLEANFILES): Move $(SMALLPOTS)... (MAINTAINERCLEANFILES): ...here. (distdir1): Include $(SMALLPOTS) in the distribution. --- diff --git a/gettext-tools/examples/ChangeLog b/gettext-tools/examples/ChangeLog index da08c96d5..ab2b7e3b1 100644 --- a/gettext-tools/examples/ChangeLog +++ b/gettext-tools/examples/ChangeLog @@ -1,3 +1,16 @@ +2014-12-05 Daiki Ueno + + examples: Include hello-*.pot in the distribution + Partially revert 2c3d71ce, as it broke "make dist". Instead, + include all the generated POT files in the distribution to prevent + re-generation of those files. + * Makefile.am (distdir1): Call update-po in po/Makefile. + * po/Makefile.am ($(DOMAIN).pot-update): Specify --directory for + xgettext invocation. + (DISTCLEANFILES): Move $(SMALLPOTS)... + (MAINTAINERCLEANFILES): ...here. + (distdir1): Include $(SMALLPOTS) in the distribution. + 2014-12-04 Daiki Ueno examples: Don't forcibly regenerate POT files on 'make dist' diff --git a/gettext-tools/examples/Makefile.am b/gettext-tools/examples/Makefile.am index 9cc56ff86..9092649b7 100644 --- a/gettext-tools/examples/Makefile.am +++ b/gettext-tools/examples/Makefile.am @@ -504,6 +504,7 @@ uninstall-local: # Invoked from inside automake's distdir target. distdir1: + cd po && $(MAKE) update-po for file in $(EXAMPLESFILES); do \ if test -f $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ diff --git a/gettext-tools/examples/po/Makefile.am b/gettext-tools/examples/po/Makefile.am index 0f5d28611..cd9b365ea 100644 --- a/gettext-tools/examples/po/Makefile.am +++ b/gettext-tools/examples/po/Makefile.am @@ -198,6 +198,7 @@ $(DOMAIN).pot-update: $(POTFILES_DEPS) $(SMALLPOTS) remove-potcdate.sed --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ + --directory='$(srcdir)' \ $(SMALLPOTS) test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ @@ -329,9 +330,7 @@ MOSTLYCLEANFILES += stamp-poT MOSTLYCLEANFILES += core core.* *.stackdump $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po MOSTLYCLEANFILES += *.o -DISTCLEANFILES = $(SMALLPOTS) - -MAINTAINERCLEANFILES = stamp-po +MAINTAINERCLEANFILES = stamp-po $(SMALLPOTS) EXTRA_DIST = remove-potcdate.sin xsmallpot.sh mmsmallpo.sh LINGUAS \ $(POFILES) @@ -340,7 +339,7 @@ EXTRA_DIST = remove-potcdate.sin xsmallpot.sh mmsmallpo.sh LINGUAS \ #distdir: distdir1 distdir1: if test -f $(srcdir)/$(DOMAIN).pot; then \ - for file in $(DOMAIN).pot stamp-po; do \ + for file in $(DOMAIN).pot stamp-po $(SMALLPOTS); do \ if test -f $$file; then d=.; else d=$(srcdir); fi; \ cp -p $$d/$$file $(distdir)/$$file || exit 1; \ done; \