Fix: examples make distcheck failure
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 10 May 2016 22:10:43 +0000 (18:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 10 May 2016 22:21:20 +0000 (18:21 -0400)
"make distcheck" marks each source file on the srcdir in the extracted
dist tarball read-only. The examples copy from the srcdir into the
builddir before running the "make" examples, but this keeps the
read-only flag on the builddir directories, which fails the build
because the resulting objects cannot be created.

Fix this by ensuring the copied target directory for each example is
user-writeable.

Fixes: #903
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/Makefile.am

index f3ca158c40fa10b4fc0da49f4d0ff3126dd1692a..b0e0a111e12eb6196be5d1b75549be9aca24aac6 100644 (file)
@@ -89,6 +89,7 @@ all-local:
        @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
                for subdir in $(SUBDIRS_PROXY) $(SUBDIRS_JUL) $(SUBDIRS_LOG4J); do \
                        cp -pfR $(srcdir)/$$subdir $(builddir); \
+                       chmod -R u+w $(builddir)/$$subdir; \
                done; \
        fi; \
        if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \
This page took 0.027403 seconds and 4 git commands to generate.