Commit 56f29220 authored by Kenton Varda's avatar Kenton Varda

Include cmake files in automake dist.

parent 04fd66e2
...@@ -33,6 +33,13 @@ clean-local: ...@@ -33,6 +33,13 @@ clean-local:
cd gtest && $(MAKE) $(AM_MAKEFLAGS) clean; \ cd gtest && $(MAKE) $(AM_MAKEFLAGS) clean; \
fi fi
# When running distcheck, verify that we've included all the files needed by
# the cmake build.
distcheck-hook:
rm -rf distcheck-cmake
(which cmake && mkdir distcheck-cmake && cd distcheck-cmake && cmake ../$(distdir) && make -j6 check)
rm -rf distcheck-cmake
AM_CXXFLAGS = -I$(srcdir)/src -I$(builddir)/src -DKJ_HEADER_WARNINGS -DCAPNP_HEADER_WARNINGS -DCAPNP_INCLUDE_DIR='"$(includedir)"' $(PTHREAD_CFLAGS) AM_CXXFLAGS = -I$(srcdir)/src -I$(builddir)/src -DKJ_HEADER_WARNINGS -DCAPNP_HEADER_WARNINGS -DCAPNP_INCLUDE_DIR='"$(includedir)"' $(PTHREAD_CFLAGS)
AM_LDFLAGS = $(PTHREAD_CFLAGS) AM_LDFLAGS = $(PTHREAD_CFLAGS)
...@@ -50,9 +57,14 @@ EXTRA_DIST = \ ...@@ -50,9 +57,14 @@ EXTRA_DIST = \
src/capnp/testdata/errors.txt \ src/capnp/testdata/errors.txt \
src/capnp/testdata/segmented \ src/capnp/testdata/segmented \
src/capnp/testdata/packed \ src/capnp/testdata/packed \
src/capnp/testdata/pretty.txt src/capnp/testdata/pretty.txt \
CMakeLists.txt \
CLEANFILES = $(test_capnpc_outputs) test_capnpc_middleman cmake/FindCapnProto.cmake \
src/CMakeLists.txt \
src/kj/CMakeLists.txt \
src/capnp/CMakeLists.txt
CLEANFILES = $(test_capnpc_outputs) test_capnpc_middleman distcheck-cmake
# Deletes all the files generated by autoreconf. # Deletes all the files generated by autoreconf.
MAINTAINERCLEANFILES = \ MAINTAINERCLEANFILES = \
......
...@@ -361,7 +361,7 @@ echo "=========================================================================" ...@@ -361,7 +361,7 @@ echo "========================================================================="
echo "Testing c++ dist" echo "Testing c++ dist"
echo "=========================================================================" echo "========================================================================="
doit make distcheck doit make -j6 distcheck
doit make distclean doit make distclean
rm capnproto-*.tar.gz rm capnproto-*.tar.gz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment