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

37 lines
664 B

COMMON_LIB_DIR?=${PWD}/lib
TEST_DIRS=$(shell dirname $(wildcard */Makefile))
DIRS=googletest hello-simulator kaleidoscope common issue_840
CLEANDIRS = $(DIRS:%=clean-%)
.PHONY: subdirs $(CLEANDIRS)
clean: googletest/Makefile $(CLEANDIRS)
rm -rf "$(COMMON_LIB_DIR)"
$(CLEANDIRS):
cd $(@:clean-%=%) && $(MAKE) clean
all: ${TEST_DIRS}
@echo TEST_DIRS="${TEST_DIRS}"
googletest: googletest/Makefile
cd googletest && $(MAKE)
googletest/Makefile:
cd googletest && cmake .
common:
cd common && COMMON_LIB_DIR="${COMMON_LIB_DIR}" $(MAKE)
hello-simulator:
@:
Makefile:
@:
%: common googletest
cd "$@" && $(MAKE)
.PHONY: googletest build-libs common