]> granicus.if.org Git - clang/commitdiff
add 'clean' targets, make sure that 'make test' works after 'make clean'
authorGabor Greif <ggreif@gmail.com>
Tue, 18 Mar 2008 07:03:00 +0000 (07:03 +0000)
committerGabor Greif <ggreif@gmail.com>
Tue, 18 Mar 2008 07:03:00 +0000 (07:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48488 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile
test/Makefile.parallel

index 85267558b72ebf4b4fc4a295f6f877686cf59cd1..f1629784e67ada6124648de12cf948276c86caf9 100644 (file)
@@ -12,3 +12,8 @@ all::
        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
index adb3cf35d13365e60d8012ebaa0d98b3e5f6a79e..e627b1c14d3ae7663cd4928dfb1d3fbd1ca0da31 100644 (file)
@@ -25,6 +25,7 @@ Output/%.testresults: %
        @ 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 @@ all::
 report: $(TESTS)
        @ cat $^
 
-.PHONY: all report
+clean::
+       rm -rf Output/
+
+.PHONY: all report clean