Use absolute path name for "analyze" since we are changing directories.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Fri, 1 Nov 2002 16:49:10 +0000 (16:49 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Fri, 1 Nov 2002 16:49:10 +0000 (16:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4483 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/DSAnalysis/Makefile

index 8ef0b2be45ea85edbfeee70da841a7e68320e35d..715b4584137d1b3f0bfeb8122db779f0386b8fa9 100644 (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))