summaryrefslogtreecommitdiffstats
path: root/gettext-tools/examples/po
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-12-05 13:49:31 +0900
committerDaiki Ueno <ueno@gnu.org>2014-12-05 13:54:27 +0900
commit0347f97401bdbc6d0cc767e5eac0d65930a1debe (patch)
treea5c2c4f225e0d611d1fa31f65b4da7b0e2f3eeb2 /gettext-tools/examples/po
parent6194e04bc89968548d4e7fcefffcfe65cce0fafb (diff)
downloadexternal_gettext-0347f97401bdbc6d0cc767e5eac0d65930a1debe.zip
external_gettext-0347f97401bdbc6d0cc767e5eac0d65930a1debe.tar.gz
external_gettext-0347f97401bdbc6d0cc767e5eac0d65930a1debe.tar.bz2
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.
Diffstat (limited to 'gettext-tools/examples/po')
-rw-r--r--gettext-tools/examples/po/Makefile.am7
1 files changed, 3 insertions, 4 deletions
diff --git a/gettext-tools/examples/po/Makefile.am b/gettext-tools/examples/po/Makefile.am
index 0f5d286..cd9b365 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; \