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

19 lines
354 B

TEST_DIRS = $(dir $(wildcard */tests.h))
all: ${TEST_DIRS}
@:
Makefile: ${TEST_DIRS}
@:
%: FORCE
@if [ ! -f "$@/tests.h" ]; then \
echo 'Unable to find test file "$@/tests.h"'; \
else \
echo "Running tests in $@"; \
env LOCAL_CFLAGS='-DTESTING_INCLUDE_FILE="$@/tests.h" "-I$(PWD)/$@"' VERBOSE=1 $(MAKE) -f delegate.mk; \
fi
.PHONY: FORCE