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
636 B

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 "$(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 && LIB_DIR="${LIB_DIR}" $(MAKE)
hello-simulator:
@:
Makefile:
@:
%: common googletest
cd "$@" && $(MAKE)
.PHONY: googletest build-libs common