PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts \
find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \) \
-print -exec ./TestRunner.sh {} \;
+
+clean::
+ rm -rf Output/
+
+.PHONY: all clean
@ PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts ./TestRunner.sh $< > $@ || $(REPORTFAIL)
all::
+ @ mkdir -p $(addprefix Output/, $(TESTDIRS))
@ rm -f $(TESTS)
@ echo '--- Running clang tests ---'
@ $(MAKE) -f Makefile.parallel $(TESTS)
report: $(TESTS)
@ cat $^
-.PHONY: all report
+clean::
+ rm -rf Output/
+
+.PHONY: all report clean