You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
359 B
20 lines
359 B
LIB_DIR?=${PWD}/lib
|
|
TEST_DIRS=$(dir $(wildcard */*_test.cpp))
|
|
|
|
Makefile: build-libs ${TEST_DIRS}
|
|
@:
|
|
|
|
build-libs: googletest common
|
|
@:
|
|
|
|
googletest: FORCE
|
|
cd googletest && $(MAKE)
|
|
|
|
common: FORCE
|
|
cd common && env LIB_DIR="${LIB_DIR}" $(MAKE)
|
|
|
|
%: common googltest FORCE
|
|
if [ -f "$@/Makefile" ]; then cd "$@"; $(MAKE); fi
|
|
|
|
.PHONY: FORCE googletest build-libs
|