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.
Kaleidoscope/testing/Makefile

26 lines
484 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)
clean: FORCE
rm -rf "${LIB_DIR}"
cd common && make clean
cd hello-simulator && make clean
cd kaleidoscope && make clean
%: common googltest FORCE
if [ -f "$@/Makefile" ]; then cd "$@"; $(MAKE); fi
.PHONY: FORCE googletest build-libs