summaryrefslogtreecommitdiffstats
path: root/gettext-tools/examples
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-05-06 09:54:33 +0900
committerDaiki Ueno <ueno@gnu.org>2014-05-06 09:54:33 +0900
commit804d23ad4a7735b3800ec4d311e5989bc495f05e (patch)
tree163919035683472c09d712b5323c55e29f78451d /gettext-tools/examples
parent3492e801e77061a64fe8672c91140f677403dfd5 (diff)
downloadexternal_gettext-804d23ad4a7735b3800ec4d311e5989bc495f05e.zip
external_gettext-804d23ad4a7735b3800ec4d311e5989bc495f05e.tar.gz
external_gettext-804d23ad4a7735b3800ec4d311e5989bc495f05e.tar.bz2
examples: Don't fail on "make install" when a PO file is missing
* Makefile.am (install-data-local): Don't fail if a PO file does not exist, but warn user to do "make dist".
Diffstat (limited to 'gettext-tools/examples')
-rw-r--r--gettext-tools/examples/ChangeLog5
-rw-r--r--gettext-tools/examples/Makefile.am4
2 files changed, 9 insertions, 0 deletions
diff --git a/gettext-tools/examples/ChangeLog b/gettext-tools/examples/ChangeLog
index 22d2008..e12692c 100644
--- a/gettext-tools/examples/ChangeLog
+++ b/gettext-tools/examples/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-06 Daiki Ueno <ueno@gnu.org>
+
+ * Makefile.am (install-data-local): Don't fail if a PO file does
+ not exist, but warn user to do "make dist".
+
2014-04-22 Daiki Ueno <ueno@gnu.org>
build: Use git-version-gen intead of version.sh
diff --git a/gettext-tools/examples/Makefile.am b/gettext-tools/examples/Makefile.am
index 389489f..630f681 100644
--- a/gettext-tools/examples/Makefile.am
+++ b/gettext-tools/examples/Makefile.am
@@ -464,6 +464,10 @@ install-data-local: $(EXAMPLESFILES)
for f1 in $(EXAMPLESDIRS); do \
for f2 in $(EXAMPLESPOFILES); do \
f=$$f1/po/$$f2; \
+ test -f $(srcdir)/$$f || { \
+ echo "WARNING: $(srcdir)/$$f doesn't exist; do \"make dist\" to prepare" >&2; \
+ break; \
+ }; \
d=`echo /$$f | sed -e 's,/[^/]*$$,,'`; \
test -z "$$d" || $(MKDIR_P) $(DESTDIR)$(examplesdir)$$d || exit 1; \
b=`echo $$f | sed -e 's,^.*/,,'`; \