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-05 Daiki Ueno <ueno@gnu.org>
+
+ 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 <ueno@gnu.org>
examples: Don't forcibly regenerate POT files on 'make dist'
# 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,/[^/]*$$,,'`; \
--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 \
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)
#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; \