mirror of
https://github.com/ceph/ceph
synced 2024-12-30 07:23:11 +00:00
e35d9de04d
Apparently "make distcheck" has been broken for 3 months; I find that hard to believe, but that's what it looks like. Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
AUTOMAKE_OPTIONS = gnu
|
|
EXTRA_DIST = autogen.sh ceph.spec.in ceph.spec
|
|
# the "." here makes sure check-local builds gtest before it is used
|
|
SUBDIRS = . src man
|
|
|
|
EXTRA_DIST += \
|
|
src/test/run-cli-tests \
|
|
src/test/run-cli-tests-maybe-unset-ccache \
|
|
src/test/cli \
|
|
src/test/downloads \
|
|
udev/50-rbd.rules
|
|
|
|
|
|
all-local:
|
|
if WITH_DEBUG
|
|
# We need gtest to build the rados-api tests. We only build those in
|
|
# a debug build, though.
|
|
@cd src/gtest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.la lib/libgtest_main.la lib/libgtest.a lib/libgtest_main.a
|
|
endif
|
|
|
|
check-local:
|
|
# We build gtest this way, instead of using SUBDIRS, because with that,
|
|
# gtest's own tests would be run and that would slow us down.
|
|
@cd src/gtest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.la lib/libgtest_main.la
|
|
# exercise cli tools
|
|
$(srcdir)/src/test/run-cli-tests '$(top_builddir)/src/test'
|
|
|
|
# "make distclean" both runs this and recurses into src/gtest, if
|
|
# gtest is in DIST_SUBDIRS. Take extra care to not fail when
|
|
# effectively cleaned twice.
|
|
clean-local:
|
|
@if test -e src/gtest/Makefile; then \
|
|
echo "Making clean in src/gtest"; \
|
|
cd src/gtest && $(MAKE) $(AM_MAKEFLAGS) clean; \
|
|
fi
|
|
|
|
@rm -rf src/test/virtualenv
|