(none)

MOGENET mogenix at tdisys.UUCP
Tue Dec 18 07:53:58 AEST 1990


Do you know make?


Today, I read the make(1) man page, and discovered some small-documented
feature I didn't know: VPATH.

This variable allow you to specify some `extended' searching area for
the dependancies. This means: When make doesn't find a needed file
in the current directory, it searches it in the VPATH.

Now could you, at sgi, tell me how I know in my make-commands where make
found the dependancie ?
More precisely, here's my problem: file foo.c is in ..

VPATH=..
foo.o:foo.c
	cc -c $*.c

make finds the foo.c in .., but the compiler doesn't, because the value of $*
is still: foo.
It should be ../foo !

Perhaps should'nt I use $*.c, but directly foo.c ?
What about default rules then ?

If someone has the turn-around, please email me at:

	mogenix%tdisys at inria.fr

		Thanks in advance,

			Mogenix!



More information about the Comp.sys.sgi mailing list