Signed-off-by: Eric Paniagua <epaniagua@google.com>epan/testing/readable
parent
dba2d77a97
commit
c21f367c2e
@ -1,25 +1,26 @@
|
|||||||
LIB_DIR?=${PWD}/lib
|
COMMON_LIB_DIR?=${PWD}/lib
|
||||||
TEST_DIRS=$(dir $(wildcard */*_test.cpp))
|
TEST_DIRS=$(shell dirname $(wildcard */Makefile))
|
||||||
|
|
||||||
Makefile: build-libs ${TEST_DIRS}
|
Makefile: ${TEST_DIRS} FORCE
|
||||||
@:
|
@echo TEST_DIRS="${TEST_DIRS}"
|
||||||
|
|
||||||
build-libs: googletest common
|
|
||||||
@:
|
|
||||||
|
|
||||||
googletest: FORCE
|
googletest: FORCE
|
||||||
cd googletest && $(MAKE)
|
cd googletest && $(MAKE)
|
||||||
|
|
||||||
common: FORCE
|
common: FORCE
|
||||||
cd common && env LIB_DIR="${LIB_DIR}" $(MAKE)
|
cd common && env COMMON_LIB_DIR="${COMMON_LIB_DIR}" $(MAKE)
|
||||||
|
|
||||||
clean: FORCE
|
clean:
|
||||||
rm -rf "${LIB_DIR}"
|
rm -rf "${COMMON_LIB_DIR}"
|
||||||
|
cd googletest && make clean
|
||||||
cd common && make clean
|
cd common && make clean
|
||||||
cd hello-simulator && make clean
|
cd hello-simulator && make clean
|
||||||
cd kaleidoscope && make clean
|
cd kaleidoscope && make clean
|
||||||
|
|
||||||
%: common googltest FORCE
|
hello-simulator:
|
||||||
if [ -f "$@/Makefile" ]; then cd "$@"; $(MAKE); fi
|
@:
|
||||||
|
|
||||||
|
%: common googletest FORCE
|
||||||
|
cd "$@" && $(MAKE)
|
||||||
|
|
||||||
.PHONY: FORCE googletest build-libs
|
.PHONY: FORCE googletest build-libs
|
||||||
|
Loading…
Reference in new issue