[1839] in Athena Bugs

home help back first fref pref prev next nref lref last post

make macro expansion in VPATH

daemon@ATHENA.MIT.EDU (bjaspan@ATHENA.MIT.EDU)
Tue Feb 28 18:33:18 1989

From: <bjaspan@ATHENA.MIT.EDU>
Date: Tue, 28 Feb 89 18:32:34 EST
To: bugs@ATHENA.MIT.EDU

I'm not entirely sure this is a bug, but the expansion of macros in
the VPATH macro does not appear to behave reasonably.  Consider the
following makefile:

OD = /mit/bjaspan

VPATH = ${OD}

foo: bar.o
        -echo ${VPATH}

(The file bar.o exists in the CURRENT directory, which also happens to be
${OD}.)  make produces the error "Directory ${OD}: Make: Cannot open.  Stop."
It appears as if VPATH is just taking the literal string, and not
expanding.

However, if foo's dependency on bar.o is removed, the echo command
does in fact echo "/mit/bjaspan" on the screen.

barr3y


home help back first fref pref prev next nref lref last post