Add a cmake build to distcheck to ensure that we distribute all the files

necessary to do a cmake build.

Note that this does mean that anyone doing "make distcheck" needs cmake.

Bug: 10331
Change-Id: I4360a305aa7f6ffc1b5a5dffad24b928eed45016
Reviewed-on: https://code.wireshark.org/review/3326
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
This commit is contained in:
Jeff Morriss 2014-08-01 11:10:55 -04:00
parent 644b2e7c69
commit 70a6d204a7
1 changed files with 11 additions and 0 deletions

View File

@ -1336,3 +1336,14 @@ if HAVE_DOXYGEN
zip -rq wsar_html.zip wsar_html
endif
# Verify that our source distribution has enough files to do a cmake build.
# Note that this means anyone doing a distcheck has to have cmake installed.
distcheck-hook:
cd $(distdir) && \
chmod 755 . && \
mkdir _cmake_build && \
cd _cmake_build && \
cmake .. && \
$(MAKE) && \
cd .. && \
rm -rf _cmake_build