Use absolute path name for "analyze" since we are changing directories.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2002-11-01 16:49:10 +00:00
parent ec3e2f41cd
commit 1b3b4c5ab0

View File

@ -8,13 +8,16 @@
LEVEL = ../../../..
include $(LEVEL)/test/Makefile.tests
## Get absolute pathname for analyze
LANALYZE_ABS := $(shell cd `dirname $(LANALYZE)`; pwd)/analyze
TESTS := $(wildcard *.ll)
FTESTS := $(wildcard *.llx) # Freeform tests
all:: $(addprefix Output/, $(TESTS:%.ll=%.out))
Output/%.out: %.ll $(LANALYZE) Output/.dir
(cd Output/; $(LANALYZE) -datastructure ../$< || \
(cd Output/; $(LANALYZE_ABS) -datastructure ../$< || \
( rm -f ../$@; ../$(FAILURE) ../$@ ))
all:: $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))