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

llvm-svn: 4483
This commit is contained in:
Vikram S. Adve 2002-11-01 16:49:10 +00:00
parent dcf31cec85
commit 63e0b84674
1 changed files with 4 additions and 1 deletions

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))