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

21 lines
357 B

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