summaryrefslogtreecommitdiff
path: root/cpp/examples
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-08-19 21:04:35 +0000
committerGordon Sim <gsim@apache.org>2008-08-19 21:04:35 +0000
commit4ac9fe566333f24c9a3f880eef8ec6acf6de234e (patch)
treebb3f6650a3abb812da6a78ac272630748c9eed9c /cpp/examples
parentce22e996fb7ecbf0a31a088349123d7f2fa919fd (diff)
downloadqpid-python-4ac9fe566333f24c9a3f880eef8ec6acf6de234e.tar.gz
Build tweaks for distcheck:
* ensure examples dirs are writable so executables can be compiled * cleanup files on distclean git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-10@687156 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples')
-rw-r--r--cpp/examples/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/examples/Makefile.am b/cpp/examples/Makefile.am
index b046540b92..001e276950 100644
--- a/cpp/examples/Makefile.am
+++ b/cpp/examples/Makefile.am
@@ -61,9 +61,12 @@ abs_top_srcdir=@abs_top_srcdir@
# Build the examples - copy sources to the build tree in VPATH build.
all-local:
- test -d examples || cp -R $(srcdir)/examples .
+ test -d examples || cp -R $(srcdir)/examples . && chmod +w -R examples
cd examples && $(MAKE) CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS) -I$(abs_top_srcdir)/src -I$(abs_top_srcdir)/src/gen -I$(abs_top_builddir)/src -I$(abs_top_builddir)/src/gen -L$(abs_top_builddir)/src/.libs -Wl,-rpath,$(abs_top_builddir)/src/.libs" all
+distclean-local:
+ rm -rf examples
+
if !HAVE_XML
exclude_examples_regexp="xml" # Exclude XML examples.
endif