summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 8879c60f4cc1c383cc8f63ab8519f2a1a52f8f2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AUTOMAKE_OPTIONS = gnu
EXTRA_DIST = autogen.sh ceph.spec.in
# the "." here makes sure check-local builds gtest before it is used
SUBDIRS = . src man


# Build gtest before we build our own tests. Doing this instead of
# SUBDIRS gtest's own tests being run and slowing us down.
check-local:
	@echo "Making lib/libgtest.a lib/libgtest_main.a in src/gtest"
	@cd src/gtest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.la lib/libgtest_main.la

# "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