[cfe-commits] r48488 - in /cfe/trunk/test: Makefile Makefile.parallel
Gabor Greif
ggreif at gmail.com
Tue Mar 18 00:03:00 PDT 2008
Author: ggreif
Date: Tue Mar 18 02:03:00 2008
New Revision: 48488
URL: http://llvm.org/viewvc/llvm-project?rev=48488&view=rev
Log:
add 'clean' targets, make sure that 'make test' works after 'make clean'
Modified:
cfe/trunk/test/Makefile
cfe/trunk/test/Makefile.parallel
Modified: cfe/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile?rev=48488&r1=48487&r2=48488&view=diff
==============================================================================
--- cfe/trunk/test/Makefile (original)
+++ cfe/trunk/test/Makefile Tue Mar 18 02:03:00 2008
@@ -12,3 +12,8 @@
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
Modified: cfe/trunk/test/Makefile.parallel
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile.parallel?rev=48488&r1=48487&r2=48488&view=diff
==============================================================================
--- cfe/trunk/test/Makefile.parallel (original)
+++ cfe/trunk/test/Makefile.parallel Tue Mar 18 02:03:00 2008
@@ -25,6 +25,7 @@
@ 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)
@@ -33,4 +34,7 @@
report: $(TESTS)
@ cat $^
-.PHONY: all report
+clean::
+ rm -rf Output/
+
+.PHONY: all report clean
More information about the cfe-commits
mailing list